﻿.cookie-consent-root {
    position: relative;
    z-index: 1090;
}

.cookie-consent-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: min(470px, calc(100vw - 48px));
    overflow: hidden;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18), 0 8px 24px rgba(15, 23, 42, .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1095;
    animation: cookieConsentSlideUp .35s ease-out;
}

.cookie-consent-banner__accent {
    width: 100%;
    height: 5px;
    background: linear-gradient( 90deg, var(--site-primary-color, #0d6efd), var(--site-secondary-color, #6f42c1) );
}

.cookie-consent-banner__close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #64748b;
    background: #f1f5f9;
    border: 0;
    border-radius: 50%;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

    .cookie-consent-banner__close:hover {
        color: #0f172a;
        background: #e2e8f0;
        transform: rotate(4deg);
    }

    .cookie-consent-banner__close:focus-visible {
        outline: 3px solid rgba(13, 110, 253, .2);
        outline-offset: 2px;
    }

.cookie-consent-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 25px 54px 18px 24px;
}

.cookie-consent-banner__icon {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-top: 2px;
    color: var(--site-primary-color, #0d6efd);
    font-size: 21px;
    background: rgba(13, 110, 253, .1);
    border-radius: 15px;
}

.cookie-consent-banner__body {
    min-width: 0;
}

.cookie-consent-banner__eyebrow,
.cookie-consent-modal__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--site-primary-color, #0d6efd);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cookie-consent-banner__title {
    margin: 0 0 9px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.cookie-consent-banner__description {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

.cookie-consent-banner__links {
    margin-top: 11px;
}

.cookie-consent-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--site-primary-color, #0d6efd);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

    .cookie-consent-link:hover {
        color: var(--site-primary-color, #0d6efd);
        text-decoration: underline;
    }

    .cookie-consent-link i {
        font-size: 10px;
    }

.cookie-consent-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 24px 24px;
}

.cookie-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

    .cookie-consent-btn:hover {
        transform: translateY(-1px);
    }

    .cookie-consent-btn:focus-visible {
        outline: 3px solid rgba(13, 110, 253, .2);
        outline-offset: 2px;
        box-shadow: none;
    }

.cookie-consent-btn--primary {
    color: #fff;
    background: var(--site-primary-color, #0d6efd);
    border-color: var(--site-primary-color, #0d6efd);
    box-shadow: 0 8px 18px rgba(13, 110, 253, .22);
}

    .cookie-consent-btn--primary:hover,
    .cookie-consent-btn--primary:focus {
        color: #fff;
        background: var(--site-primary-color, #0d6efd);
        border-color: var(--site-primary-color, #0d6efd);
        box-shadow: 0 10px 22px rgba(13, 110, 253, .28);
    }

.cookie-consent-btn--secondary {
    color: #334155;
    background: #fff;
    border: 1px solid #dbe2ea;
}

    .cookie-consent-btn--secondary:hover,
    .cookie-consent-btn--secondary:focus {
        color: #0f172a;
        background: #f8fafc;
        border-color: #cbd5e1;
    }

.cookie-consent-btn--link {
    grid-column: 1 / -1;
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
    color: #475569;
    background: transparent;
    border: 0;
}

    .cookie-consent-btn--link:hover,
    .cookie-consent-btn--link:focus {
        color: var(--site-primary-color, #0d6efd);
        background: #f8fafc;
    }

.cookie-consent-modal .modal-dialog {
    width: min(720px, calc(100vw - 32px));
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}

.cookie-consent-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.cookie-consent-modal__header {
    align-items: flex-start;
    padding: 22px 24px;
    background: radial-gradient( circle at top right, rgba(13, 110, 253, .1), transparent 42% ), #fff;
    border-bottom: 1px solid #e8edf3;
}

.cookie-consent-modal__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding-right: 14px;
}

.cookie-consent-modal__heading-icon {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--site-primary-color, #0d6efd);
    background: rgba(13, 110, 253, .1);
    border-radius: 14px;
}

.cookie-consent-modal__title {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.cookie-consent-modal__body {
    padding: 22px 24px;
    background: #f8fafc;
}

.cookie-consent-modal__intro {
    margin: 0 0 18px;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

.cookie-preference-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-preference-item {
    padding: 17px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .cookie-preference-item:hover {
        border-color: #cbd5e1;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
        transform: translateY(-1px);
    }

    .cookie-preference-item.is-required {
        background: linear-gradient( 135deg, rgba(13, 110, 253, .06), rgba(255, 255, 255, 1) 60% );
        border-color: rgba(13, 110, 253, .16);
    }

.cookie-preference-item__main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cookie-preference-item__icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--site-primary-color, #0d6efd);
    background: rgba(13, 110, 253, .08);
    border-radius: 12px;
}

.cookie-preference-item__content {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-preference-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cookie-preference-item__title {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.cookie-preference-item__status {
    display: inline-block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
}

.cookie-preference-item__description {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.cookie-preference-switch {
    flex: 0 0 auto;
    min-height: 24px;
    margin: 0;
    padding-left: 2.8em;
}

    .cookie-preference-switch .form-check-input {
        width: 2.55em;
        height: 1.35em;
        margin-top: 0;
        cursor: pointer;
        border-color: #cbd5e1;
        box-shadow: none;
    }

        .cookie-preference-switch .form-check-input:checked {
            background-color: var(--site-primary-color, #0d6efd);
            border-color: var(--site-primary-color, #0d6efd);
        }

        .cookie-preference-switch .form-check-input:focus {
            border-color: var(--site-primary-color, #0d6efd);
            box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
        }

        .cookie-preference-switch .form-check-input:disabled {
            cursor: not-allowed;
            opacity: .75;
        }

.cookie-consent-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 17px 24px;
    background: #fff;
    border-top: 1px solid #e8edf3;
}

@keyframes cookieConsentSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 767.98px) {
    .cookie-consent-banner {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        border-radius: 18px;
    }

    .cookie-consent-banner__content {
        gap: 12px;
        padding: 21px 46px 15px 17px;
    }

    .cookie-consent-banner__icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: 13px;
    }

    .cookie-consent-banner__title {
        font-size: 17px;
    }

    .cookie-consent-banner__description {
        font-size: 13px;
        line-height: 1.55;
    }

    .cookie-consent-banner__actions {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 17px 17px;
    }

    .cookie-consent-btn--link {
        grid-column: auto;
    }

    .cookie-consent-modal .modal-dialog {
        width: calc(100vw - 20px);
        margin: 10px auto;
        min-height: calc(100% - 20px);
    }

    .cookie-consent-modal .modal-content {
        max-height: calc(100vh - 20px);
        border-radius: 17px;
    }

    .cookie-consent-modal__header,
    .cookie-consent-modal__body,
    .cookie-consent-modal__footer {
        padding-right: 17px;
        padding-left: 17px;
    }

    .cookie-consent-modal__heading-icon {
        display: none;
    }

    .cookie-consent-modal__title {
        font-size: 17px;
    }

    .cookie-preference-item {
        padding: 15px;
    }

    .cookie-preference-item__main {
        gap: 11px;
    }

    .cookie-preference-item__icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .cookie-preference-item__header {
        gap: 10px;
    }

    .cookie-consent-modal__footer {
        display: grid;
        grid-template-columns: 1fr;
    }

        .cookie-consent-modal__footer .cookie-consent-btn {
            width: 100%;
        }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .cookie-consent-banner {
        right: 20px;
        bottom: 20px;
        width: min(500px, calc(100vw - 40px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        animation: none;
    }

        .cookie-consent-banner *,
        .cookie-consent-modal * {
            scroll-behavior: auto !important;
            transition: none !important;
        }
}
