.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    width: 100%;
    border-top: 1px solid rgba(120, 135, 160, 0.26);
    background: rgba(255, 255, 255, 0.98);
    color: #071225;
    box-shadow: 0 -18px 44px rgba(7, 18, 37, 0.12);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.cookie-banner:focus-visible {
    outline: 3px solid rgba(40, 104, 232, 0.32);
    outline-offset: -3px;
}

.cookie-banner .cookie-inner,
.cookie-inner {
    width: min(100% - 2rem, 980px);
    margin: 0 auto;
    padding: 1rem 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.cookie-copy {
    min-width: 0;
}

.cookie-copy p {
    margin: 0;
    color: #4f6078;
    font-size: 0.92rem;
    line-height: 1.5;
}

.cookie-copy .cookie-title {
    margin-bottom: 0.18rem;
    color: #071225;
    font-weight: 800;
}

.cookie-copy a {
    color: #2868e8;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-preferences {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.cookie-preferences[hidden],
.cookie-actions [hidden] {
    display: none !important;
}

.cookie-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: flex-start;
    min-width: 0;
    min-height: 4.75rem;
    padding: 0.85rem;
    border: 1px solid rgba(120, 135, 160, 0.28);
    border-radius: 8px;
    background: #fff;
}

.cookie-choice input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.12rem;
    accent-color: #2868e8;
}

.cookie-choice strong,
.cookie-choice small {
    display: block;
}

.cookie-choice strong {
    color: #071225;
    font-size: 0.9rem;
    line-height: 1.25;
}

.cookie-choice small {
    margin-top: 0.2rem;
    color: #5f6f86;
    font-size: 0.78rem;
    line-height: 1.45;
}

.cookie-choice-disabled {
    background: #f5f8ff;
}

.cookie-banner .cookie-actions,
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.cookie-btn {
    min-height: 44px;
    padding: 0 0.95rem;
    border-radius: 8px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.cookie-btn-primary {
    border: 1px solid #2868e8;
    background: #2868e8;
    color: #fff;
}

.cookie-btn-decision {
    border: 1px solid #2868e8;
    background: #fff;
    color: #1747ad;
}

.cookie-btn-decision:hover {
    background: #edf3ff;
}

.cookie-btn-secondary {
    border: 1px solid rgba(120, 135, 160, 0.34);
    background: #fff;
    color: #1747ad;
}

.cookie-btn:focus-visible {
    outline: 3px solid rgba(40, 104, 232, 0.28);
    outline-offset: 2px;
}

.cookie-persistent-controls {
    position: fixed;
    left: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: calc(100% - 2rem);
    padding: 0.4rem;
    border: 1px solid rgba(120, 135, 160, 0.24);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(7, 18, 37, 0.14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.cookie-persistent-controls[hidden],
.cookie-control-btn[hidden] {
    display: none !important;
}

.cookie-control-btn {
    min-height: 44px;
    padding: 0 0.8rem;
    border: 1px solid rgba(120, 135, 160, 0.34);
    border-radius: 7px;
    background: #fff;
    color: #1747ad;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.cookie-control-btn:hover {
    background: #edf3ff;
}

.cookie-control-btn-revoke {
    border-color: #2868e8;
}

.cookie-control-btn:focus-visible {
    outline: 3px solid rgba(40, 104, 232, 0.28);
    outline-offset: 2px;
}

.cookie-consent-status {
    position: fixed;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.mobile-cta-visible .cookie-persistent-controls,
body:has(.mobile-sticky-cta.visible) .cookie-persistent-controls {
    bottom: calc(5rem + env(safe-area-inset-bottom));
}

@media (max-width: 760px) {
    .cookie-banner .cookie-inner {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .cookie-preferences {
        grid-template-columns: 1fr;
    }

    .cookie-banner .cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        padding: 0 0.65rem;
    }
}

@media (max-width: 420px) {
    .cookie-banner .cookie-actions {
        grid-template-columns: 1fr;
    }

    .cookie-persistent-controls {
        right: 0.75rem;
        left: 0.75rem;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        max-width: none;
        display: grid;
        grid-template-columns: 1fr;
    }
}
