﻿
/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 28px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-content {
    flex: 1;
}

.cookie-text h4 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 600;
    color: #172033;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #626b7a;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 11px 17px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-actions .btn-primary,
.cookie-modal-buttons .btn-primary {
    background: #172b4d;
    color: #ffffff;
    border-color: #172b4d;
}

.cookie-actions .btn-primary:hover,
.cookie-modal-buttons .btn-primary:hover {
    background: #263f68;
    border-color: #263f68;
}

.cookie-actions .btn-outline,
.cookie-modal-buttons .btn-outline {
    background: #ffffff;
    color: #172b4d;
    border-color: #172b4d;
}

.cookie-actions .btn-outline:hover,
.cookie-modal-buttons .btn-outline:hover {
    background: #f1f4f8;
}

.cookie-actions .btn-light,
.cookie-modal-buttons .btn-light {
    background: #eef1f5;
    color: #27364b;
    border-color: #eef1f5;
}

.cookie-actions .btn-light:hover,
.cookie-modal-buttons .btn-light:hover {
    background: #e0e5ec;
}


/* COOKIE MODAL */
.cookie-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(10, 18, 32, 0.65);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-backdrop.open {
    display: flex;
}

.cookie-modal {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.cookie-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cookie-modal h3 {
    margin: 0 35px 10px 0;
    color: #172033;
    font-size: 22px;
    font-weight: 600;
}

.cookie-desc {
    margin: 0 0 24px;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}


/* COOKIE OPTIONS */
.cookie-option {
    padding: 18px 0;
    border-top: 1px solid #e8ebf0;
}

.cookie-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-option-header > div {
    max-width: calc(100% - 80px);
}

.cookie-option-header strong {
    display: block;
    margin-bottom: 6px;
    color: #172033;
    font-size: 15px;
}

.cookie-option-header p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}


/* COOKIE SWITCH */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    background: #cbd1da;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.cookie-switch span::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.2s;
}

.cookie-switch input:checked + span {
    background: #172b4d;
}

.cookie-switch input:checked + span::before {
    transform: translateX(20px);
}

.cookie-switch input:disabled + span {
    opacity: 0.65;
    cursor: not-allowed;
}


/* MODAL BUTTONS */
.cookie-modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.cookie-privacy {
    margin-top: 22px;
    text-align: center;
}

.cookie-privacy a {
    color: #172b4d;
    font-size: 13px;
    text-decoration: underline;
}


/* RESPONSIVE */
@media (max-width: 991.98px) {

    .cookie-banner-inner {
        display: block;
        padding: 22px;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 20px;
    }

    .cookie-actions button {
        width: 100%;
    }

    .cookie-actions #openCookieSettings {
        grid-column: 1 / -1;
    }

    .cookie-modal {
        padding: 26px 22px;
    }

    .cookie-modal-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-modal-buttons button {
        width: 100%;
    }
}

@media (max-width: 575.98px) {

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-banner-inner {
        padding: 18px;
        border-radius: 14px;
    }

    .cookie-text h4 {
        font-size: 17px;
    }

    .cookie-text p {
        font-size: 13px;
    }

    .cookie-actions {
        gap: 8px;
    }

    .cookie-btn {
        padding: 11px 10px;
        font-size: 12px;
    }

    .cookie-modal-backdrop {
        padding: 10px;
    }

    .cookie-modal {
        max-height: 94vh;
        padding: 25px 18px;
        border-radius: 14px;
    }

    .cookie-modal h3 {
        font-size: 19px;
    }
}
