/**
 * Cookie Consent Modal - Cookiebot Style
 * Green modal design matching Cookiebot UI
 */

/* Overlay */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Container */
.cookie-consent-modal {
    background: #26ae61c7;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Header with Logos */
.cookie-modal-header {
    background: #26ae61c7;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    border-bottom: 1px solid #155B2F;
}

.cookie-logo-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-logo-bubble {
    /* background: #4a9d6e; */
    color: #ffffff;
    /* padding: 8px 14px; */
    border-radius: 12px;
    font-weight: 600;
    font-size: 20px;
    display: inline-block;
    line-height: 1;
}

.cookie-logo-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.cookie-logo-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.cookie-logo-right-main {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}

.cookie-logo-right-sub {
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.2;
}

/* Tabs */
.cookie-modal-tabs {
    display: flex;
    /* background: #f5f5f5; */
    border-bottom: 1px solid #155B2F;
}

.cookie-tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #B9D8C2;
    transition: all 0.3s ease;
}

.cookie-tab:hover {
    background: transparent;
    color: #333;
}

.cookie-tab.active {
    color: #FFFFFF;
    border-bottom-color: #CFE8D5;
}

/* Content Area */
.cookie-modal-content {
    padding: 24px;
    min-height: 300px;
}

.cookie-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-heading {
    font-size: 20px;
    font-weight: 600;
    color: #E6F4EA;
    margin: 0 0 16px 0;
    line-height: 28px;
}

.cookie-description {
    font-size: 14px;
    color: #CFE8D5;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* Custom scrollbar styling for cookie description */
.cookie-about-content::-webkit-scrollbar, .cookie-details-content::-webkit-scrollbar {
    width: 6px;
}

.cookie-about-content::-webkit-scrollbar-track, .cookie-details-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.cookie-about-content::-webkit-scrollbar-thumb, .cookie-details-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.cookie-about-content::-webkit-scrollbar-thumb:hover, .cookie-details-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.cookie-about-content {
    max-height: 170px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

/* Cookie Details Content */
.cookie-details-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.cookie-detail-section {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-detail-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cookie-detail-heading {
    font-size: 18px;
    font-weight: 600;
    color: #DFF3E5;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.cookie-detail-text {
    font-size: 14px;
    color: #CFE8D5;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

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

/* Cookie About Details */
.cookie-about-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-about-details .cookie-detail-text {
    margin: 0;
}

/* Cookie Categories */
.cookie-categories {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: space-around;
}

.cookie-category {
    padding: 12px 0;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 8px;
    width: 100%;
}

.cookie-category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-name {
    font-size: 15px;
    font-weight: 600;
    color: #DFF3E5;
}

.cookie-category-status {
    font-size: 13px;
    font-weight: 400;
    color: #CFE8D5;
    font-style: italic;
}

.cookie-category-description {
    font-size: 13px;
    color: #CFE8D5;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* Toggle Switch */
.cookie-toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
}

.cookie-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #26ae61c7;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle-input:checked + .cookie-toggle-slider,
.cookie-toggle-slider.active {
    background-color: #4bb579;
}

.cookie-toggle-input:checked + .cookie-toggle-slider:before,
.cookie-toggle-slider.active:before {
    transform: translateX(22px);
    background: #FFFFFF;
}

.cookie-toggle-input:disabled + .cookie-toggle-slider {
    background-color: #4bb579;
    cursor: not-allowed;
}

.cookie-toggle-input:disabled + .cookie-toggle-slider:before {
    transform: translateX(22px);
    background: #FFFFFF;
}

/* Privacy Policy Link */
.cookie-privacy-link {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-policy-link {
    color: #DFF3E5;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.2s ease;
}

.cookie-policy-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Action Buttons */
.cookie-modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: #26ae61c7;
    border-top: 1px solid #155B2F;
    border-radius: 0 0 12px 12px;
}

.cookie-modal-actions button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cl-accept {
    background: #A9D3AE;
    color: #134E2A;
}

.cl-accept:hover {
    background: #95C89C;
}

.cl-necessary {
    background: #2F8F4E;
    color: #FFFFFF;
    border: 2px solid #2d8659;
}

.cl-necessary:hover {
    background: #267A42;
}

.cl-decline {
    background: #2F8F4E;
    color: #ffffff;
    border: 2px solid #2d8659;
}

.cl-decline:hover {
    background: #267A42;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-modal {
        max-width: 100%;
        margin: 10px;
        max-height: 95vh;
    }

    /* .cookie-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    } */

    .cookie-logo-right {
        font-size: 11px;
    }

    .cookie-modal-actions {
        flex-direction: column;
    }

    .cookie-modal-actions button {
        width: 100%;
    }

    .cookie-categories {
        flex-direction: column;
        gap: 0;
    }

    .cookie-toggle-label {
        flex-direction: row;
    }
}

/* Legacy banner styles (for backward compatibility) */
.cl-banner {
    background: #26ae61c7;
    height: auto;
    min-height: 24px;
    line-height: 24px;
    color: #eeeeee;
    text-align: center;
    padding: 15px 45px;
    z-index: 99999001;
    position: fixed;
    left: 0;
    width: 100%;
    transition-duration: .3s, .01s;
    transition-property: opacity, bottom;
    transition-delay: 0.2s;
}

.cl-banner.top {
    top: 0;
}

.cl-banner.bottom {
    bottom: 0;
}

.cl-banner p {
    color: white;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.cl-banner a {
    color: #26ae61;
    display: inline-block;
    border-radius: 3px;
    text-decoration: none;
    padding: 0px 6px;
    margin: 5px 17px 0 17px;
    font-weight: 600;
}

.cl-banner .cookiepolicy {
    text-decoration: underline;
    font-weight: 600;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.cl-banner .cl-accept {
    background: #5cb85c;
    color: #fff;
    padding: 6px 16px;
}

.cl-banner .cl-necessary {
    background: #fff !important;
    color: #26ae61 !important;
    padding: 6px 16px;
}

.cl-banner .cl-necessary:hover {
    background: #ececec !important;
    color: #26ae61 !important;
}

.cl-banner .cl-accept:hover {
    background: #4b714b;
}

.cl-banner .cl-disable {
    background: #8b91dd;
}

.cl-banner .cl-disable:hover {
    background: #bb0000;
}

.cl-banner .cl-policy {
    background: #0033bb;
}

.cl-banner .cl-policy:hover {
    background: #0055dd;
}

.cookie_option_check {
    width: fit-content !important;
    margin: auto !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.cookie_option_check label {
    display: flex !important;
}

.cookie-heading-list {
    font-size: 16px;
    font-weight: 600;
    color: #E6F4EA;
    margin: 0 0 8px 0;
    line-height: 24px;
}

.cookie-text-list {
    font-size: 14px;
    color: #CFE8D5;
    line-height: 1.6;
    margin: 0 0 16px 0;
    text-indent: 10px;
}

.cookie-text-list li {
    line-height: 1.6;
    list-style: disc;
    list-style-position: inside;
}

.cookie-text-list li strong {
    color: #CFE8D5;
}