/* =============================================================
   Elbherb Mix Selector – Frontend v1.2.0
   All visual properties use CSS custom properties.
   Overrides are injected via wp_add_inline_style().
   ============================================================= */

.emx-selector {
    /* ── Color defaults ── */
    --emx-primary:   #1a3a2a;
    --emx-accent:    #7ab648;
    --emx-bg:        #f5f0e8;
    --emx-bg2:       #f8f5ef;
    --emx-border:    #e8e0d0;
    --emx-text:      #1a1a14;
    --emx-cream:     #f5f0e8;
    --emx-muted:     #6b7a5e;
    --emx-warn:      #c8a84b;

    /* ── Text colors ── */
    --emx-color-variety-name:    #1a3a2a;
    --emx-color-qty-num:         #1a3a2a;
    --emx-color-price:           #1a3a2a;
    --emx-color-tag-text:        #1a3a2a;
    --emx-color-summary-price:   #7ab648;

    /* ── CTA button ── */
    --emx-cta-bg:         #7ab648;
    --emx-cta-text:       #ffffff;
    --emx-cta-hover-bg:   #5a8a2a;
    --emx-cta-hover-text: #ffffff;

    /* ── Stepper buttons ── */
    --emx-stepper-bg:           #ffffff;
    --emx-stepper-border:       #e8e0d0;
    --emx-stepper-text:         #1a3a2a;
    --emx-stepper-hover-bg:     #1a3a2a;
    --emx-stepper-hover-border: #1a3a2a;
    --emx-stepper-hover-text:   #ffffff;

    /* ── Variety row states ── */
    --emx-variety-bg:               #ffffff;
    --emx-variety-active-bg:        #ffffff;
    --emx-variety-active-border:    #1a3a2a;
    --emx-variety-expanded-bg:      #f8f5ef;
    --emx-variety-expanded-border:  #7ab648;

    /* ── Step number circle ── */
    --emx-step-num-bg:   #1a3a2a;
    --emx-step-num-text: #ffffff;

    /* ── Chevron ── */
    --emx-chevron:        #6b7a5e;
    --emx-chevron-active: #7ab648;
    --emx-summary-bg:     #1a3a2a;
    --emx-size-image:     52px;
    /* Tag color overrides (empty = CSS fallback below) */
    --emx-color-tag-bg:      rgba(26,58,42,.08);
    --emx-color-tag-border:  transparent;
    --emx-color-feat-text:   #7a5a10;
    --emx-color-feat-bg:     rgba(200,168,75,.15);
    --emx-color-feat-border: transparent;

    /* ── Typography defaults ── */
    --emx-font-heading: 'Playfair Display', serif;
    --emx-font-body:    'DM Sans', sans-serif;
    --emx-font-mono:    'DM Mono', monospace;
    --emx-size-base:          13px;
    --emx-size-step-title:    16px;
    --emx-size-variety-name:  13px;
    --emx-size-qty-num:       20px;
    --emx-size-price:         14px;
    --emx-size-summary-price: 28px;
    --emx-size-cta:           15px;
    --emx-size-tag:           9px;
    --emx-size-label:         9px;
    --emx-radius:             10px;
    --emx-radius-sm:          7px;

    /* ── Spacing defaults ── */
    --emx-gap-sections:      12px;
    --emx-qty-padding-v:     16px;
    --emx-qty-padding-h:     24px;
    --emx-mix-padding-v:     12px;
    --emx-mix-padding-h:     24px;
    --emx-sum-padding-v:     20px;
    --emx-sum-padding-h:     24px;
    --emx-header-padding-v:  14px;
    --emx-header-padding-h:  24px;

    /* ── Layout ── */
    font-family: var(--emx-font-body);
    color: var(--emx-text);
    width: 100%;          /* Fill whatever container the shortcode sits in */
}

/* ── Admin notice ─────────────────────────────────────────── */
.emx-notice {
    padding: 12px 16px;
    background: #fff8e1;
    border-left: 4px solid #f0c040;
    border-radius: 4px;
    font-size: 14px;
}

/* ── Test mode bar ───────────────────────────────────────── */
.emx-testmode-bar {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--emx-radius-sm);
    padding: 8px 14px;
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.emx-testmode-bar a { color: var(--emx-primary); }

/* ── Steps ───────────────────────────────────────────────── */
.emx-step {
    border-radius: var(--emx-radius);
    overflow: hidden;
    margin-bottom: var(--emx-gap-sections);
    border: 1px solid var(--emx-border);
    background: #fff;
}

.emx-step-header {
    display: flex;
    align-items: flex-start;
    gap: 0.6em;
    padding: var(--emx-header-padding-v) var(--emx-header-padding-h);
    border-bottom: 1px solid var(--emx-border);
    /* Set em context = step title size so circle scales with it */
    font-size: var(--emx-size-step-title);
}

.emx-step-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.emx-step-desc {
    font-size: var(--emx-size-base);
    color: var(--emx-muted);
    font-family: var(--emx-font-body);
    line-height: 1.5;
    font-weight: 400;
}

/* Summary header – sits above the summary box like a step header */
.emx-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--emx-header-padding-v) var(--emx-header-padding-h);
    background: var(--emx-bg);
    border: 1px solid var(--emx-border);
    border-bottom: none;
    border-radius: var(--emx-radius) var(--emx-radius) 0 0;
    margin-bottom: 0;
    font-size: var(--emx-size-step-title);  /* same em context as step headers */
}

.emx-summary-title {
    font-family: var(--emx-font-heading);
    font-size: 1em;  /* inherits from .emx-summary-header context */
    color: var(--emx-primary);
}

/* When summary has a header, remove top radius from box itself */
.emx-summary-header + .emx-summary {
    border-radius: 0 0 var(--emx-radius) var(--emx-radius);
}

.emx-step-num {
    width: 1.55em;
    height: 1.55em;
    background: var(--emx-step-num-bg);
    color: var(--emx-step-num-text);
    border-radius: 50%;
    font-size: 0.7em;   /* relative to header em context = ~0.7 × step-title size */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--emx-font-mono);
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.1em;
}

.emx-step-title {
    font-family: var(--emx-font-heading);
    font-size: 1em;   /* inherits from .emx-step-header font-size context */
    color: var(--emx-primary);
    line-height: 1.2;
}

/* ── Step 1: Qty ─────────────────────────────────────────── */
.emx-step-qty { background: var(--emx-bg2); }
.emx-step-qty .emx-step-header { background: var(--emx-bg2); }

.emx-qty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: var(--emx-qty-padding-v) var(--emx-qty-padding-h) calc(var(--emx-qty-padding-v) * 1.25);
    background: var(--emx-bg2);
}

.emx-qty-card {
    position: relative;
    border: 2px solid var(--emx-border);
    border-radius: var(--emx-radius);
    padding: 16px 10px 14px;
    cursor: pointer;
    background: #fff;
    text-align: center;
    transition: border-color .2s, box-shadow .2s;
    user-select: none;
}
.emx-qty-card:hover:not([data-out-of-stock]) { border-color: var(--emx-primary); }
.emx-qty-card.emx-qty-selected {
    border-color: var(--emx-primary);
    box-shadow: 0 0 0 3px rgba(26,58,42,.1);
}
.emx-qty-card.emx-qty-recommended { border-color: var(--emx-accent); }
.emx-qty-card[data-out-of-stock]  { opacity: .5; cursor: not-allowed; }

.emx-qty-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--emx-accent);
    color: #fff;
    font-size: var(--emx-size-label);
    font-family: var(--emx-font-mono);
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: .05em;
}
.emx-qty-badge-oos { background: #999; }

.emx-plant-icons {
    display: flex;
    justify-content: center;
    gap: 3px;
    font-size: 17px;
    height: 24px;
    align-items: center;
    margin-bottom: 8px;
}
.emx-pi { opacity: .2; transition: opacity .2s; }
.emx-pi-active { opacity: 1; }

.emx-qty-num   { font-family: var(--emx-font-heading); font-size: var(--emx-size-qty-num); color: var(--emx-color-qty-num); line-height: 1; }
.emx-qty-label { font-size: var(--emx-size-label); color: var(--emx-muted); margin: 3px 0 10px; }
.emx-qty-price { font-size: var(--emx-size-price); font-weight: 700; color: var(--emx-color-price); }
.emx-qty-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
.emx-qty-per   { font-size: var(--emx-size-label); color: var(--emx-muted); font-family: var(--emx-font-mono); margin-top: 3px; }

/* ── Step 2: Mix ─────────────────────────────────────────── */
.emx-step-mix { background: var(--emx-bg); }
.emx-step-mix .emx-step-header { background: var(--emx-bg); }

.emx-locked { opacity: .45; pointer-events: none; transition: opacity .3s; }

.emx-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--emx-mix-padding-v) var(--emx-mix-padding-h) 0;
}
.emx-progress-track {
    flex: 1;
    height: 6px;
    background: var(--emx-border);
    border-radius: 6px;
    overflow: hidden;
}
.emx-progress-fill {
    height: 100%;
    background: var(--emx-accent);
    border-radius: 6px;
    transition: width .35s ease;
}
.emx-progress-label {
    font-size: var(--emx-size-label);
    font-family: var(--emx-font-mono);
    color: var(--emx-muted);
    white-space: nowrap;
}
.emx-progress-label.emx-complete { color: var(--emx-accent); }

.emx-mix-list {
    padding: var(--emx-mix-padding-v) var(--emx-mix-padding-h) calc(var(--emx-mix-padding-v) * 1.65);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Variety row ─────────────────────────────────────────── */
.emx-variety-row {
    border: 2px solid var(--emx-border);
    border-radius: var(--emx-radius);
    overflow: hidden;
    background: var(--emx-variety-bg);
    transition: border-color .2s, background .2s;
}
.emx-variety-row.emx-has-qty {
    border-color: var(--emx-variety-active-border);
    background: var(--emx-variety-active-bg);
}
.emx-variety-row.emx-expanded {
    border-color: var(--emx-variety-expanded-border);
}

.emx-variety-main {
    display: flex;
    align-items: stretch;
    cursor: pointer;
    transition: background .15s;
}
.emx-variety-row:not(.emx-expanded) .emx-variety-main:hover {
    background: rgba(0,0,0,.025);
}

/* Variety thumbnail (round) */
.emx-variety-thumb {
    width: calc(var(--emx-size-image) + 28px);  /* image + left padding */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0 0 0 14px;
}

.emx-selector .emx-variety-img-round {
    width: var(--emx-size-image) !important;
    height: var(--emx-size-image) !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0;
    overflow: hidden;
}

.emx-variety-emoji-circle {
    width: var(--emx-size-image);
    height: var(--emx-size-image);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--emx-size-image) * 0.5);
    flex-shrink: 0;
}

/* Variety body */
.emx-variety-body {
    flex: 1;
    padding: 11px 12px;
    min-width: 0;
}
.emx-variety-name {
    font-family: var(--emx-font-heading);
    font-size: var(--emx-size-variety-name);
    color: var(--emx-color-variety-name);
    margin-bottom: 4px;
}
.emx-variety-desc {
    font-size: var(--emx-size-base);
    color: var(--emx-muted);
    margin-bottom: 6px;
    line-height: 1.45;
}
.emx-variety-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.emx-tag {
    font-size: var(--emx-size-tag);
    font-family: var(--emx-font-mono);
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--emx-color-tag-bg);
    color: var(--emx-color-tag-text);
    letter-spacing: .03em;
    border: 1px solid var(--emx-color-tag-border);
}
.emx-tag-featured {
    background: var(--emx-color-feat-bg);
    color: var(--emx-color-feat-text);
    border: 1px solid var(--emx-color-feat-border);
}

/* Right side: dots + stepper + chevron */
.emx-variety-right {
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    flex-shrink: 0;
}

/* Dots */
.emx-dots { display: flex; gap: 4px; }
.emx-dot  { width: 10px; height: 10px; border-radius: 50%; background: var(--emx-border); transition: background .25s; }
.emx-dot.emx-dot-filled { background: var(--emx-accent); }

/* Stepper */
.emx-stepper { display: flex; align-items: center; }
.emx-sbtn {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--emx-stepper-border);
    background: var(--emx-stepper-bg);
    color: var(--emx-stepper-text);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, color .18s, border-color .18s;
    padding: 0;
    line-height: 1;
}
.emx-dec { border-radius: var(--emx-radius-sm) 0 0 var(--emx-radius-sm); }
.emx-inc { border-radius: 0 var(--emx-radius-sm) var(--emx-radius-sm) 0; }
.emx-selector .emx-sbtn:hover:not(:disabled) {
    background: var(--emx-stepper-hover-bg) !important;
    color: var(--emx-stepper-hover-text) !important;
    border: 1.5px solid var(--emx-stepper-hover-border) !important;
}
.emx-sbtn:disabled { opacity: .3; cursor: not-allowed; }
.emx-sval {
    width: 38px;
    height: 32px;
    border-top: 1.5px solid var(--emx-stepper-border);
    border-bottom: 1.5px solid var(--emx-stepper-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--emx-font-heading);
    font-size: 16px;
    color: var(--emx-stepper-text);
    font-weight: 700;
    background: var(--emx-stepper-bg);
}

/* ── Chevron ─────────────────────────────────────────────── */
.emx-chevron-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    flex-shrink: 0;
}
.emx-chevron-wrap.emx-no-detail { visibility: hidden; }

.emx-chevron {
    width: 14px;
    height: 14px;
    border-right: 2.5px solid var(--emx-chevron);
    border-bottom: 2.5px solid var(--emx-chevron);
    transform: rotate(-45deg) translateY(2px);
    transition: transform .22s ease, border-color .2s;
    flex-shrink: 0;
}
.emx-variety-row:not(.emx-expanded):not(.emx-no-detail) .emx-variety-main:hover .emx-chevron {
    border-color: var(--emx-chevron-active);
    transform: rotate(-45deg) translateY(3px);
}
.emx-variety-row.emx-expanded .emx-chevron {
    transform: rotate(45deg) translateY(-2px);
    border-color: var(--emx-chevron-active);
}


/* ── Details hint ────────────────────────────────────────── */
.emx-details-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--emx-size-label);
    font-family: var(--emx-font-mono);
    color: var(--emx-chevron-active);
    margin-top: 6px;
    opacity: .8;
    transition: opacity .15s;
    cursor: pointer;
    user-select: none;
    letter-spacing: .03em;
}
.emx-variety-main:hover .emx-details-hint { opacity: 1; }
/* Never hide: opacity stays visible when expanded (text changes via JS) */
.emx-details-hint-icon {
    display: inline-block;
    transition: transform .2s ease;
    font-style: normal;
}
.emx-variety-row.emx-expanded .emx-details-hint-icon {
    transform: rotate(180deg);
}
/* ── Expandable detail panel ─────────────────────────────── */
.emx-variety-detail {
    display: none;
    border-top: 1px solid var(--emx-border);
    background: var(--emx-variety-expanded-bg);
    padding: 14px 24px;
}
.emx-variety-extra { font-size: var(--emx-size-base); color: var(--emx-text); line-height: 1.65; }
.emx-variety-extra p  { margin: 0 0 8px; }
.emx-variety-extra ul { padding-left: 18px; margin: 0 0 8px; }

/* ── Summary ─────────────────────────────────────────────── */
.emx-summary {
    background: var(--emx-summary-bg);
    border-radius: var(--emx-radius);
    padding: var(--emx-sum-padding-v) var(--emx-sum-padding-h);
    margin-bottom: var(--emx-gap-sections);
}
.emx-sum-rows { margin-bottom: 14px; }
.emx-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(245,240,232,.1);
    font-size: var(--emx-size-base);
    color: rgba(245,240,232,.55);
    gap: 16px;
}
.emx-sum-row:last-child { border-bottom: none; }
.emx-sum-key {
    font-family: var(--emx-font-mono);
    font-size: var(--emx-size-label);
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.emx-sum-val { color: var(--emx-cream); font-size: var(--emx-size-base); text-align: right; }
.emx-sum-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 14px;
    border-top: 1px solid rgba(245,240,232,.18);
    margin-top: 4px;
}
.emx-sum-tlabel {
    font-family: var(--emx-font-heading);
    font-size: calc(var(--emx-size-summary-price) * 0.65);
    color: var(--emx-cream);
}
.emx-sum-total-right { text-align: right; }
.emx-sum-tprice {
    font-family: var(--emx-font-heading);
    font-size: var(--emx-size-summary-price);
    color: var(--emx-color-summary-price);
    line-height: 1;
}
.emx-sum-note {
    font-size: var(--emx-size-label);
    color: rgba(245,240,232,.35);
    font-family: var(--emx-font-mono);
    margin-top: 3px;
}

/* ── CTA button ──────────────────────────────────────────── */
.emx-cta {
    display: block;
    width: 100%;
    margin-top: 14px;
    background: var(--emx-cta-bg);
    color: var(--emx-cta-text);
    border: none;
    border-radius: var(--emx-radius);
    padding: 16px 20px;
    font-size: var(--emx-size-cta);
    font-weight: 700;
    font-family: var(--emx-font-body);
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
    letter-spacing: .02em;
}
.emx-cta:not(:disabled):hover {
    background: var(--emx-cta-hover-bg);
    color: var(--emx-cta-hover-text);
    transform: translateY(-1px);
}
.emx-cta:disabled {
    background: #3a5030;
    color: rgba(255,255,255,.35);
    cursor: not-allowed;
    transform: none;
}
.emx-cta.emx-loading { pointer-events: none; opacity: .7; }

.emx-cta-hint {
    text-align: center;
    font-size: var(--emx-size-label);
    color: rgba(245,240,232,.35);
    font-family: var(--emx-font-mono);
    margin-top: 8px;
    min-height: 16px;
}
.emx-cta-hint.emx-ready { color: var(--emx-accent); }

/* messages */
.emx-messages {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--emx-radius-sm);
    font-size: var(--emx-size-base);
    font-family: var(--emx-font-body);
}
.emx-messages.emx-success { background: rgba(122,182,72,.2);  color: #c8ffa0; }
.emx-messages.emx-error   { background: rgba(192,57,43,.2);   color: #ffb0a8; }

/* ── Trust bar ───────────────────────────────────────────── */
.emx-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px 24px;
    background: var(--emx-bg2);
    border: 1px solid var(--emx-border);
    border-radius: var(--emx-radius);
}
.emx-trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.emx-trust-icon { font-size: 16px; }
.emx-trust-text { font-size: var(--emx-size-label); color: var(--emx-muted); font-family: var(--emx-font-mono); line-height: 1.4; }

/* ── Test modal ──────────────────────────────────────────── */
.emx-test-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.emx-test-modal-inner {
    background: #fff;
    border-radius: var(--emx-radius);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.emx-test-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
}
.emx-test-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
}
.emx-test-modal-close:hover { background: #f5f5f5; }
.emx-test-modal-body { padding: 20px; }


/* ── Floating CTA Bar ────────────────────────────────────────
   Appears on mobile once a qty is selected.
   Hidden when native summary is visible in viewport.
   ──────────────────────────────────────────────────────────── */
.emx-float-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--emx-summary-bg, #1a3a2a);
    padding: 10px 16px;
    /* Extra space for iPhone home indicator */
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
    box-shadow: 0 -4px 20px rgba(0,0,0,.25);
    transform: translateY(110%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}

.emx-float-bar.emx-float-visible {
    transform: translateY(0);
}

.emx-float-bar-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 680px;
    margin: 0 auto;
}

/* Row 1: mix summary – full width, wraps freely */
.emx-float-status {
    font-size: 11px;
    font-family: var(--emx-font-mono, monospace);
    color: rgba(245,240,232,.65);
    white-space: normal;
    line-height: 1.35;
    letter-spacing: .02em;
    word-break: break-word;
    width: 100%;
    text-align: center;
}

/* Row 2: price left, button right */
.emx-float-row2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.emx-float-price {
    font-family: var(--emx-font-heading, 'Playfair Display', serif);
    font-size: 20px;
    color: #7ab648;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
}

.emx-float-cta {
    flex: 1;
    min-width: 0;
    background: #7ab648;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--emx-font-body, sans-serif);
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.emx-float-cta:disabled {
    background: #3a5030 !important;
    color: rgba(255,255,255,.35) !important;
    cursor: not-allowed;
}

/* State B: pre-select button – full width, centered */
.emx-float-preselect-btn {
    width: 100%;
    background: #7ab648;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--emx-font-body, sans-serif);
    cursor: pointer;
    transition: background .15s, color .15s;
    text-align: center;
    letter-spacing: .02em;
}

/* Float bar is mobile-only – display:block only set by JS on mobile */
/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .emx-step-header  { padding: 12px 14px; }
    .emx-qty-grid     { gap: 7px; padding: 12px 14px 14px; }
    .emx-qty-card     { padding: 10px 5px; }
    .emx-qty-per      { display: none; }
    .emx-mix-list     { padding: 10px 14px 14px; }
    .emx-progress-wrap{ padding: 10px 14px 0; }
    /* ── Mobile variety row: image centered above text ── */
    .emx-variety-main {
        flex-direction: column;
        align-items: center;
        padding: 14px 12px 0;
        gap: 10px;
        cursor: pointer;
        text-align: center;
    }

    /* Image: centered, uses mobile size var */
    .emx-variety-thumb {
        width: auto;
        padding: 0;
        align-self: center;
    }
    .emx-selector .emx-variety-img-round {
        width: var(--emx-size-image) !important;
        height: var(--emx-size-image) !important;
    }
    .emx-variety-emoji-circle {
        width: var(--emx-size-image);
        height: var(--emx-size-image);
    }

    /* Text block: full width, centered */
    .emx-variety-body {
        flex: none;
        width: 100%;
        padding: 0;
        min-width: 0;
        text-align: center;
    }
    .emx-variety-name { margin-bottom: 2px; }
    .emx-variety-desc { margin-top: 2px; margin-bottom: 0; }

    .emx-variety-tags {
        margin-top: 6px;
        justify-content: center;
    }

    /* Details hint below tags */
    .emx-details-hint { margin-top: 5px; justify-content: center; }

    .emx-dots { display: none; }
    .emx-chevron-wrap { display: none; }

    /* Stepper: full-width row with generous touch targets */
    .emx-variety-right {
        width: 100% !important;
        align-self: stretch;
        flex-direction: row;
        align-items: center;
        border-top: 1px solid var(--emx-border);
        padding: 10px 12px 12px !important;
        gap: 0;
        box-sizing: border-box;
    }
    .emx-stepper {
        width: 100%;
        display: flex;
    }
    .emx-sbtn {
        flex: 1 !important;
        width: auto !important;
        height: 44px !important;
        font-size: 22px !important;
    }
    .emx-dec { border-radius: var(--emx-radius-sm) 0 0 var(--emx-radius-sm); }
    .emx-inc { border-radius: 0 var(--emx-radius-sm) var(--emx-radius-sm) 0; }
    .emx-sval {
        flex: 1 !important;
        width: auto !important;
        max-width: none !important;
        height: 44px !important;
        font-size: 18px !important;
    }
    /* summary padding uses CSS vars, no override needed */
    .emx-cta          { padding: 14px; }
    .emx-summary-header { padding: 12px 14px; }
    .emx-trust        { grid-template-columns: repeat(2, 1fr); padding: 12px 14px; }
    .emx-qty-card     { min-height: 44px; }
    .emx-variety-detail { padding: 12px 14px; }
}
