/* oc-consent.css v1.1 - 3rd Oct 2026 - reduced motion: the banner, settings panel and icon show straight away (Kris).
   v1.0 - 2nd Oct 2026 - the cookie banner on an OliveCore site (with /js/oc-consent.js).
   Loaded by Pages/Shared/_SiteHead.cshtml only when the banner shows. Two jobs:
   1. The "Show this content" card that stands in for held-back content (MsConsent.Gate, OcConsent.card). It inherits
      the theme's font and text colour so it sits in any theme; its button takes the banner's colours, which the
      server writes as --oc-consent-primary / --oc-consent-on.
   2. Small changes to the Silktide banner: the theme's own font, and no third-party logo or credit link - a client's
      site carries no outside branding. */

.oc-consent-gate { width: 100%; height: 100%; }

.oc-consent-card {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: 12px;
    background: rgba(127, 127, 127, .08);
    color: inherit;
    font: inherit;
    text-align: center;
}
.oc-consent-card p { margin: 0; max-width: 46ch; font-size: .95em; line-height: 1.5; }
.oc-consent-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.oc-consent-card button {
    appearance: none;
    margin: 0;
    padding: 10px 18px;
    border-radius: 8px;
    border: 2px solid var(--oc-consent-primary, currentColor);
    font: inherit;
    font-size: .9em;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}
.oc-consent-card .oc-consent-load { background: var(--oc-consent-primary, #1D2733); color: var(--oc-consent-on, #FFFFFF); }
.oc-consent-card .oc-consent-prefs { background: transparent; color: inherit; }
.oc-consent-card button:hover { filter: brightness(1.08); }
.oc-consent-card button:focus-visible { outline: 3px solid var(--oc-consent-primary, currentColor); outline-offset: 2px; }

/* Silktide */
#stcm-wrapper .stcm-logo,
#stcm-modal footer a.stcm-credit-link { display: none !important; }

/* Reduced motion. Silktide starts these at opacity 0 and relies on an animation to show them, and themes switch
   animations off for reduced motion - so they stayed invisible. Show the end state at once. Open/closed is still
   Silktide's (display), so nothing is forced on screen. */
@media (prefers-reduced-motion: reduce) {
    #stcm-banner, #stcm-modal, #stcm-icon { animation: none !important; transition: none !important; opacity: 1 !important; }
    #stcm-banner, #stcm-modal { transform: none !important; }
    #stcm-banner.stcm-pos-center { transform: translate(-50%, -50%) !important; }
    #stcm-banner.stcm-pos-bottom-center { transform: translate(-50%, 0) !important; }
    #stcm-modal .stcm-toggle-thumb, #stcm-modal .stcm-toggle-on, #stcm-modal .stcm-toggle-off { transition: none !important; }
}

/* The card inside the gallery lightbox, which is dark whatever the theme. */
.msg-lb-media .oc-consent-card { max-width: 560px; margin: 0 auto; color: #FFFFFF; background: rgba(0, 0, 0, .55); border-color: rgba(255, 255, 255, .35); }
