/* ==========================================================================
   Jean d'Cancale - announcement popup + tweaker panel
   --------------------------------------------------------------------------
   Used by js/jdc-popup.js (popup) and js/jdc-popup-tweaker.js (?tweaker).
   Every selector is scoped under .jdc-popup / .jdc-tweaker (or a
   jdc-popup-* class) so nothing leaks into the Quadra theme.

   Notes on the theme we have to live with:
   - theme.css sets `*, *:focus { outline: none !important; }`, so focus
     rings below need `!important` (our selectors are more specific).
   - theme.css sets `* { border: 0; }` and `a, button { color: inherit; }`,
     so borders and colours are always declared explicitly here.
   - 'Zona Pro' (declared in content/jdc/css/jdc.css) only exists in
     Thin (100) and Bold (700): we only use those two weights.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Root overlay + theme tokens
   The default tokens are the "red" theme; --light and --dark override them.
   -------------------------------------------------------------------------- */

.jdc-popup {
    /* Brand colours */
    --jdc-popup-red: #eb1f12;
    --jdc-popup-black: #050505;

    /* Marché aux Huîtres brand blue (rgb(0, 159, 227)), used for its link only */
    --jdc-popup-market-blue: #009fe3;

    /* Theme tokens ("red" theme = default) */
    --jdc-popup-bg: #ffffff;
    --jdc-popup-text: #2e2e2e;
    --jdc-popup-kicker: var(--jdc-popup-red);
    --jdc-popup-strip: var(--jdc-popup-red);
    --jdc-popup-closing: var(--jdc-popup-red);
    --jdc-popup-link: var(--jdc-popup-red);
    --jdc-popup-link-line: var(--jdc-popup-red);
    /* "Marché aux Huîtres" link: brand blue text + blue underline on ALL
       themes (red, light, dark). Deliberate developer decision: the
       contrast is ~3:1 on the light cards (below WCAG AA for normal
       text) and ~6.9:1 on the dark card; do not revert it to dark text. */
    --jdc-popup-market-link: var(--jdc-popup-market-blue);
    --jdc-popup-market-line: var(--jdc-popup-market-blue);
    --jdc-popup-btn-bg: var(--jdc-popup-red);
    --jdc-popup-btn-text: #ffffff;
    --jdc-popup-btn-border: var(--jdc-popup-red);
    --jdc-popup-btn-hover-bg: var(--jdc-popup-black);
    --jdc-popup-btn-hover-text: #ffffff;
    --jdc-popup-btn-hover-border: var(--jdc-popup-black);
    --jdc-popup-logo-ink: var(--jdc-popup-black);   /* white parts of the logo, recoloured */
    --jdc-popup-x-bg: rgba(255, 255, 255, 0.86);
    --jdc-popup-x-color: var(--jdc-popup-black);
    --jdc-popup-backdrop: rgba(5, 5, 5, 0.62);
    --jdc-popup-focus: var(--jdc-popup-red);
    --jdc-popup-progress-track: rgba(5, 5, 5, 0.08);
    --jdc-popup-progress: var(--jdc-popup-red);

    /* Values driven by CONFIG through js/jdc-popup.js */
    --jdc-popup-logo-h: 60px;
    --jdc-popup-autoclose: 10s;

    /* Layout constants */
    --jdc-popup-radius: 14px;
    --jdc-popup-duration: 300ms;   /* keep in sync with CLOSE_ANIMATION_MS in the JS */
    --jdc-popup-ease: cubic-bezier(0.22, 1, 0.36, 1);

    position: fixed;
    inset: 0;
    z-index: 10000;   /* above .page-loader (9750) and #mobile-navigation (9999), below cookie consent (1000000) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
             max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    font-family: 'Zona Pro', sans-serif;
    font-weight: 100;
    letter-spacing: 0.02em;
    text-align: left;
    -webkit-text-size-adjust: 100%;
}

.jdc-popup[hidden] {
    display: none;
}

/* "light": warm off-white card, black accents, red kept for strip + closing line */
.jdc-popup--light {
    --jdc-popup-bg: #f7f4ef;
    --jdc-popup-text: #2e2e2e;
    --jdc-popup-kicker: var(--jdc-popup-black);
    --jdc-popup-link: var(--jdc-popup-black);
    --jdc-popup-btn-bg: transparent;
    --jdc-popup-btn-text: var(--jdc-popup-black);
    --jdc-popup-btn-border: var(--jdc-popup-black);
    --jdc-popup-btn-hover-bg: var(--jdc-popup-black);
    --jdc-popup-btn-hover-text: #ffffff;
    --jdc-popup-btn-hover-border: var(--jdc-popup-black);
    --jdc-popup-x-bg: rgba(247, 244, 239, 0.88);
    --jdc-popup-focus: var(--jdc-popup-black);
    --jdc-popup-progress: var(--jdc-popup-black);
}

/* "dark": brand black card, white text, red accents */
.jdc-popup--dark {
    --jdc-popup-bg: var(--jdc-popup-black);
    --jdc-popup-text: rgba(255, 255, 255, 0.84);
    /* Title in the same soft white as the body text (not pure #fff, not red);
       the red strip under it is unchanged (--jdc-popup-strip). */
    --jdc-popup-kicker: var(--jdc-popup-text);
    --jdc-popup-link: #ffffff;
    --jdc-popup-btn-hover-bg: #ffffff;
    --jdc-popup-btn-hover-text: var(--jdc-popup-black);
    --jdc-popup-btn-hover-border: #ffffff;
    --jdc-popup-logo-ink: #ffffff;
    --jdc-popup-x-bg: rgba(5, 5, 5, 0.66);
    --jdc-popup-x-color: #ffffff;
    --jdc-popup-backdrop: rgba(5, 5, 5, 0.72);
    --jdc-popup-focus: #ffffff;
    --jdc-popup-progress-track: rgba(255, 255, 255, 0.12);
}


/* --------------------------------------------------------------------------
   2. Backdrop
   -------------------------------------------------------------------------- */

.jdc-popup .jdc-popup__backdrop {
    position: absolute;
    inset: 0;
    background: var(--jdc-popup-backdrop);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity var(--jdc-popup-duration) ease;
}

.jdc-popup.is-open .jdc-popup__backdrop {
    opacity: 1;
}


/* --------------------------------------------------------------------------
   3. Card (the role="dialog" element)
   The card itself never scrolls: .jdc-popup__scroll does, so the close
   cross and the progress bar stay pinned to the card edges.
   -------------------------------------------------------------------------- */

.jdc-popup .jdc-popup__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    max-height: 90dvh;
    overflow: hidden;
    background: var(--jdc-popup-bg);
    color: var(--jdc-popup-text);
    border-radius: var(--jdc-popup-radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity var(--jdc-popup-duration) ease,
                transform var(--jdc-popup-duration) var(--jdc-popup-ease);
}

.jdc-popup.is-open .jdc-popup__card {
    opacity: 1;
    transform: none;
}

/* The card receives programmatic focus on open: no ring on the card itself */
.jdc-popup .jdc-popup__card:focus {
    outline: none !important;
}

.jdc-popup .jdc-popup__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Two-column grid: photo | text (default "image-left") */
.jdc-popup .jdc-popup__layout {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    grid-template-areas: "media content";
    min-height: min(460px, 86vh);
}

.jdc-popup--image-right .jdc-popup__layout {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    grid-template-areas: "content media";
}

.jdc-popup--no-image .jdc-popup__card {
    max-width: 580px;
}

.jdc-popup--no-image .jdc-popup__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "content";
    min-height: 0;
}

.jdc-popup--no-image .jdc-popup__media {
    display: none;
}


/* --------------------------------------------------------------------------
   4. Photo
   -------------------------------------------------------------------------- */

.jdc-popup .jdc-popup__media {
    grid-area: media;
    position: relative;
    margin: 0;
    min-height: 100%;
    overflow: hidden;
    background: #1b1b1b;   /* shown while the photo loads */
}

.jdc-popup .jdc-popup__photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 50%;   /* overridden per image from CONFIG.imageChoices */
}


/* --------------------------------------------------------------------------
   5. Text column
   -------------------------------------------------------------------------- */

.jdc-popup .jdc-popup__content {
    grid-area: content;
    padding: 44px 48px 40px;
}

/* Logo: height from CONFIG.logoHeight. The SVG is inlined by the JS with
   preserveAspectRatio="xMinYMid meet", so it stays left-aligned. */
.jdc-popup .jdc-popup__logo {
    height: var(--jdc-popup-logo-h);
    margin: 0 0 28px;
}

.jdc-popup .jdc-popup__logo[hidden] {
    display: none;
}

.jdc-popup .jdc-popup__logo svg,
.jdc-popup .jdc-popup__logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

/* White parts of the wordmark, recoloured per theme (see CONFIG.logoInkSelector) */
.jdc-popup .jdc-popup__logo .jdc-popup__logo-ink {
    fill: var(--jdc-popup-logo-ink);
}

/* Kicker / title */
.jdc-popup .jdc-popup__title {
    margin: 0;
    padding: 0 28px 0 0;   /* keeps clear of the close cross in "image-right" / "no-image" */
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--jdc-popup-kicker);
}

/* Thin red strip, in the spirit of .title-strips-red (70px) */
.jdc-popup .jdc-popup__strip {
    width: 70px;
    height: 2px;
    margin: 16px 0 24px;
    background: var(--jdc-popup-strip);
}

.jdc-popup .jdc-popup__text {
    margin: 0 0 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 100;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: var(--jdc-popup-text);
}

.jdc-popup .jdc-popup__closing {
    margin: 24px 0 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: var(--jdc-popup-closing);
}

/* "Marché aux Huîtres" link (only rendered when CONFIG.marketUrl is set).
   Colours come from --jdc-popup-market-link / --jdc-popup-market-line,
   both based on --jdc-popup-market-blue (see the theme tokens above).
   The :hover/:focus selectors are repeated because theme.css forces
   `a:hover, a:focus { color: inherit; text-decoration: none; }`. */
.jdc-popup .jdc-popup__link,
.jdc-popup .jdc-popup__link:hover,
.jdc-popup .jdc-popup__link:focus {
    font-weight: 700;
    color: var(--jdc-popup-market-link);
    text-decoration: underline;
    text-decoration-color: var(--jdc-popup-market-line);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-thickness 0.15s ease, text-underline-offset 0.15s ease;
}

/* Hover / keyboard focus: thicker, closer underline */
.jdc-popup .jdc-popup__link:hover,
.jdc-popup .jdc-popup__link:focus-visible {
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Visually hidden text for screen readers, e.g. "(nouvel onglet)" */
.jdc-popup .jdc-popup__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Action button: only present in the DOM when CONFIG.buttonLabel is set
   (created / removed by renderButton() in js/jdc-popup.js) */
.jdc-popup .jdc-popup__actions {
    margin: 30px 0 0;
}

.jdc-popup .jdc-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 12px 28px;
    border: 1px solid var(--jdc-popup-btn-border);
    border-radius: 40px;
    background: var(--jdc-popup-btn-bg);
    color: var(--jdc-popup-btn-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.jdc-popup .jdc-popup__btn:hover {
    background: var(--jdc-popup-btn-hover-bg);
    color: var(--jdc-popup-btn-hover-text);
    border-color: var(--jdc-popup-btn-hover-border);
}


/* --------------------------------------------------------------------------
   6. Close cross (top-right of the card)
   -------------------------------------------------------------------------- */

.jdc-popup .jdc-popup__x {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--jdc-popup-x-bg);
    color: var(--jdc-popup-x-color);
    line-height: 0;
    cursor: pointer;
    opacity: 0.78;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease, transform 0.3s var(--jdc-popup-ease);
}

.jdc-popup .jdc-popup__x:hover,
.jdc-popup .jdc-popup__x:focus-visible {
    opacity: 1;
    transform: rotate(90deg);
}

/* The cross itself: two thin lines */
.jdc-popup .jdc-popup__x::before,
.jdc-popup .jdc-popup__x::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.jdc-popup .jdc-popup__x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* --------------------------------------------------------------------------
   7. Auto-close progress bar (only visible when CONFIG.autoClose > 0)
   The JS closes the popup on the bar's `animationend`, so pausing the
   animation (hover / keyboard focus) also pauses the countdown.
   -------------------------------------------------------------------------- */

.jdc-popup .jdc-popup__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 3px;
    background: var(--jdc-popup-progress-track);
    pointer-events: none;
}

.jdc-popup .jdc-popup__progress[hidden] {
    display: none;
}

.jdc-popup .jdc-popup__progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--jdc-popup-progress);
    transform-origin: left center;
    transform: scaleX(1);
}

.jdc-popup .jdc-popup__progress-bar.is-running {
    animation: jdc-popup-countdown var(--jdc-popup-autoclose) linear forwards;
}

.jdc-popup .jdc-popup__card:hover .jdc-popup__progress-bar,
.jdc-popup .jdc-popup__card:has(:focus-visible) .jdc-popup__progress-bar {
    animation-play-state: paused;
}

@keyframes jdc-popup-countdown {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}


/* --------------------------------------------------------------------------
   8. Focus ring (needs !important because of the theme's outline reset)
   -------------------------------------------------------------------------- */

.jdc-popup .jdc-popup__x:focus-visible,
.jdc-popup .jdc-popup__btn:focus-visible {
    outline: 2px solid var(--jdc-popup-focus) !important;
    outline-offset: 3px;
}

/* Market link: focus ring in the Marché aux Huîtres blue, all themes */
.jdc-popup .jdc-popup__link:focus-visible {
    outline: 2px solid var(--jdc-popup-market-blue) !important;
    outline-offset: 3px;
    border-radius: 2px;
}


/* --------------------------------------------------------------------------
   9. Page scroll lock (class set on <html> while the popup is open).
   !important is required: theme.css forces `body { overflow-x: hidden !important; }`.
   -------------------------------------------------------------------------- */

html.jdc-popup-lock,
html.jdc-popup-lock body {
    overflow: hidden !important;
}


/* --------------------------------------------------------------------------
   10. Mobile: photo as a reduced-height banner on top, text below,
   the whole card scrolls inside the viewport (max-height 90vh).
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
    .jdc-popup .jdc-popup__card {
        max-width: 520px;
        border-radius: 12px;
    }

    .jdc-popup--image-left .jdc-popup__layout,
    .jdc-popup--image-right .jdc-popup__layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "media" "content";
        min-height: 0;
    }

    .jdc-popup .jdc-popup__media {
        height: clamp(110px, 26vh, 200px);
        min-height: 0;
    }

    .jdc-popup .jdc-popup__content {
        padding: 28px 24px 28px;
    }

    .jdc-popup .jdc-popup__logo {
        margin-bottom: 22px;
    }

    .jdc-popup .jdc-popup__title {
        font-size: 14px;
        letter-spacing: 0.14em;
    }

    .jdc-popup .jdc-popup__strip {
        margin: 14px 0 20px;
    }

    .jdc-popup .jdc-popup__text {
        font-size: 15px;
        line-height: 1.65;
    }

    .jdc-popup .jdc-popup__closing {
        font-size: 17px;
        margin-top: 20px;
    }

    .jdc-popup .jdc-popup__actions {
        margin-top: 24px;
    }
}

@media (max-width: 380px) {
    .jdc-popup .jdc-popup__content {
        padding: 24px 18px 24px;
    }

    .jdc-popup .jdc-popup__title {
        font-size: 13px;
        letter-spacing: 0.12em;
    }

    .jdc-popup .jdc-popup__btn {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* --------------------------------------------------------------------------
   11. Reduced motion: fade only, no scale / rotation.
   The progress bar keeps animating: it is the auto-close countdown itself.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .jdc-popup .jdc-popup__card {
        transform: none;
        transition: opacity 120ms linear;
    }

    .jdc-popup .jdc-popup__backdrop {
        transition: opacity 120ms linear;
    }

    .jdc-popup .jdc-popup__x,
    .jdc-popup .jdc-popup__btn {
        transition: none;
    }

    .jdc-popup .jdc-popup__x:hover,
    .jdc-popup .jdc-popup__x:focus-visible {
        transform: none;
    }
}


/* ==========================================================================
   Tweaker panel (?tweaker only, built by js/jdc-popup-tweaker.js)
   Developer tool: system font, compact, bottom-left.
   The panel element must stay a <div>, never a <section>: theme.css has
   `body.footer-fixed-page>section { position: relative; z-index: 2; }`
   (more specific than .jdc-tweaker), which would drop it out of
   position: fixed as soon as scripts.js adds that class on window load.
   ========================================================================== */

.jdc-tweaker {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 10050;   /* above the popup (10000), below the cookie consent (1000000) */
    display: flex;
    flex-direction: column;
    width: 300px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #151515;
    color: #ececec;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    font: 12px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0;
    text-align: left;
}

.jdc-tweaker .jdc-tweaker__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    font: 600 12px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.jdc-tweaker .jdc-tweaker__toggle::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #eb1f12;
}

.jdc-tweaker .jdc-tweaker__toggle-label {
    flex: 1 1 auto;
}

.jdc-tweaker .jdc-tweaker__chevron {
    transition: transform 0.2s ease;
}

.jdc-tweaker .jdc-tweaker__toggle[aria-expanded="false"] .jdc-tweaker__chevron {
    transform: rotate(180deg);
}

.jdc-tweaker .jdc-tweaker__body {
    overflow-y: auto;
    padding: 4px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jdc-tweaker .jdc-tweaker__body[hidden] {
    display: none;
}

.jdc-tweaker .jdc-tweaker__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
}

.jdc-tweaker .jdc-tweaker__row[hidden] {
    display: none;
}

.jdc-tweaker .jdc-tweaker__label {
    display: block;
    margin: 0;
    color: #bdbdbd;
    font-weight: 400;
}

.jdc-tweaker .jdc-tweaker__field {
    display: block;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 4px 7px;
    border: 1px solid #343434;
    border-radius: 6px;
    background: #222222;
    color: #ececec;
    font: inherit;
    letter-spacing: 0;
}

.jdc-tweaker .jdc-tweaker__field[type="checkbox"] {
    width: 16px;
    height: 16px;
    padding: 0;
    accent-color: #eb1f12;
    cursor: pointer;
}

.jdc-tweaker .jdc-tweaker__field[type="range"] {
    padding: 0;
    border: 0;
    background: transparent;
    accent-color: #eb1f12;
}

.jdc-tweaker .jdc-tweaker__inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jdc-tweaker .jdc-tweaker__value {
    flex: 0 0 auto;
    min-width: 36px;
    color: #ffffff;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.jdc-tweaker .jdc-tweaker__mini {
    flex: 0 0 auto;
    margin: 0;
    padding: 4px 7px;
    border: 1px solid #343434;
    border-radius: 6px;
    background: #222222;
    color: #ececec;
    font: inherit;
    cursor: pointer;
}

.jdc-tweaker .jdc-tweaker__hint {
    margin: 10px 0 0;
    color: #8a8a8a;
    font-size: 11px;
}

.jdc-tweaker .jdc-tweaker__actions {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
}

.jdc-tweaker .jdc-tweaker__btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #343434;
    border-radius: 6px;
    background: #262626;
    color: #ffffff;
    font: 600 12px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    text-align: center;
    cursor: pointer;
}

.jdc-tweaker .jdc-tweaker__btn:hover,
.jdc-tweaker .jdc-tweaker__mini:hover {
    background: #303030;
}

.jdc-tweaker .jdc-tweaker__btn--primary {
    border-color: #eb1f12;
    background: #eb1f12;
}

.jdc-tweaker .jdc-tweaker__btn--primary:hover {
    background: #c9180d;
}

.jdc-tweaker .jdc-tweaker__msg {
    min-height: 16px;
    margin: 8px 0 0;
    color: #9fd49f;
}

.jdc-tweaker .jdc-tweaker__copy-fallback {
    display: block;
    width: 100%;
    height: 180px;
    margin: 8px 0 0;
    padding: 6px;
    border: 1px solid #343434;
    border-radius: 6px;
    background: #0d0d0d;
    color: #d6d6d6;
    font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    resize: vertical;
}

.jdc-tweaker .jdc-tweaker__copy-fallback[hidden] {
    display: none;
}

/* Focus ring (theme.css removes outlines with !important) */
.jdc-tweaker .jdc-tweaker__toggle:focus-visible,
.jdc-tweaker .jdc-tweaker__field:focus-visible,
.jdc-tweaker .jdc-tweaker__btn:focus-visible,
.jdc-tweaker .jdc-tweaker__mini:focus-visible,
.jdc-tweaker .jdc-tweaker__copy-fallback:focus-visible {
    outline: 2px solid #eb1f12 !important;
    outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
    .jdc-tweaker .jdc-tweaker__chevron {
        transition: none;
    }
}
