.cookie-consent-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 12010;
    display: none;
}

.cookie-consent-banner.is-visible {
    display: block;
}

html[data-cookie-consent-state="set"] .cookie-consent-banner {
    display: none !important;
}

.cookie-consent-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border-radius: 24px;
    background:
        linear-gradient(140deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.95)),
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 35%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 64px rgba(2, 6, 23, 0.42);
    color: #f8fafc;
    backdrop-filter: blur(16px);
}

.cookie-consent-copy {
    max-width: 760px;
}

.cookie-consent-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cookie-consent-copy h3,
.cookie-consent-modal-header h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    line-height: 1.2;
    color: #f8fafc;
}

.cookie-consent-copy p,
.cookie-consent-modal-header p {
    margin: 0;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.6;
}

.cookie-consent-link {
    display: inline-flex;
    margin-top: 12px;
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 600;
}

.cookie-consent-actions,
.cookie-consent-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cookie-btn {
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 13px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.cookie-btn.primary {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #eff6ff;
}

.cookie-btn.secondary {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}

.cookie-btn.ghost {
    background: rgba(125, 211, 252, 0.08);
    border-color: rgba(125, 211, 252, 0.22);
    color: #bae6fd;
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 13050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(8px);
}

.cookie-consent-modal.is-visible {
    display: flex;
}

.cookie-consent-modal-card {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, #0f172a, #111827);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.48);
    color: #f8fafc;
}

.cookie-consent-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #f8fafc;
    font-size: 1.6rem;
    cursor: pointer;
}

.cookie-consent-options {
    display: grid;
    gap: 14px;
    margin: 24px 0 26px;
}

.cookie-consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.cookie-consent-option strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    color: #f8fafc;
}

.cookie-consent-option small {
    display: block;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.45;
}

.cookie-consent-option input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #38bdf8;
    flex-shrink: 0;
}

.cookie-consent-option.is-required {
    opacity: 0.92;
}

@media (max-width: 900px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions,
    .cookie-consent-modal-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1 1 180px;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .cookie-consent-banner {
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-consent-content {
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
    }

    .cookie-consent-modal-card {
        padding: 16px;
        border-radius: 20px;
    }

    .cookie-consent-modal {
        align-items: flex-end;
        padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-consent-modal-card {
        width: 100%;
        max-height: min(62dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px));
    }

    .cookie-consent-copy {
        max-width: none;
    }

    .cookie-consent-eyebrow {
        display: none;
    }

    .cookie-consent-copy h3,
    .cookie-consent-modal-header h3 {
        font-size: 0.98rem;
        margin-bottom: 4px;
    }

    .cookie-consent-copy p,
    .cookie-consent-modal-header p,
    .cookie-consent-option small {
        font-size: 0.82rem;
    }

    .cookie-consent-copy p {
        line-height: 1.35;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .cookie-consent-link {
        display: none;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cookie-consent-modal-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        min-height: 48px;
    }

    .cookie-consent-banner .cookie-btn {
        min-height: 40px;
        padding: 10px 12px;
        font-size: 0.82rem;
        border-radius: 13px;
    }

    .cookie-consent-banner .cookie-btn.ghost {
        grid-column: 1 / -1;
        min-height: auto;
        padding: 0;
        background: transparent;
        border: none;
        color: #7dd3fc;
        justify-self: start;
    }

    .cookie-consent-option {
        align-items: flex-start;
    }

    .cookie-consent-option input[type="checkbox"] {
        margin-top: 4px;
    }
}
