/* Cookie consent banner + preferences modal.
   Standalone stylesheet (no SCSS build required); loaded from Page.ss. */

/* ------------------------------- Banner ------------------------------- */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 45px;
    padding: 15px 0;
    background: rgba(63, 132, 251, 0.95);
    z-index: 9998;
}

.cookie-consent-banner p {
    color: #fff;
    margin: 0 0 5px 0;
}

.cookie-consent-banner p a {
    color: #fc0;
}

.cookie-consent-banner__actions {
    text-align: right;
}

.cookie-consent-banner__actions .button {
    display: inline-block;
    margin: 8px 4px 0 4px;
    text-align: center;
    vertical-align: middle;
}

.cookie-consent-banner__settings {
    display: inline-block;
    margin: 8px 4px 0 8px;
    color: #fff;
    text-decoration: underline;
    vertical-align: middle;
    cursor: pointer;
}

.cookie-consent-banner__settings:hover {
    color: #fc0;
}

.cookie-consent-button--outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.cookie-consent-button--outline:hover {
    background: #fff;
    color: #3f84fb;
}

/* ------------------------------- Modal -------------------------------- */

.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    z-index: 9999;
}

.cookie-consent-modal {
    position: relative;
    max-width: 640px;
    width: 92%;
    margin: 5% auto 40px auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.cookie-consent-modal__header {
    position: relative;
    padding: 18px 50px 12px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.cookie-consent-modal__header h3 {
    margin: 0;
    font-size: 1.375rem;
    line-height: 1.4;
    color: #333;
}

.cookie-consent-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 32px;
    color: #81878f;
    cursor: pointer;
}

.cookie-consent-modal__close:hover {
    color: #333;
}

.cookie-consent-modal__body {
    padding: 18px 24px;
}

.cookie-consent-modal__body > p {
    margin: 0 0 15px 0;
    font-size: 0.9375rem;
}

.cookie-consent-modal__footer {
    padding: 14px 24px 20px 24px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

.cookie-consent-modal__footer .button {
    display: inline-block;
    margin-left: 8px;
    text-align: center;
}

.cookie-consent-modal__footer .cookie-consent-button--outline {
    border-color: #3f84fb;
    color: #3f84fb;
}

.cookie-consent-modal__footer .cookie-consent-button--outline:hover {
    background: #3f84fb;
    color: #fff;
}

/* ----------------------------- Categories ----------------------------- */

.cookie-consent-category {
    padding: 14px 0;
    border-top: 1px solid #eee;
}

.cookie-consent-category__header {
    position: relative;
    padding-right: 60px;
    margin-bottom: 6px;
}

.cookie-consent-category__header h4 {
    display: inline-block;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
    color: #333;
}

.cookie-consent-category__always {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.75rem;
    color: #81878f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-consent-category p {
    margin: 0 0 4px 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.cookie-consent-category__cookies {
    font-size: 0.8125rem;
    color: #81878f;
    word-break: break-all;
}

/* ------------------------------- Toggles ------------------------------ */

.cookie-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

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

.cookie-toggle__slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}

.cookie-toggle__slider:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    -webkit-transition: left 0.2s;
    transition: left 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
    background: #3f84fb;
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
    left: 23px;
}

/* Required category: always on, greyed out */
.cookie-toggle--disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.cookie-toggle--disabled input:checked + .cookie-toggle__slider {
    background: #9bb9e8;
}

/* ----------------------------- Responsive ----------------------------- */

@media (max-width: 767px) {
    .cookie-consent-banner__actions {
        text-align: left;
    }

    .cookie-consent-modal {
        margin-top: 20px;
        width: 96%;
    }
}
