/* ==========================================================================
   Slimea JUM express — page shell, pack cards, checkout modal, social toast.

   Loaded AFTER single-page-checkout-halogrow.css, which keeps styling the
   shipping form, the payment tabs, the PSP widget containers, the tooltips and
   the error banner. This sheet owns everything else and overrides halogrow
   where the two meet (notably .product-option, reused here as the card root
   because the shared JS looks it up with closest()).
   ========================================================================== */

:root {
    --jum-brand: #FFB225;
    --jum-brand-hover: #FFC439;
    --jum-cream: #FFF8E7;
    --jum-tint: #FFF6DC;
    --jum-ink: #1D1D1B;
    --jum-muted: #6B7280;
    --jum-green: #34A853;
    --jum-red: #E3342F;
    --jum-border: #E7E7E7;
    --jum-radius-card: 14px;
    --jum-radius-modal: 10px;
    --jum-radius-input: 8px;
    --jum-font: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Site chrome

   halogrow tries to strip the header with `.header-area, .banner-area`
   (single-page-checkout-halogrow.css:26), but `.header-area` exists in the joy
   layout ONLY as an HTML comment - the real elements are <header id="home"> and
   <div id="sticky-header" class="menu-area">. That rule has therefore never
   matched anything, and the full site navigation rendered on a funnel page that
   should have no way out of it.

   The logo stays: it is the only trust anchor above the fold. Everything that
   navigates away goes.
   -------------------------------------------------------------------------- */

.navbar-wrap,
.header-action,
.mobile-nav-toggler,
.mobile-menu,
.menu-backdrop,
.search-popup-wrap,
.search-backdrop,
.offCanvas-wrap,
.offCanvas-overlay,
.scroll-top {
    display: none !important;
}

/* The countdown banner is position:fixed, and <body> carries an INLINE
   `padding: 0` from the layout (website.php:60) which beats halogrow's
   `body { padding-top: 60px }`. So nothing reserved the banner's height and it
   sat directly on the logo - ~3px clipped at desktop, the logo entirely hidden
   at 390px where the banner wraps to a column.

   Measured: 72px at >=769px, 80px below. Reserve a little more so a longer
   translation cannot re-break it. !important is needed to beat the inline style. */
body {
    padding-top: 92px !important;
}

/* Centre the now-lone logo. */
#sticky-header .menu-nav {
    justify-content: center;
}

#sticky-header .menu-area,
.menu-area {
    padding: 14px 0;
}

/* main.js toggles .sticky-menu (position:fixed; top:0) on scroll, which would
   slide the logo bar straight back under the fixed banner. A one-logo bar has
   nothing to gain from sticking, so let it scroll away. */
#sticky-header.sticky-menu {
    position: static;
    box-shadow: none;
}

#header-top-fixed.header-fixed-position {
    display: none;
}

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */

.jum-page {
    background: var(--jum-cream);
    font-family: var(--jum-font);
    color: var(--jum-ink);
    padding: 32px 16px 56px;
    margin: 0;
}

.jum-hero {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 28px;
}

.jum-hero__title {
    font-family: var(--jum-font);
    font-size: 48px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--jum-ink);
    margin: 0;
    text-transform: none;
}

.jum-hero__title em {
    font-style: normal;
    color: var(--jum-brand);
    font-weight: 700;
}

.jum-page .scroll-anchor {
    display: block;
    height: 1px;
}

/* --------------------------------------------------------------------------
   Card grid
   -------------------------------------------------------------------------- */

.jum-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    /* stretch (the default) so every card gets the row height and the flex:1 on
       .jum-card__body / .jum-card__bullets below has slack to absorb. With
       `start` each card sized to its own content, so the CTA, the assurances and
       the payment icons landed at three different heights. */
    align-items: stretch;
}

/* .product-option is the JS hook (closest() + click-to-select). Every visual
   property halogrow sets on it is re-declared here so nothing leaks through. */
.jum-grid .jum-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--jum-border);
    border-radius: var(--jum-radius-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
    overflow: visible;
    padding: 24px 0;
    transform: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.jum-grid .jum-card:hover {
    border-color: var(--jum-brand);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    transform: none;
}

.jum-grid .jum-card--best,
.jum-grid .jum-card--best:hover {
    border: 2px solid var(--jum-brand);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

/* halogrow highlights .selected in teal; the JUM grid signals selection with
   the brand colour instead. */
.jum-grid .jum-card.selected {
    border-color: var(--jum-brand);
    box-shadow: 0 6px 18px rgba(255, 178, 37, .28);
}

.jum-card__banner {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--jum-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 2;
}

.jum-card__banner::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--jum-ink);
}

/* The radio still drives the cart, the pay amount and the GA4 pushes — it is
   hidden, never removed. */
.jum-card__radio {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.jum-card--best .jum-card__head {
    background: var(--jum-tint);
    margin: -24px -20px 0;
    padding: 18px 20px 8px;
    border-radius: 12px 12px 0 0;
}

.jum-card__body {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.jum-card__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.jum-stars {
    color: var(--jum-brand);
    font-size: 13px;
    letter-spacing: 1px;
}

.jum-card__rating-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--jum-ink);
}

.jum-card__title {
    font-size: 26px;
    text-transform: none;
    font-weight: 400;
    text-align: center;
    margin: 0 0 4px;
    color: var(--jum-ink);
}

.jum-card__tag {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--jum-red);
    letter-spacing: .4px;
    margin-bottom: 8px;
}

.jum-card__image {
    text-align: center;
    padding: 8px 0 16px;
}

.jum-card__image img {
    max-width: 100%;
    height: 190px;
    object-fit: contain;
}

.jum-card__pricing {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 78px;
}

.jum-card__price {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--jum-ink);
}

.jum-card__price-label {
    font-size: 12px;
    color: var(--jum-muted);
    margin-top: 2px;
}

.jum-card__price-was {
    font-size: 17px;
    font-weight: 700;
    color: var(--jum-red);
    text-decoration: line-through;
    margin-top: 2px;
}

.jum-card__savings {
    background: var(--jum-green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 6px;
}

.jum-card__total {
    font-size: 15px;
    color: var(--jum-ink);
    margin: 12px 0 10px;
}

.jum-card__bullets {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    flex: 1;
}

.jum-card__bullets li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--jum-ink);
}

.jum-card__bullets li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--jum-green);
    font-size: 13px;
}

.jum-card__bullets li.is-strong {
    font-weight: 700;
}

.jum-card__cta {
    display: block;
    width: 100%;
    /* Belt and braces with the bullets' flex:1 - if a card ever renders without
       bullets, the CTA still sits on the same line as its neighbours'. */
    margin-top: auto;
    background: var(--jum-brand);
    color: var(--jum-ink);
    border: none;
    border-radius: 9999px;
    font-family: var(--jum-font);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 22px 16px;
    cursor: pointer;
    transition: background .15s ease;
}

.jum-card__cta:hover,
.jum-card__cta:focus-visible {
    background: var(--jum-brand-hover);
}

.jum-card__assurances {
    display: flex;
    gap: 12px;
    margin: 16px 0 14px;
}

.jum-assurance {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--jum-ink);
}

.jum-assurance i {
    font-size: 18px;
    color: var(--jum-ink);
    flex-shrink: 0;
}

.jum-card__secure-title {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 8px;
    color: var(--jum-ink);
}

.jum-card__secure-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.jum-card__secure-icons img {
    height: 22px;
    width: auto;
    object-fit: contain;
}

/* Stock indicator under the grid */
.jum-stock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 1200px;
    margin: 26px auto 0;
    font-size: 15px;
    color: var(--jum-ink);
}

.jum-stock i {
    color: var(--jum-brand);
}

/* --------------------------------------------------------------------------
   Checkout modal
   -------------------------------------------------------------------------- */

.jum-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: var(--jum-font);
}

/* .jum-modal sets display:flex, which would beat the UA [hidden] rule. */
.jum-modal[hidden] {
    display: none;
}

.jum-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.jum-modal__panel {
    position: relative;
    background: #fff;
    border-radius: var(--jum-radius-modal);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    width: 100%;
    max-width: 512px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 20px;
}

.jum-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--jum-muted);
    cursor: pointer;
    padding: 4px 8px;
    z-index: 2;
}

.jum-modal__close:hover {
    color: var(--jum-ink);
}

/* Stepper */
.jum-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin: 4px 0 18px;
}

.jum-stepper__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100px;
}

.jum-stepper__dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E5E7EB;
    color: var(--jum-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: background .2s ease, color .2s ease;
}

.jum-stepper__step.is-active .jum-stepper__dot {
    background: var(--jum-brand);
    color: var(--jum-ink);
}

.jum-stepper__step.is-done .jum-stepper__dot {
    background: var(--jum-ink);
    color: #fff;
}

.jum-stepper__label {
    font-size: 13px;
    color: var(--jum-ink);
    text-align: center;
}

.jum-stepper__rule {
    flex: 1;
    max-width: 70px;
    height: 0;
    border-top: 1px dashed #C9CDD3;
    margin-top: 22px;
}

.jum-modal__title {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin: 0 0 16px;
    color: var(--jum-ink);
    /* the site stylesheet uppercases headings; the reference is sentence case */
    text-transform: none;
}

.jum-modal__step[hidden] {
    display: none;
}

/* Shipping form inside the modal — halogrow supplies the base, this tightens
   the spacing and turns the labels into floating labels. */
/* Two-column field grid, matching the reference: Prenom|Nom on one row,
   Ville|Code postal on another, everything else full width.
   The order is imposed with grid `order` rather than by editing
   _shipping-form.php, which is shared with /slimea-express. */
.jum-modal #shipping-form {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

.jum-modal .form-grp {
    position: relative;
    margin-bottom: 0;
    grid-column: span 2;
}

.jum-modal #server-error-banner { grid-column: span 2; order: 0; }
.jum-modal .form-grp:has(#first-name)     { grid-column: span 1; order: 1; }
.jum-modal .form-grp:has(#last-name)      { grid-column: span 1; order: 2; }
.jum-modal .form-grp:has(#email)          { order: 3; }
.jum-modal .form-grp:has(#country-name)   { order: 4; }
.jum-modal .form-grp:has(#street-address) { order: 5; }
.jum-modal .form-grp:has(#town-name)      { grid-column: span 1; order: 6; }
.jum-modal .form-grp:has(#zip-code)       { grid-column: span 1; order: 7; }
.jum-modal .form-grp:has(.phone-input-wrapper) { order: 8; }
.jum-modal .checkbox-group                { grid-column: span 2; order: 9; }
.jum-modal .terms-notice                  { grid-column: span 2; order: 10; }

/* Required marker, as in the reference. Driven off CHECKOUT_REQUIRED_FIELDS
   in single-page-checkout.js - keep the two in step. */
.jum-modal .form-grp:has(#email) .form-label::after,
.jum-modal .form-grp:has(#first-name) .form-label::after,
.jum-modal .form-grp:has(#last-name) .form-label::after,
.jum-modal .form-grp:has(#street-address) .form-label::after,
.jum-modal .form-grp:has(#town-name) .form-label::after,
.jum-modal .form-grp:has(#zip-code) .form-label::after,
.jum-modal .form-grp:has(.phone-input-wrapper) .form-label::after {
    content: " *";
}

.jum-modal .form-grp input[type="text"],
.jum-modal .form-grp input[type="email"],
.jum-modal .form-grp input[type="tel"],
.jum-modal .form-grp select {
    width: 100%;
    border: 1px solid #6B7280;
    border-radius: var(--jum-radius-input);
    background: #fff;
    font-family: var(--jum-font);
    font-size: 16px;
    color: var(--jum-ink);
    padding: 22px 12px 6px;
    height: 56px;
    line-height: 1.2;
    box-shadow: none;
}

.jum-modal .form-grp input:focus,
.jum-modal .form-grp select:focus {
    border-color: var(--jum-brand);
    outline: 2px solid rgba(255, 178, 37, .35);
    outline-offset: -1px;
}

.jum-modal .form-grp input.error,
.jum-modal .form-grp select.error {
    border-color: #dc3545;
}

/* The placeholder is kept (":placeholder-shown" depends on it) but made
   invisible so it does not double up with the floating label. */
.jum-modal .form-grp input::placeholder {
    color: transparent;
}

.jum-modal .form-grp .form-label {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    font-family: var(--jum-font);
    font-size: 16px;
    font-weight: 400;
    color: var(--jum-muted);
    pointer-events: none;
    transition: top .13s ease, font-size .13s ease, transform .13s ease;
}

/* :has() lets the label float without reordering _shipping-form.php, which is
   shared with /slimea-express. Where :has() is unsupported the labels simply
   stay centred — legible, just not animated. */
.jum-modal .form-grp:has(input:focus) .form-label,
.jum-modal .form-grp:has(input:not(:placeholder-shown)) .form-label,
.jum-modal .form-grp:has(select) .form-label,
.jum-modal .form-grp:has(.phone-input-wrapper) .form-label {
    top: 13px;
    transform: none;
    font-size: 11px;
    font-weight: 500;
}

/* Phone row: prefix + field share the bordered box */
.jum-modal .phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #6B7280;
    border-radius: var(--jum-radius-input);
    padding: 22px 12px 6px;
    height: 56px;
    background: #fff;
}

.jum-modal .phone-input-wrapper .phone-prefix {
    font-size: 16px;
    color: var(--jum-ink);
    margin-right: 6px;
}

.jum-modal .phone-input-wrapper input[type="tel"] {
    border: none;
    padding: 0;
    height: auto;
    flex: 1;
    outline: none;
}

.jum-modal .phone-input-wrapper input[type="tel"]:focus {
    outline: none;
    border: none;
}

.jum-modal .checkbox-group {
    margin: 14px 0 6px;
}

.jum-modal .checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--jum-muted);
    margin-bottom: 8px;
}

.jum-modal .checkbox-container input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.jum-modal .terms-notice p {
    font-size: 11px;
    color: var(--jum-muted);
    line-height: 1.45;
}

/* Delivery reassurance */
.jum-delivery-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--jum-border);
    border-radius: var(--jum-radius-input);
    padding: 12px 14px;
    margin: 14px 0 16px;
    font-size: 14px;
    color: var(--jum-ink);
}

.jum-delivery-notice__icon {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--jum-brand);
    color: var(--jum-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jum-delivery-notice__icon::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--jum-green);
    border: 2px solid #fff;
}

/* Modal CTA — same pill as the cards */
.jum-modal__cta,
.jum-modal #express-pay-btn.jum-modal__cta {
    display: block;
    width: 100%;
    background: var(--jum-brand);
    color: var(--jum-ink);
    border: none;
    border-radius: 9999px;
    font-family: var(--jum-font);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 18px 16px;
    cursor: pointer;
    transition: background .15s ease;
}

.jum-modal__cta:hover,
.jum-modal__cta:focus-visible {
    background: var(--jum-brand-hover);
}

.jum-modal__cta:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.jum-modal #express-pay-btn p {
    margin: 0;
}

/* Trust rail */
.jum-modal__trust {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--jum-border);
}

.jum-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex: 1;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--jum-ink);
}

.jum-trust__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--jum-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Payment step tweaks — halogrow already styles .payment-tab and the widget
   containers; only the modal's tighter box needs adjusting. */
.jum-modal #payment-step {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.jum-modal .payment-method-tabs {
    margin-bottom: 12px;
}

.jum-modal #inline-payment-container:empty {
    display: none;
}

.jum-modal .bank-statement-notice {
    margin-top: 14px;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .jum-hero__title {
        font-size: 34px;
    }

    .jum-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 520px;
    }

    /* Best-seller first on mobile, then 60 days, then 30 days — the desktop
       grid keeps its 30 / 90 / 60 source order. */
    .jum-grid .jum-card {
        order: var(--jum-order, 0);
    }
}

@media (max-width: 575px) {
    .jum-page {
        padding: 24px 12px 44px;
    }

    .jum-hero__title {
        font-size: 28px;
    }

    .jum-card__title {
        font-size: 22px;
    }

    .jum-card__price {
        font-size: 26px;
    }

    .jum-card__cta {
        font-size: 16px;
        padding: 18px 12px;
    }

    .jum-modal {
        padding: 0;
        align-items: flex-end;
    }

    .jum-modal__panel {
        max-width: 100%;
        max-height: 94vh;
        border-radius: 14px 14px 0 0;
        padding: 18px 16px 24px;
    }

    .jum-stepper__step {
        width: auto;
        min-width: 74px;
    }

    .jum-stepper__label {
        font-size: 11px;
    }

}
