/* CS Quick Order: mobile first, desktop table + sticky summary from 960px. */
.fqo-body {
    --g: #0f4535;
    --g-2: #0b3a2c;
    --gold: #a8873a;
    --red: #a3162b;
    --ink: #17231f;
    --muted: #6a736f;
    --line: #e7e5df;
    --bg: #f6f3ec;
    --card: #ffffff;
    --chip: #f3f1ec;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.45 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.fqo-body *, .fqo-body *::before, .fqo-body *::after { box-sizing: border-box; }
.fqo-body [hidden] { display: none !important; }
.fqo-body svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fqo-body a { color: inherit; text-decoration: none; }
.fqo-body button { font: inherit; color: inherit; cursor: pointer; }
.fqo-body h1, .fqo-body h2 { margin: 0; letter-spacing: -0.02em; color: var(--g); }
.fqo-muted { color: var(--muted); margin: 0; }
.fqo-small { font-size: 14px; }
.fqo-center { text-align: center; }

/* ---------- header */
.fqo-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
@media (min-width: 783px) { .admin-bar .fqo-header { top: 32px; } } /* admins only: keep clear of the WP toolbar */
.fqo-header-in { max-width: 1480px; margin: 0 auto; height: 64px; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.fqo-brand { display: flex; align-items: center; gap: 14px; }
.fqo-brand img { height: 34px; width: auto; display: block; }
.fqo-brand span { color: var(--gold); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 14px; padding-top: 6px; }
.fqo-header-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.fqo-cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); }
.fqo-cart svg { width: 28px; height: 28px; }
.fqo-cart-badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.fqo-cart-badge.bump { animation: fqo-bump .35s ease; }
@keyframes fqo-bump { 50% { transform: scale(1.35); } }
.fqo-user { display: none; align-items: center; gap: 10px; }
.fqo-avatar { width: 40px; height: 40px; border-radius: 50%; background: #dfe5e2; color: var(--g); display: grid; place-items: center; font-weight: 700; }
.fqo-user-name { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; line-height: 1.2; }
.fqo-user-name small { font-weight: 400; color: var(--muted); font-size: 13px; }
.fqo-burger { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; }
.fqo-burger svg { width: 28px; height: 28px; }

.fqo-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; flex-direction: column; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
.fqo-nav.is-open { display: flex; }
.fqo-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 8px; border-radius: 10px; font-weight: 500; }
.fqo-nav a.is-active { color: var(--g); font-weight: 700; background: var(--chip); }
.fqo-nav-logout { color: var(--muted) !important; }

/* ---------- page */
.fqo-page { max-width: 1480px; margin: 0 auto; padding: 12px 12px 110px; }
.fqo-card { background: var(--card); border-radius: 18px; padding: 20px 16px; }

/* announcement slider: posters (images) + optional built-in promo slide */
.fqo-slider { position: relative; margin-bottom: 12px; }
.fqo-track { border-radius: 18px; }
.fqo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.fqo-track::-webkit-scrollbar { display: none; }
.fqo-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; display: block; }
.fqo-poster picture, .fqo-poster img { display: block; width: 100%; height: 100%; }
.fqo-poster { background: #f4e7c8; }
.fqo-poster img { object-fit: contain; }
.fqo-nav-btn { position: absolute; top: calc(50% - 9px); transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); box-shadow: 0 4px 14px rgba(0,0,0,.15); font-size: 26px; line-height: 1; display: none; place-items: center; padding-bottom: 3px; }
.fqo-prev { left: 12px; }
.fqo-next { right: 12px; }
.fqo-dots { display: flex; justify-content: center; gap: 7px; padding-top: 10px; }
.fqo-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(15,69,53,.25); transition: width .2s; }
.fqo-dots button.is-active { width: 22px; background: var(--g); }

/* built-in promo slide */
.fqo-hero { position: relative; overflow: hidden; padding: 22px 18px 30px;
    background: var(--fqo-hero, none) right center / cover no-repeat, linear-gradient(100deg, #fbf3e3 0%, #f6ead2 45%, var(--g) 46%, var(--g-2) 100%); }
.fqo-hero-copy { position: relative; z-index: 1; max-width: 58%; }
.fqo-hero-img { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 38%; max-width: 380px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.fqo-hero h2 { font-size: clamp(26px, 6vw, 52px); line-height: 1.05; font-weight: 800; margin: 14px 0 6px; }
.fqo-hero-price { margin: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fqo-hero-price strong { color: var(--red); font-size: clamp(30px, 7vw, 54px); font-weight: 800; letter-spacing: -0.02em; }
.fqo-hero-price s { color: var(--muted); font-size: clamp(16px, 3vw, 28px); }
.fqo-hero-text { margin: 4px 0 16px; font-size: clamp(15px, 2.4vw, 22px); }
.fqo-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.fqo-pill-red { background: var(--red); color: #fff; letter-spacing: 0.06em; text-transform: uppercase; }

/* buttons */
.fqo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 700; border: 1.5px solid var(--g); background: #fff; color: var(--g); transition: background .15s, color .15s, transform .1s; white-space: nowrap; }
.fqo-btn:active { transform: scale(.98); }
.fqo-btn svg { width: 20px; height: 20px; }
.fqo-btn-solid { background: var(--g); color: #fff !important; }
.fqo-btn-solid:hover { background: var(--g-2); }
.fqo-btn:not(.fqo-btn-solid):hover { background: #eef3f1; }
.fqo-btn[disabled] { opacity: .45; cursor: not-allowed; }
.fqo-btn.is-done { background: var(--g); color: #fff; }
.fqo-btn-block { display: flex; width: 100%; height: 56px; font-size: 17px; }

/* list */
.fqo-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fqo-list-head h1 { font-size: 30px; font-weight: 800; }
.fqo-list-head .fqo-muted { display: none; }
.fqo-promo-tag { border: 0; background: none; color: var(--red); font-weight: 700; display: flex; align-items: center; gap: 8px; padding: 0; font-size: 15px; }
.fqo-promo-tag .fqo-pill { display: none; }
.fqo-tools { margin: 14px 0 8px; }
.fqo-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1px solid #d9d6cf; border-radius: 10px; color: var(--muted); }
.fqo-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); min-width: 0; }
.fqo-search:focus-within { border-color: var(--g); }
.fqo-chips { display: flex; gap: 10px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.fqo-chips::-webkit-scrollbar { display: none; }
.fqo-chip { flex: none; height: 42px; padding: 0 22px; border-radius: 999px; border: 1px solid #d9d6cf; background: #fff; font-weight: 500; }
.fqo-chip.is-active { background: var(--g); border-color: var(--g); color: #fff; font-weight: 700; }
.fqo-thead { display: none; }

.fqo-row { display: grid; grid-template-columns: 92px 1fr; gap: 6px 14px; padding: 16px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.fqo-row.is-flash { animation: fqo-flash 1.4s ease; }
@keyframes fqo-flash { 0%, 60% { background: #fbf3e3; } 100% { background: transparent; } }
.fqo-img { grid-row: span 3; width: 92px; height: 92px; object-fit: contain; align-self: start; }
.fqo-name { font-weight: 700; font-size: 18px; line-height: 1.25; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fqo-badge { background: var(--red); color: #fff; border-radius: 999px; font-size: 12px; padding: 2px 10px; font-weight: 700; letter-spacing: .05em; }
.fqo-sub { color: var(--muted); font-size: 15px; }
.fqo-price { font-weight: 700; font-size: 20px; }
.fqo-price.is-promo { color: var(--red); }
.fqo-price-cap { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.fqo-sum-note { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: #eef3f1; color: var(--g); font-size: 13px; line-height: 1.35; }
.fqo-price s { color: var(--muted); font-weight: 400; font-size: 15px; margin-left: 8px; }
.fqo-act { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding-left: 106px; }
.fqo-oos { color: var(--muted); font-weight: 600; font-size: 14px; }
.fqo-row.is-oos .fqo-img { opacity: .45; }

.fqo-qty { display: inline-grid; grid-template-columns: 40px minmax(36px, 1fr) 40px; height: 46px; border: 1px solid #d9d6cf; border-radius: 10px; overflow: hidden; }
.fqo-qty button { border: 0; background: #fff; font-size: 22px; line-height: 1; }
.fqo-qty button:hover { background: var(--chip); }
.fqo-qty input { width: 100%; border: 0; border-left: 1px solid #d9d6cf; border-right: 1px solid #d9d6cf; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.fqo-qty input::-webkit-inner-spin-button, .fqo-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fqo-select { height: 46px; width: 100%; border: 1px solid #d9d6cf; border-radius: 10px; padding: 0 36px 0 14px; font: inherit; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317231f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; -webkit-appearance: none; appearance: none; }
.fqo-select.is-missing { border-color: var(--red); }
.fqo-empty { text-align: center; color: var(--muted); padding: 32px 0; margin: 0; }
.fqo-foot { padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }

/* summary: on phone/tablet a bottom sheet opened from the sticky bar */
.fqo-summary { display: none; }
.fqo-summary.is-open { display: block; position: fixed; left: 0; right: 0; bottom: var(--fqo-bar-h, 78px); z-index: 24; max-height: 68vh; overflow-y: auto; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 32px rgba(0,0,0,.12); animation: fqo-up .2s ease; }
.fqo-summary.is-open .fqo-go, .fqo-summary.is-open .fqo-center { display: none; }
@keyframes fqo-up { from { transform: translateY(24px); opacity: 0; } }
.fqo-sum-head { display: flex; justify-content: space-between; align-items: center; }
.fqo-sum-close { border: 0; background: var(--chip); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; display: grid; place-items: center; }
.fqo-backdrop { position: fixed; inset: 0; z-index: 23; background: rgba(15, 25, 20, .35); }
.fqo-summary h2 { font-size: 24px; color: var(--ink); }
.fqo-sum-count { margin-bottom: 8px; }
.fqo-sum-items { border-bottom: 1px solid var(--line); }
.fqo-sum-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.fqo-sum-item img { width: 56px; height: 56px; object-fit: contain; }
.fqo-sum-item b { display: block; font-size: 15px; line-height: 1.3; }
.fqo-sum-item .fqo-sum-meta { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.fqo-sum-meta button { border: 1px solid #d9d6cf; background: #fff; width: 26px; height: 26px; border-radius: 7px; line-height: 1; padding: 0; }
.fqo-sum-meta button:hover { background: var(--chip); }
.fqo-sum-line { font-weight: 600; white-space: nowrap; }
.fqo-sum-empty { color: var(--muted); padding: 18px 0; margin: 0; border-top: 1px solid var(--line); }
.fqo-sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 8px; font-size: 22px; font-weight: 800; }
.fqo-summary .fqo-btn-block { margin: 18px 0 14px; }

/* sticky bottom bar (phone) */
.fqo-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0,0,0,.05); }
.fqo-bar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Always-visible item breakdown under the total (small type, scrolls past ~4 lines). */
.fqo-bar-list { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line); max-height: 84px; overflow-y: auto; font-size: 13px; line-height: 1.5; color: var(--muted); }
.fqo-bar-list:empty { display: none; }
.fqo-bar-list::before { content: "Price charged for this order"; display: block; font-size: 12px; font-weight: 600; color: var(--g); margin-bottom: 2px; }
.fqo-bar-list li { display: flex; justify-content: space-between; gap: 12px; }
.fqo-bar-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fqo-bar-list li span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.fqo-bar-info { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.fqo-bar-count::after { content: " · Edit ▴"; color: var(--g); font-weight: 600; }
.fqo-bar-info[aria-expanded="true"] .fqo-bar-count::after { content: " · Close ▾"; }
.fqo-bar-count { color: var(--muted); font-size: 15px; }
.fqo-bar-total { font-size: 28px; font-weight: 800; }
.fqo-bar .fqo-btn { height: 54px; padding: 0 26px; font-size: 17px; }
.fqo-go.is-disabled { opacity: .45; pointer-events: none; }

.fqo-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 15px; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.fqo-toast.is-error { background: var(--red); }

/* ---------- small phones */
@media (max-width: 420px) {
    .fqo-row { grid-template-columns: 76px 1fr; }
    .fqo-img { width: 76px; height: 76px; }
    .fqo-act { padding-left: 0; }
}
@media (max-width: 699px) {
    .fqo-hero { padding: 18px 16px 30px; background: var(--fqo-hero, none) right center / cover no-repeat, linear-gradient(100deg, #fbf3e3 0%, #f6ead2 62%, var(--g) 63%, var(--g-2) 100%); }
    .fqo-hero-copy { max-width: 58%; }
    .fqo-hero-img { width: 32%; }
    .fqo-hero h2 { font-size: 23px; margin-top: 10px; }
    .fqo-hero-price strong { font-size: 28px; }
    .fqo-hero-price s { font-size: 14px; }
    .fqo-hero-text { font-size: 14px; }
    .fqo-hero .fqo-btn { height: 40px; padding: 0 14px; font-size: 14px; }
    .fqo-hero-img { right: 3%; border-radius: 12px; }
}

/* ---------- tablet+ */
@media (min-width: 700px) {
    .fqo-page { padding: 16px 24px 110px; }
    .fqo-header-in { padding: 0 24px; }
    .fqo-card { padding: 24px; }
    .fqo-hero { padding: 28px 34px 34px; }
    .fqo-hero-copy { max-width: 46%; }
    .fqo-hero h2 { font-size: clamp(26px, 3.6vw, 46px); }
    .fqo-slide { aspect-ratio: 3 / 1; }
    .fqo-nav-btn { display: grid; }
    .fqo-list-head .fqo-muted { display: block; font-size: 17px; }
    .fqo-list-head h1 { font-size: 34px; }
    .fqo-promo-tag { background: #fdf2f0; border-radius: 10px; padding: 8px 10px 8px 16px; }
    .fqo-promo-tag .fqo-pill { display: inline-flex; text-transform: none; letter-spacing: 0; font-size: 15px; }
    .fqo-tools { display: flex; gap: 14px; align-items: center; margin: 18px 0 14px; }
    .fqo-search { flex: 0 1 400px; height: 46px; }
    .fqo-chips { padding: 0; margin: 0; flex: 1; }
    .fqo-chip { height: 40px; padding: 0 18px; font-size: 15px; }

    .fqo-thead { display: grid; grid-template-columns: minmax(0, 1fr) 140px 300px; padding: 12px 16px 12px 128px; background: var(--chip); border-radius: 8px; font-weight: 600; font-size: 15px; }
    .fqo-thead span:last-child { display: none; }
    .fqo-row { grid-template-columns: 96px minmax(0, 1fr) 140px 300px; grid-template-rows: auto auto; align-items: center; gap: 2px 16px; padding: 14px 16px; }
    .fqo-row:first-child { border-top: 0; }
    .fqo-img { grid-row: 1 / 3; width: 76px; height: 76px; justify-self: center; }
    .fqo-name { grid-column: 2; font-size: 17px; align-self: end; }
    .fqo-sub { grid-column: 2; align-self: start; }
    .fqo-price { grid-column: 3; grid-row: 1 / 3; font-weight: 500; font-size: 17px; }
    .fqo-price s { display: block; margin: 0; }
    .fqo-price-cap { display: none; }
    .fqo-price.is-promo { font-weight: 600; }
        .fqo-act { grid-column: 4; grid-row: 1 / 3; padding: 0; grid-template-columns: 1fr 144px; }
    .fqo-qty { width: 140px; }
}

/* ---------- desktop: nav in header + sticky summary */
@media (min-width: 960px) {
    .fqo-header-in { height: 72px; gap: 40px; }
    .fqo-brand img { height: 38px; }
    .fqo-nav { display: flex; position: static; flex-direction: row; padding: 0; border: 0; box-shadow: none; gap: 6px; background: none; align-self: stretch; }
    .fqo-nav a { border-radius: 0; padding: 0 18px; font-size: 17px; border-bottom: 3px solid transparent; }
    .fqo-nav a.is-active { background: var(--chip); border-bottom-color: var(--g); border-radius: 10px 10px 0 0; }
    .fqo-nav-logout { display: none !important; }
    .fqo-burger { display: none; }
    .fqo-user { display: flex; }
    .fqo-main { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
    .fqo-summary, .fqo-summary.is-open { display: block; position: sticky; top: 90px; bottom: auto; max-height: none; border-radius: 18px; box-shadow: none; animation: none; }
    .fqo-summary.is-open .fqo-go { display: flex; }
    .fqo-summary.is-open .fqo-center { display: block; }
    .fqo-sum-close, .fqo-backdrop { display: none !important; }
    .fqo-bar { display: none; }
    .fqo-page { padding-bottom: 40px; }
    .fqo-toast { bottom: 32px; }
    .fqo-hero-copy { max-width: 42%; }
    .fqo-hero h2 { font-size: clamp(30px, 3vw, 46px); }
}
/* Built-in promo slide grows with its text (posters keep their 3:1 frame). */
.fqo-slide.fqo-hero { aspect-ratio: auto; }
@media (min-width: 700px) and (max-width: 959px) {
    .fqo-hero { padding: 22px 26px 26px; }
    .fqo-hero h2 { font-size: 30px; }
    .fqo-hero-price strong { font-size: 40px; }
    .fqo-hero-text { font-size: 17px; margin-bottom: 12px; }
    .fqo-hero-img { width: 34%; }
}
@media (min-width: 960px) and (max-width: 1180px) {
    .fqo-row { grid-template-columns: 80px minmax(0, 1fr) 100px 250px; }
    .fqo-thead { grid-template-columns: minmax(0, 1fr) 100px 250px; padding-left: 112px; }
    .fqo-act { grid-template-columns: 1fr 1fr; }
    .fqo-qty { width: 120px; grid-template-columns: 34px 1fr 34px; }
    .fqo-btn { padding: 0 12px; }
}

/* ---------- poster terms popup */
button.fqo-poster { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.fqo-terms { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.fqo-terms::backdrop { background: rgba(0,0,0,.5); }
.fqo-terms-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.fqo-terms-head h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--g); }
.fqo-terms-close { border: 0; background: var(--chip); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.fqo-terms-body { padding: 8px 20px 20px; font-size: 15px; line-height: 1.5; }
.fqo-terms-body p { margin: 12px 0 6px; }
.fqo-terms-body ul { margin: 0; padding-left: 20px; }
.fqo-terms-body li { margin: 4px 0; }

/* variable products: option picker on its own line, then quantity + Add */
.fqo-act.has-opt .fqo-select { grid-column: 1 / -1; }
@media (min-width: 700px) {
    .fqo-price.is-from .fqo-price-cap { display: block; }
}

/* ---------- freegift highlight */
.fqo-gift { display: table; margin-top: 6px; padding: 3px 10px; border-radius: 8px; background: #fbf3e3; color: #7a4b00; font-size: 13px; font-weight: 600; line-height: 1.35; }
