/* =====================================================
   COOKIE CONSENT BANNER
   End Of Life Memorials
   Drop-in module — include cookie-consent-include.php
   on every page. Uses existing brand CSS variables.
   ===================================================== */

.eol-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: var(--bg-card, #fff);
    border-top: 1px solid var(--border-light, #E8E4DE);
    box-shadow: 0 -8px 30px rgba(44, 62, 58, 0.12);
    padding: var(--space-lg, 24px);
    transform: translateY(110%);
    transition: transform 0.35s ease;
}

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

.eol-cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg, 24px);
    flex-wrap: wrap;
}

.eol-cookie-text {
    flex: 1 1 380px;
    font-family: var(--font-body, sans-serif);
    color: var(--text-dark, #2C3E3A);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.eol-cookie-text strong {
    font-family: var(--font-display, serif);
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-dark, #2C3E3A);
}

.eol-cookie-text a {
    color: var(--sage-dark, #6B8A7A);
    text-decoration: underline;
}

.eol-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.eol-cookie-actions button {
    font-family: var(--font-body, sans-serif);
    font-size: 14px;
    font-weight: 500;
    padding: 11px 20px;
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.eol-cookie-actions button:hover {
    transform: translateY(-1px);
}

.eol-cookie-accept {
    background: var(--sage, #8BA89A);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 168, 154, 0.3);
}

.eol-cookie-accept:hover {
    background: var(--sage-dark, #6B8A7A);
}

.eol-cookie-necessary {
    background: var(--bg-section, #F4F1EB);
    color: var(--text-dark, #2C3E3A);
    border-color: var(--border-medium, #D4CFC6);
}

.eol-cookie-necessary:hover {
    background: var(--cream-dark, #EDE8E0);
}

body.eol-cookie-open {
    padding-bottom: 0; /* room can be added per-page if needed */
}

@media (max-width: 640px) {
    .eol-cookie-banner {
        padding: var(--space-md, 16px);
    }
    .eol-cookie-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .eol-cookie-actions {
        width: 100%;
    }
    .eol-cookie-actions button {
        flex: 1 1 0;
    }
}
