/* ==========================================================================
   Cookie consent banner — Google Consent Mode v2
   Pairs with header.php (consent default) + js/consent.js (logic).
   ========================================================================== */
.gi-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .08);
    padding: 16px;
    transform: translateY(100%);
    transition: transform .25s ease;
}

.gi-consent--visible { transform: translateY(0); }
.gi-consent[hidden] { display: none; }

.gi-consent__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.gi-consent__text { flex: 1 1 380px; min-width: 260px; }

.gi-consent__text strong {
    display: block;
    font-size: 1rem;
    color: var(--primary-color, #0D5D3F);
    margin-bottom: 4px;
}

.gi-consent__text p {
    margin: 0;
    font-size: .875rem;
    line-height: 1.5;
    color: #475467;
}

.gi-consent__text a {
    color: var(--primary-color, #0D5D3F);
    text-decoration: underline;
}

.gi-consent__actions { display: flex; gap: 10px; flex: 0 0 auto; }

.gi-consent__btn {
    font: inherit;
    font-weight: 600;
    font-size: .9rem;
    padding: 10px 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

/* Reject is given equal visual weight to accept (GDPR) */
.gi-consent__btn--reject { background: #fff; border-color: #d0d5dd; color: #344054; }
.gi-consent__btn--reject:hover { background: #f9fafb; }

.gi-consent__btn--accept { background: var(--primary-color, #0D5D3F); color: #fff; }
.gi-consent__btn--accept:hover { background: #0a4a32; }

@media (max-width: 560px) {
    .gi-consent { padding: 12px 16px; }
    .gi-consent__inner { flex-direction: column; align-items: stretch; gap: 10px; }
    /* In the column layout the 380px flex-basis of __text would become
       *height*, blowing the banner up to ~55% of the viewport — reset it. */
    .gi-consent__text { flex: 0 1 auto; min-width: 0; }
    .gi-consent__actions { flex-direction: row; }
    .gi-consent__btn { flex: 1; }
}
