/* =============================================================
   COOKIE NOTICE — bottom bar, site-wide, dismissed once per visitor.
   Markup: extras/cookie-banner.php · behaviour: assets/js/cookie-banner.js

   Ships hidden ([hidden] + translated down) and is revealed by the
   script, so a returning visitor gets no flash of a bar they already
   dismissed.
   ============================================================= */
.wecom-cookie-notice {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;

    /* Above everything, including the roaming popup (999999999). Asked for
       explicitly on 2026-10-15: the notice is a legal one, so it is never the
       thing that gets covered. The trade is that it now overlaps a popup
       opened while the bar is still showing. */
    z-index: 999999999999;

    background: var(--color-white);

    /* No top rule — the shadow alone lifts the bar off the page, which is how
       the client's reference reads. */
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.10);

    transform: translateY(100%);
    transition: transform 0.28s ease-out;
}

.wecom-cookie-notice.is-visible {
    transform: translateY(0);
}

.wecom-cookie-notice__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 14px 24px;

    display: flex;
    align-items: center;
    gap: 16px 24px;
}

/* Text takes the room; the button keeps its own width. In RTL the text
   sits first (right) and the button last (left), matching the reference. */
.wecom-cookie-notice__text {
    flex: 1 1 auto;
    min-width: 0;

    font-size: 15px;
    line-height: 1.5;
    color: var(--color-tertiary);
}

.wecom-cookie-notice__text p {
    margin: 0;
}

.wecom-cookie-notice__text p + p {
    margin-block-start: 4px;
}

.wecom-cookie-notice__text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.wecom-cookie-notice__button {
    flex: 0 0 auto;
    min-width: 132px;
    padding: 11px 26px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    text-align: center;

    background: var(--color-primary);
    border: 0;

    /* The site's own button shape, not a pill — matches the client's
       reference and every other CTA on the site. */
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: background 0.15s;

    -webkit-appearance: none;
    appearance: none;
}

.wecom-cookie-notice__button:hover,
.wecom-cookie-notice__button:focus-visible {
    background: var(--color-primary-hover);
}

.wecom-cookie-notice__button:focus-visible {
    outline: 2px solid var(--color-tertiary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .wecom-cookie-notice__inner {
        padding: 14px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .wecom-cookie-notice__text {
        font-size: 14px;
    }

    .wecom-cookie-notice__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wecom-cookie-notice {
        transition: none;
    }
}
