.cookie-consent-banner {
    position: fixed;
    z-index: 1100;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem;
    color: #111827;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.22);
}

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

.cookie-consent-banner p {
    margin: 0.5rem 0 1rem;
}

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

.cookie-consent-actions button,
.cookie-consent-manage {
    min-height: 44px;
    padding: 0.625rem 1rem;
    color: #0f172a;
    background: #fff;
    border: 2px solid #475569;
    border-radius: 8px;
    font-weight: 700;
}

.cookie-consent-actions button:hover,
.cookie-consent-actions button:focus-visible,
.cookie-consent-manage:hover,
.cookie-consent-manage:focus-visible {
    color: #fff;
    background: #0f172a;
}

.cookie-consent-settings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #cbd5e1;
}

.cookie-consent-settings label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0.75rem 0;
}

.cookie-consent-settings input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
}

.cookie-consent-manage {
    position: fixed;
    z-index: 1090;
    bottom: 1rem;
    left: 1rem;
    min-height: 44px;
    font-size: 0.875rem;
}

@media (max-width: 767.98px) {
    .cookie-consent-banner {
        right: 0.5rem;
        bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
        left: 0.5rem;
        max-height: min(70vh, 520px);
        overflow-y: auto;
    }

    .cookie-consent-actions > button {
        flex: 1 1 100%;
    }

    .cookie-consent-manage {
        bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }
}
