.cookie-consent-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 120;
    background: #ffffff;
    border: 1px solid #dce5f2;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.22);
    display: none;
    gap: 0.9rem;
    padding: 0.95rem;
}

.cookie-consent-banner.open {
    display: grid;
}

.cookie-consent-copy h3 {
    margin: 0;
    font-size: 1rem;
}

.cookie-consent-copy p {
    margin: 0.35rem 0 0;
    color: #475569;
    line-height: 1.5;
}

.cookie-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cookie-links a {
    color: #1d4ed8;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.cookie-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 118;
    display: none;
    background: rgba(2, 6, 23, 0.45);
}

.cookie-consent-backdrop.open {
    display: block;
}

.cookie-consent-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 121;
    width: min(620px, calc(100% - 1.5rem));
    max-height: 86vh;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid #dce5f2;
    background: #ffffff;
    box-shadow: 0 20px 58px rgba(2, 6, 23, 0.28);
    padding: 1rem;
    display: none;
}

.cookie-consent-modal.open {
    display: block;
}

.cookie-consent-modal header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.cookie-consent-modal h3 {
    margin: 0;
}

.cookie-modal-close {
    border: 1px solid #dce5f2;
    background: #fff;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
}

.cookie-modal-copy {
    color: #475569;
    margin: 0.6rem 0 0.9rem;
}

.cookie-purpose-list {
    display: grid;
    gap: 0.55rem;
}

.cookie-purpose-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem;
}

.cookie-purpose-item strong {
    display: block;
    margin-bottom: 0.2rem;
}

.cookie-purpose-item small {
    display: block;
    color: #64748b;
    line-height: 1.4;
}

.cookie-consent-modal footer {
    margin-top: 0.95rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-prefs-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 117;
    border: 1px solid #dce5f2;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.12);
}

.cookie-consent-banner.open ~ .cookie-prefs-fab,
.cookie-consent-modal.open ~ .cookie-prefs-fab {
    display: none;
}

@media (min-width: 860px) {
    .cookie-consent-banner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}
