/* ============================================================
   Cookie consent banner
   Ported from the OptionsPlay landing chassis
   (OptionsPlayWidgets _ConsentBanner / landing.css) so optionsplay.se
   matches the sanctioned pattern. Colors are the brand tokens as-is.
   ============================================================ */

.op-consent-banner {
    position: fixed;
    inset-inline: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--op-bg-secondary, #f9fafb);
    border-top: 1px solid var(--op-border-default, #e5e7eb);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    font-size: var(--op-text-sm, 0.875rem);
}

.op-consent-banner__text {
    flex: 1 1 320px;
    color: var(--op-text-secondary, #6b7280);
    line-height: 1.5;
}

.op-consent-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.op-consent-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--op-radius-md, 6px);
    font-size: var(--op-text-sm, 0.875rem);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--op-border-default, #e5e7eb);
    background: transparent;
    color: var(--op-text-primary, #111827);
}

.op-consent-btn--accept {
    background: var(--op-primary, #4f7a34);
    border-color: var(--op-primary, #4f7a34);
    color: #ffffff;
}

/* Stack the actions under the copy on narrow screens so the buttons
   never get squeezed off the edge. */
@media (max-width: 600px) {
    .op-consent-banner {
        padding: 1rem;
        justify-content: stretch;
    }

    .op-consent-banner__actions {
        width: 100%;
    }

    .op-consent-btn {
        flex: 1 1 auto;
    }
}
