/* ------------------------------------------------------------------
   Moontown Ltd — Tarte au citron cookie banner overrides
   Styled to match the site's industrial navy/gold palette.

   The vendor stylesheet (js/tarteaucitron/css/tarteaucitron.min.css)
   is injected at runtime AFTER this file, so every override here uses
   the `html body` prefix to out-rank the vendor's two-id selectors
   regardless of load order. The banner's show/hide is an inline
   `display` style set by the vendor JS — never override display.
   ------------------------------------------------------------------ */

/* ---------- Banner shell ---------- */
html body #tarteaucitronRoot #tarteaucitronAlertBig {
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.98) 0%, rgba(15, 31, 51, 0.99) 100%);
    color: #e8ecf2;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px !important;
    line-height: 1.55;
    text-align: center;
    padding: 18px 24px 20px;
    box-sizing: border-box;
    border-top: 3px solid #d4a84b;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}

/* Disclaimer copy */
html body #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert {
    display: inline-block;
    margin: 0 8px 10px;
    color: #e8ecf2;
    font-size: 13.5px;
    line-height: 1.55;
    letter-spacing: 0.01em;
    text-align: center;
    max-width: 720px;
}

html body #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert strong {
    color: #ffffff;
    font-weight: 600;
}

html body #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert a,
html body #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert a:visited {
    color: #e8c478;
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 196, 120, 0.35);
    transition: color 200ms ease, border-color 200ms ease;
}

html body #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert a:hover,
html body #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert a:focus {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* ---------- Button row: shared baseline ---------- */
html body #tarteaucitronAlertBig #tarteaucitronCloseAlert,
html body #tarteaucitronAlertBig #tarteaucitronPersonalize2,
html body #tarteaucitronAlertBig #tarteaucitronAllDenied2,
html body #tarteaucitronAlertBig #tarteaucitronPrivacyUrl,
html body #tarteaucitronAlertBig .tarteaucitronCTAButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    box-sizing: border-box;
    min-height: 44px;
    line-height: 1.2;
    padding: 10px 18px;
    margin: 4px 4px 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

/* Primary CTA — Accept all (site gold, dark text like .btn--cta) */
html body #tarteaucitronAlertBig #tarteaucitronPersonalize2,
html body #tarteaucitronRoot .tarteaucitronCTAButton.tarteaucitronAllow {
    background: linear-gradient(135deg, #d4a84b, #b08a2e);
    border-color: #d4a84b;
    color: #1a1a1a;
}

html body #tarteaucitronAlertBig #tarteaucitronPersonalize2:hover,
html body #tarteaucitronAlertBig #tarteaucitronPersonalize2:focus,
html body #tarteaucitronRoot .tarteaucitronCTAButton.tarteaucitronAllow:hover,
html body #tarteaucitronRoot .tarteaucitronCTAButton.tarteaucitronAllow:focus {
    background: linear-gradient(135deg, #e8c478, #d4a84b);
    border-color: #e8c478;
    box-shadow: 0 2px 10px rgba(212, 168, 75, 0.45);
}

/* Secondary — Deny all */
html body #tarteaucitronAlertBig #tarteaucitronAllDenied2,
html body #tarteaucitronAlertBig .tarteaucitronCTAButton.tarteaucitronDeny {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

html body #tarteaucitronAlertBig #tarteaucitronAllDenied2:hover,
html body #tarteaucitronAlertBig #tarteaucitronAllDenied2:focus,
html body #tarteaucitronAlertBig .tarteaucitronCTAButton.tarteaucitronDeny:hover,
html body #tarteaucitronAlertBig .tarteaucitronCTAButton.tarteaucitronDeny:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
}

/* Tertiary — Personalise and Privacy policy (ghost style) */
html body #tarteaucitronAlertBig #tarteaucitronCloseAlert,
html body #tarteaucitronAlertBig #tarteaucitronPrivacyUrl {
    background: transparent;
    color: #c9d2dd;
    border-color: rgba(255, 255, 255, 0.18);
    font-weight: 500;
    letter-spacing: 0.05em;
}

html body #tarteaucitronAlertBig #tarteaucitronCloseAlert:hover,
html body #tarteaucitronAlertBig #tarteaucitronCloseAlert:focus,
html body #tarteaucitronAlertBig #tarteaucitronPrivacyUrl:hover,
html body #tarteaucitronAlertBig #tarteaucitronPrivacyUrl:focus {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
}

/* Visible keyboard focus on all banner controls */
html body #tarteaucitronRoot #tarteaucitronAlertBig button:focus-visible,
html body #tarteaucitronRoot .tarteaucitronCTAButton:focus-visible {
    outline: 3px solid rgba(212, 168, 75, 0.75);
    outline-offset: 2px;
}

/* Hide the ballot-box state icons on the main banner buttons
   (they stay visible in the personalise panel where they show state) */
html body #tarteaucitronAlertBig .tarteaucitronCheck::before,
html body #tarteaucitronAlertBig .tarteaucitronCross::before {
    content: '' !important;
}
html body #tarteaucitronAlertBig .tarteaucitronCheck,
html body #tarteaucitronAlertBig .tarteaucitronCross {
    margin: 0;
}

/* ---------- Floating cookie icon (post-consent) ---------- */
html body #tarteaucitronIcon {
    background: #1e3a5f !important;
    border-radius: 0 6px 0 0;
    padding: 8px 10px !important;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
    transition: background-color 200ms ease, transform 200ms ease;
}
html body #tarteaucitronIcon:hover {
    background: #2d5a8a !important;
    transform: translateY(-2px);
}
html body #tarteaucitronIcon #tarteaucitronManager {
    background: transparent !important;
    color: #ffffff !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0 !important;
}
html body #tarteaucitronIcon #tarteaucitronManager img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* ---------- Personalise / manager modal — brand polish ---------- */
html body #tarteaucitron #tarteaucitronServices .tarteaucitronTitle button,
html body #tarteaucitron .tarteaucitronMainLine {
    background: #0f1f33 !important;
    color: #ffffff !important;
    font-family: 'Inter', system-ui, sans-serif;
}

html body #tarteaucitronRoot .tarteaucitronAllow,
html body #tarteaucitronRoot .tarteaucitronDeny {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Manager panel privacy link keeps ghost styling */
html body #tarteaucitron #tarteaucitronPrivacyUrl {
    background: transparent;
    color: #1e3a5f;
    border: 1px solid rgba(30, 58, 95, 0.35);
    border-radius: 6px;
    padding: 8px 14px;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
    html body #tarteaucitronRoot #tarteaucitronAlertBig {
        padding: 16px 16px 18px;
    }
    html body #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert {
        margin: 0 0 12px;
        font-size: 13px;
    }
    html body #tarteaucitronAlertBig #tarteaucitronCloseAlert,
    html body #tarteaucitronAlertBig #tarteaucitronPersonalize2,
    html body #tarteaucitronAlertBig #tarteaucitronAllDenied2,
    html body #tarteaucitronAlertBig #tarteaucitronPrivacyUrl,
    html body #tarteaucitronAlertBig .tarteaucitronCTAButton {
        display: flex;
        width: 100%;
        margin: 6px 0 0;
        min-height: 44px;
        font-size: 12.5px !important;
    }
}

/* Keep the floating cookie icon clear of the mobile sticky contact bar */
@media (max-width: 768px) {
    html body #tarteaucitronIcon.tarteaucitronIconBottomLeft {
        bottom: 78px !important;
    }
}
