.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    /* padding: 1.25rem; */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(0.125rem);
}

.custom-container.popup-container {
    width: 65%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-consent-section {
    max-width: 75rem;
    margin: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    transform: translateY(1.875rem) scale(0.95);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.modal-overlay.show .cookie-consent-section {
    transform: translateY(0) scale(1);
    box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.4);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.875rem;
    border-bottom: 0.0625rem solid #e5e5e5;
}

.logo {
    color: black;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.0625rem;
}

.cookiebot-logo {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.tab-container {
    display: flex;
    border-bottom: 0.0625rem solid #e5e5e5;
}

.tab {
    flex: 1;
    padding: 0.9375rem 1.25rem;
    text-align: center;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: black;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 0.125rem solid transparent;
}

.tab.active {
    background: white;
    color: #333;
    border-bottom: 0.125rem solid #333;
}

.tab:hover {
    background: #e9ecef;
}

.tab-content {
    max-height: 50vh;
    overflow-y: auto;
    position: relative;
    min-height: 15rem;
    overflow: hidden;
    width: 100%;
    height: 16rem;
}

.tab-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25rem;
    padding: 0.75rem 1.4375rem;
    margin: 0;
    box-sizing: border-box;
    overflow-y: auto;
}

.tab-panel.fade-out {
    animation: slideOutFade 0.2s ease-in;
}

@keyframes slideOutFade {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.tab-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: absolute;
    width: 100%;
    height: 16rem;
    padding: 0.75rem 1.4375rem;
    box-sizing: border-box;
    overflow-y: auto;
    animation: slideInFade 0.3s ease-out;
}

@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.consent-text {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #383636;
    margin-bottom: 1.4375rem;
}

.cookie-category {
    border: 0.0625rem solid #e5e5e5;
    border-radius: 0.5rem;
    margin-bottom: 0.9375rem;
    overflow: hidden;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-header:hover {
    background: #e9ecef;
}

.category-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: #3a3939;
    gap: 0.625rem;
    margin-bottom: 0.3125rem;
}

.category-count {
    background-color: #3a3939;
    color: white;
    border-radius: 0.75rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
}

.toggle-switch {
    width: 3.125rem;
    height: 1.5rem;
    background: #ccc;
    border-radius: 0.75rem;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch.active {
    background-color: rgb(0, 128, 192);
}

.toggle-switch::after {
    content: "";
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    top: 0.125rem;
    left: 0.125rem;
    transition: transform 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
    transform: translateX(1.625rem);
}

.chevron {
    font-size: 1.25rem;
    color: #3a3939;
    transition: transform 0.3s ease;
}

.category-header.expanded .chevron {
    transform: rotate(180deg);
}

.category-content {
    display: none;
    padding: 1.25rem;
    border-top: 0.0625rem solid #e5e5e5;
    background: white;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.category-content.expanded {
    display: block;
    opacity: 1;
    max-height: 62.5rem;
}

.category-description {
    font-size: 0.875rem;
    color: #4c4848;
    line-height: 1.5;
    margin-bottom: 0.9375rem;
}

.provider-info {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.9375rem;
    margin-bottom: 0.9375rem;
}

.provider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.625rem;
}

.provider-name {
    font-weight: 600;
    color: #333;
}

.learn-more {
    color: #007bff;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.4375rem;
}

.learn-more:hover {
    text-decoration: underline;
}

.cookie-details {
    background: #e9ecef;
    border-radius: 0.25rem;
    padding: 0.75rem;
    font-size: 0.875rem;
}

.cookie-detail-row {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 0.3125rem;
}

.cookie-detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #333;
}

.detail-value {
    color: #666;
}

.button-container {
    display: flex;
    gap: 0.9375rem;
    padding: 1.25rem 1.875rem;
    background: #f8f9fa;
    border-top: 0.0625rem solid #e5e5e5;
}

.btn {
    flex: 1;
    padding: 0.9rem 0.75rem;
    border: 0.125rem solid transparent;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-deny {
    background: white;
    color: #333;
    border-color: #ccc;
}

.btn-deny:hover {
    background: #f8f9fa;
    border-color: #999;
}

.btn-customize {
    background: white;
    color: #333;
    border-color: #ccc;
}

.btn-customize:hover {
    background: #f8f9fa;
    border-color: #999;
}

.btn-allow {
    background-color: rgb(0, 128, 192);
    color: white;
}

.btn-allow:hover {
    background: rgb(0, 128, 192);
}

@media screen and (max-width:480px) {
    .custom-container.popup-container {
        width: 90%;
    }
}