/* ==========================================================================
   Bowen Family Agency - Floating Cookie Consent Banner
   ========================================================================== */

/* Floating Box Container */
#cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: calc(100% - 48px);
    max-width: 420px;
    background: #0f172a; /* Dark navy slate matching agency theme */
    color: #f8fafc;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    animation: cookieBannerSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Banner Text */
#cookie-consent-banner p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
}

#cookie-consent-banner a {
    color: #38bdf8;
    text-decoration: underline;
}

/* Button Actions Container */
#cookie-consent-banner .cookie-banner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Primary Action: Presentable Accept Button */
#cookie-consent-banner button.btn-accept,
#cookie-consent-banner #btn-cookie-accept {
    background: #0284c7; /* Agency primary blue */
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

#cookie-consent-banner button.btn-accept:hover,
#cookie-consent-banner #btn-cookie-accept:hover {
    background: #0369a1;
    transform: translateY(-1px);
}

/* Secondary Action: Non-Essential Button */
#cookie-consent-banner button.btn-non-essential,
#cookie-consent-banner #btn-cookie-non-essential {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

#cookie-consent-banner button.btn-non-essential:hover,
#cookie-consent-banner #btn-cookie-non-essential:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: #475569;
}

/* Slide-up Entrance Animation */
@keyframes cookieBannerSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimization (Screens <= 600px) */
@media (max-width: 600px) {
    #cookie-consent-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
        max-width: none;
        padding: 18px;
        border-radius: 10px;
    }

    #cookie-consent-banner .cookie-banner-actions {
        flex-direction: column-reverse; /* Places Accept button on top for easier touch */
        width: 100%;
        gap: 8px;
    }

    #cookie-consent-banner button.btn-accept,
    #cookie-consent-banner button.btn-non-essential,
    #cookie-consent-banner #btn-cookie-accept,
    #cookie-consent-banner #btn-cookie-non-essential {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}