.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background: #111827;
    color: #f9fafb;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

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

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
}

.cookie-banner-copy {
    flex: 1 1 320px;
}

.cookie-banner-copy h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: #fff;
}

.cookie-banner-copy p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e5e7eb;
}

.cookie-banner-copy a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.cookie-banner-actions button {
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
}

.cookie-btn-accept {
    background: #fff;
    color: #111827;
}

.cookie-btn-reject {
    background: transparent;
    color: #fff;
    border-color: #9ca3af;
}

.cookie-btn-reject-outline {
    background: transparent;
    border-color: #9ca3af;
}

.cookie-btn-manage {
    background: #2563eb;
    color: #fff;
}

.cookie-preferences-modal {
    position: fixed;
    inset: 0;
    z-index: 1085;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-preferences-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cookie-preferences-dialog {
    position: relative;
    background: #fff;
    color: #111827;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.cookie-preferences-dialog h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.cookie-preferences-dialog p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.cookie-pref-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid #e5e7eb;
}

.cookie-pref-row h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.cookie-pref-row p {
    margin: 0;
    font-size: 0.8rem;
}

.cookie-pref-row input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.cookie-preferences-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.cookie-preferences-actions button {
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
}

.cookie-preferences-actions .cookie-btn-accept {
    border-color: transparent;
}

.footer-cookie-link {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.footer-cookie-link:hover {
    text-decoration: underline;
    color: #2563EB;
}

@media (max-width: 576px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner-actions {
        width: 100%;
    }

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