/* ==========================================================================
   CT Law Theme — Cookie Consent Banner
   ========================================================================== */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent-banner.is-visible {
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    font-size: 0.9rem;
    margin: 0;
    min-width: 250px;
}

.cookie-consent-text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-actions .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* ---------- Map Consent Placeholder ---------- */
.map-consent-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    height: 100%;
    background-color: var(--color-light);
    text-align: center;
    padding: 40px 20px;
}

.map-consent-content {
    max-width: 300px;
}

.map-consent-icon {
    color: var(--color-accent);
    margin-bottom: 15px;
}

.map-consent-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* ---------- Push mobile call button above banner ---------- */
.cookie-consent-banner.is-visible ~ #page .mobile-call-btn {
    bottom: 90px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: none;
    }
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 768px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
}
