/* =========================================
   SCAD COOKIE BANNER
========================================= */

.cookie-banner {
    position: fixed;

    right: 24px;
    bottom: 24px;

    width: 400px;
    max-width: calc(100vw - 48px);

    z-index: 99999;

    padding: 20px 22px;

    box-sizing: border-box;

    background: rgba(8, 8, 8, 0.97);
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid #e52329;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.45);

    display: none;

    font-family: inherit;
}

.cookie-banner.show {
    display: block;
}


/* =========================================
   TITLE
========================================= */

.cookie-banner h3 {
    margin: 0 0 7px;

    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;

    color: #fff;
}


/* =========================================
   DESCRIPTION
========================================= */

.cookie-banner p {
    margin: 0;

    color: #b8b8b8;

    font-size: 12px;
    line-height: 1.55;
}


/* =========================================
   BUTTONS
========================================= */

.cookie-buttons {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 15px;
}

.cookie-btn {
    height: 35px;

    padding: 0 13px;

    border: 1px solid #444;

    background: transparent;
    color: #fff;

    font-family: inherit;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.06em;
    text-transform: uppercase;

    cursor: pointer;

    transition: all 0.25s ease;
}


/* =========================================
   ACCEPT
========================================= */

.cookie-btn.accept {
    background: #e52329;
    border-color: #e52329;
}

.cookie-btn.accept:hover {
    background: #c91d23;
    border-color: #c91d23;
}


/* =========================================
   REJECT
========================================= */

.cookie-btn.reject:hover {
    border-color: #777;
    background: rgba(255,255,255,0.05);
}


/* =========================================
   CUSTOMIZE
========================================= */

.cookie-btn.customize:hover {
    border-color: #e52329;
    background: rgba(229,35,41,0.08);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .cookie-banner {
        left: 14px;
        right: 14px;
        bottom: 14px;

        width: auto;
        max-width: none;

        padding: 18px;
    }

    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* =========================================================
   COOKIE PREFERENCES MODAL
========================================================= */

.cookie-modal {
    position: fixed;

    inset: 0;

    z-index: 100000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(4px);
}


.cookie-modal.show {
    display: flex;
}


/* Modal box */

.cookie-modal-content {
    position: relative;

    width: min(520px, 100%);

    padding: 30px;

    background: #111111;

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-left: 3px solid #e52329;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);

    box-sizing: border-box;
}


/* Close button */

.cookie-modal-close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 32px;
    height: 32px;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 26px;

    cursor: pointer;

    opacity: 0.7;

    transition: opacity 0.2s ease;
}


.cookie-modal-close:hover {
    opacity: 1;
}


/* Heading */

.cookie-modal-content h2 {
    margin: 0 35px 8px 0;

    font-size: 22px;

    font-weight: 700;
}


.cookie-modal-intro {
    margin: 0 0 22px;

    color: #aaa;

    font-size: 13px;

    line-height: 1.6;
}


/* Cookie option */

.cookie-option {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 17px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.cookie-option h3 {
    margin: 0 0 5px;

    font-size: 14px;

    font-weight: 700;
}


.cookie-option p {
    margin: 0;

    max-width: 350px;

    color: #999;

    font-size: 11px;

    line-height: 1.5;
}


/* Always ON */

.cookie-always-on {
    flex-shrink: 0;

    color: #e52329;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


/* =========================================================
   TOGGLE SWITCH
========================================================= */

.cookie-switch {
    position: relative;

    flex-shrink: 0;

    width: 46px;
    height: 24px;

    display: block;
}


.cookie-switch input {
    opacity: 0;

    width: 0;
    height: 0;
}


.cookie-slider {
    position: absolute;

    inset: 0;

    cursor: pointer;

    background: #333;

    border-radius: 24px;

    transition: background 0.25s ease;
}


.cookie-slider::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    background: #ffffff;

    border-radius: 50%;

    transition: transform 0.25s ease;
}


.cookie-switch input:checked + .cookie-slider {
    background: #e52329;
}


.cookie-switch input:checked + .cookie-slider::before {
    transform: translateX(22px);
}


/* =========================================================
   SAVE BUTTON
========================================================= */

.save-cookie-preferences {
    width: 100%;

    height: 42px;

    margin-top: 20px;

    border: 1px solid #e52329;

    background: #e52329;

    color: #ffffff;

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    cursor: pointer;

    transition: background 0.25s ease;
}


.save-cookie-preferences:hover {
    background: #c91d23;

    border-color: #c91d23;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .cookie-modal-content {
        padding: 24px 20px;
    }

    .cookie-option {
        align-items: flex-start;
    }

    .cookie-option p {
        font-size: 10px;
    }
}