/* Cookie consent banner + settings modal — same behavioral pattern used
   across Progity properties (see cookie-consent.js), restyled to match
   Nodali's navy/green palette. Relies on the CSS custom properties already
   defined in main.css (loaded on every page that includes this file). */

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    color: var(--color-white, #fff);
    background: rgba(7, 21, 33, 0.96);
    box-shadow: 0 -8px 28px rgba(7, 21, 33, 0.35);
}

.cookie-consent-banner .cookie-consent-inner {
    width: 100%;
    max-width: var(--container-w, 1240px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-text {
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: left;
}

.cookie-consent-text a {
    color: var(--color-green-300, #9de8cc);
    font-weight: 700;
}

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

.cookie-consent-btn,
.cookie-consent-link {
    min-height: 40px;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cookie-consent-btn {
    background: var(--color-green-500, #2fd39a);
    color: var(--color-navy-950, #071521);
    border: 1px solid var(--color-green-500, #2fd39a);
}

.cookie-consent-btn:hover {
    background: var(--color-green-600, #23b982);
    border-color: var(--color-green-600, #23b982);
}

.cookie-consent-link {
    background: transparent;
    color: var(--color-white, #fff);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.cookie-consent-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 21, 33, 0.62);
    z-index: 9999;
    padding: 1rem;
}

.cookie-consent-modal-inner {
    width: 100%;
    max-width: 480px;
    background: var(--color-navy-900, #0f1b2d);
    color: var(--color-white, #fff);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(7, 21, 33, 0.5);
}

.cookie-consent-modal-inner h3 {
    margin: 0 0 0.6rem;
    font-family: var(--font-heading, inherit);
    font-size: 1.15rem;
}

.cookie-consent-modal-inner p {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.cookie-consent-modal-inner a {
    color: var(--color-green-300, #9de8cc);
    font-weight: 700;
}

.cookie-consent-modal .cookie-consent-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

#cookie-settings-link {
    cursor: pointer;
}

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

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

    .cookie-consent-btn,
    .cookie-consent-link {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-consent-modal {
        transition: none !important;
    }
}
