.cookie-consent-banner,
.cookie-consent-modal {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.cookie-consent-banner,
.cookie-consent-modal__panel {
    box-sizing: border-box;
}

.cookie-consent-banner[hidden],
.cookie-consent-modal[hidden] {
    display: none !important;
}

.cookie-consent-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1200;
    width: min(1120px, calc(100% - 48px));
    max-width: calc(100% - 48px);
    transform: translateX(-50%);
    padding: 18px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(168, 230, 161, 0.16), transparent 40%),
        radial-gradient(120% 140% at 100% 100%, rgba(84, 159, 212, 0.2), transparent 52%),
        rgba(10, 17, 31, 0.94);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    color: #f3f7ff;
}

.cookie-consent-banner__eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d8e7ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cookie-consent-banner__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    gap: 18px 24px;
    align-items: end;
}

.cookie-consent-banner__copy {
    display: grid;
    gap: 10px;
}

.cookie-consent-banner__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(22px, 2.3vw, 28px);
    line-height: 1.1;
}

.cookie-consent-banner__text {
    max-width: 64ch;
    margin: 0;
    color: rgba(229, 238, 255, 0.84);
    line-height: 1.6;
}

.cookie-consent-banner__link {
    color: #a8e6a1;
}

.cookie-consent-banner__link:hover {
    color: #c8f0c1;
}

.cookie-consent-modal__note a,
.legal-cookie-button {
    color: #2b5f94;
}

.cookie-consent-modal__note a:hover,
.legal-cookie-button:hover {
    color: #1f4b76;
}

.cookie-consent-banner__actions,
.cookie-consent-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cookie-consent-button:hover {
    transform: translateY(-1px);
}

.cookie-consent-button:focus-visible,
.cookie-consent-modal__close:focus-visible,
.cookie-consent-banner__link:focus-visible,
.cookie-consent-modal__note a:focus-visible,
.legal-cookie-button:focus-visible {
    outline: 3px solid rgba(168, 230, 161, 0.72);
    outline-offset: 3px;
}

.cookie-consent-button--primary {
    background: #a8e6a1;
    color: #06232b;
}

.cookie-consent-button--primary:hover {
    background: #b8efb0;
}

.cookie-consent-button--secondary {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f3f7ff;
}

.cookie-consent-button--secondary:hover {
    background: rgba(255, 255, 255, 0.13);
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookie-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 24, 0.7);
    backdrop-filter: blur(10px);
}

.cookie-consent-modal__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 32px);
    margin: 0;
    padding: 28px;
    overflow: auto;
    border: 1px solid rgba(12, 26, 46, 0.08);
    border-radius: 28px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(84, 159, 212, 0.12), transparent 42%),
        radial-gradient(120% 120% at 100% 100%, rgba(168, 230, 161, 0.14), transparent 52%),
        #f8fbff;
    box-shadow: 0 28px 90px rgba(4, 19, 34, 0.32);
    color: #10233a;
}

.cookie-consent-modal__close {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 0 0 auto;
}

.cookie-consent-modal__close .close-icon {
    margin: 0;
}

.cookie-consent-modal__header {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.cookie-consent-modal__kicker {
    margin: 0;
    color: #3e6f97;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cookie-consent-modal__title {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.02;
}

.cookie-consent-modal__text,
.cookie-consent-modal__note {
    margin: 0;
    color: #4b637d;
    line-height: 1.65;
}

.cookie-consent-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.cookie-consent-card {
    padding: 20px;
    border: 1px solid rgba(16, 35, 58, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 38px rgba(18, 44, 73, 0.08);
}

.cookie-consent-card--locked {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 246, 255, 0.98));
}

.cookie-consent-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent-card__title {
    margin: 0;
    font-size: 20px;
}

.cookie-consent-card__subtitle {
    margin: 8px 0 0;
    color: #607791;
    line-height: 1.55;
}

.cookie-consent-list {
    margin: 18px 0 0;
    padding-left: 18px;
    color: #18314b;
    line-height: 1.7;
}

.cookie-consent-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.cookie-consent-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-switch span {
    position: relative;
    display: inline-flex;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #cfd9e7;
}

.cookie-consent-switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(12, 26, 46, 0.16);
}

.cookie-consent-switch input:checked + span {
    background: #7ebf74;
}

.cookie-consent-switch input:checked + span::after {
    transform: translateX(24px);
}

.cookie-consent-switch input:disabled + span {
    cursor: not-allowed;
}

.cookie-consent-modal__footer {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(16, 35, 58, 0.08);
}

.legal-cookie-button {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

body.cookie-consent-lock {
    overflow: hidden;
}

@media (max-width: 900px) {
    .cookie-consent-banner__layout,
    .cookie-consent-modal__grid {
        grid-template-columns: 1fr;
    }

    .cookie-consent-banner__actions,
    .cookie-consent-modal__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .cookie-consent-banner {
        bottom: 12px;
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        padding: 16px;
        border-radius: 20px;
    }

    .cookie-consent-banner__actions,
    .cookie-consent-modal__actions {
        flex-direction: column;
    }

    .cookie-consent-button {
        width: 100%;
    }

    .cookie-consent-modal__panel {
        width: 100%;
        max-height: calc(100vh - 16px);
        padding: 20px;
        border-radius: 22px;
    }

    .cookie-consent-card {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-button {
        transition: none;
    }
}
