/* Cookie consent banner — Webycia
   Layout only. The decision, storage and focus handling live in js/webycia-consent.js.
   Kept out of the Tailwind build so the banner can never regress when utilities change. */

.wc-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    padding: 0.75rem;
    pointer-events: none;
}

.wc-consent__panel {
    pointer-events: auto;
    margin: 0 auto;
    max-width: 68rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: #ffffff;
    color: #333333;
    border: 1px solid rgba(13, 43, 91, 0.12);
    box-shadow: 0 18px 40px -18px rgba(13, 43, 91, 0.45);
    font-size: 0.875rem;
    line-height: 1.5;
}

.wc-consent__text {
    flex: 1 1 22rem;
    min-width: 0;
    margin: 0;
}

.wc-consent__text a {
    color: #0d2b5b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wc-consent__text a:hover,
.wc-consent__text a:focus-visible {
    color: #f28c26;
}

.wc-consent__actions {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
    margin-left: auto;
}

.wc-consent__btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 0.6rem 1.4rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.wc-consent__btn--accept {
    background: #f28c26;
    /* Navy on brand orange: 5.8:1, so the primary button passes AA and AAA-large. */
    color: #0d2b5b;
    box-shadow: 0 8px 18px -8px rgba(242, 140, 38, 0.8);
}

.wc-consent__btn--accept:hover {
    background: #dd7c19;
}

.wc-consent__btn--reject {
    background: #ffffff;
    color: #0d2b5b;
    border-color: rgba(13, 43, 91, 0.28);
}

.wc-consent__btn--reject:hover {
    border-color: #0d2b5b;
    background: #f4f2ee;
}

.wc-consent__btn:focus-visible {
    outline: 2px solid #0d2b5b;
    outline-offset: 2px;
}

.wc-consent[hidden] {
    display: none !important;
}

/* The banner ships in the initial HTML so a raw, non-executing scan finds the CMP.
   A visit that already has a decision hides it before first paint. */
html.wc-consent-decided #cookie-consent-banner {
    display: none;
}

@media (max-width: 640px) {
    .wc-consent__panel {
        padding: 1rem;
    }

    .wc-consent__actions {
        width: 100%;
        margin-left: 0;
    }

    .wc-consent__btn {
        flex: 1 1 0;
    }
}
