/* ==========================================================================
   coffee-rfq.css — RFQ create (2d / 2g) · quotes received + compare (3a / 3b)
   · my RFQs (index). Page layer only; tokens + shared components in coffee.css.
   Logical properties throughout (RTL). Mobile rules at the end of each block.
   ========================================================================== */

.theme-coffee .cz-rfq-page { background: var(--cz-cream); }
.theme-coffee .cz-rfq { max-width: 860px; margin-inline: auto; }
.theme-coffee .cz-rfq--wide { max-width: var(--cz-container); }
.theme-coffee .cz-rfq-page__section { padding-block: 34px 56px; }
.theme-coffee .cz-rfq-prewrap { white-space: pre-line; }

/* ---- mobile app-bar (2g / 3b) ------------------------------------------ */
.theme-coffee .cz-rfq-mobilebar { display: none; align-items: center; gap: 12px; padding: 14px 16px; background: var(--cz-espresso); color: var(--cz-cream); }
.theme-coffee .cz-rfq-mobilebar__back { background: none; border: 0; padding: 0 2px; color: var(--cz-cream); font: 600 18px/1 var(--cz-font-body); cursor: pointer; text-decoration: none !important; }
.theme-coffee .cz-rfq-mobilebar__back:hover, .theme-coffee .cz-rfq-mobilebar__back:focus { color: var(--cz-brass-2); }
[dir=rtl] .theme-coffee .cz-rfq-mobilebar__back { transform: scaleX(-1); }
.theme-coffee .cz-rfq-mobilebar__title { font: 700 15px/1.2 var(--cz-font-body); color: var(--cz-cream); }
.theme-coffee .cz-rfq-mobilebar__stack { display: flex; flex-direction: column; gap: 3px; }
.theme-coffee .cz-rfq-mobilebar__sub { font: 400 11px/1 var(--cz-font-mono); color: var(--cz-cream-60); }
.theme-coffee .cz-rfq-mobilebar__step { margin-inline-start: auto; font: 600 11px/1 var(--cz-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cz-brass); }
@media (max-width: 991.98px) { .theme-coffee .cz-rfq-mobilebar { display: flex; } }

/* ======================================================================
   CREATE — head + steps
   ====================================================================== */
.theme-coffee .cz-rfq__topline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.theme-coffee .cz-rfq__topline .cz-eyebrow { margin: 0; }
.theme-coffee .cz-rfq__help { font-size: 13px; }
.theme-coffee .cz-rfq__help a { color: var(--cz-lacquer); font-weight: 600; }

.theme-coffee .cz-rfq-steps { gap: 12px; }
.theme-coffee .cz-rfq-steps .cz-step { font: 600 13.5px/1 var(--cz-font-body); color: var(--cz-ink); gap: 9px; }
.theme-coffee .cz-rfq-steps .cz-step + .cz-step { flex: 1 1 auto; }
.theme-coffee .cz-rfq-steps .cz-step + .cz-step::before { content: ""; flex: 1 1 auto; width: auto; height: 0; background: none; border-top: 1px dashed var(--cz-ink-40); margin-inline-end: 12px; }
.theme-coffee .cz-rfq-steps .cz-step__n { width: 26px; height: 26px; font: 700 12.5px/1 var(--cz-font-mono); background: var(--cz-ink-08); border-color: transparent; color: var(--cz-ink-60); }
.theme-coffee .cz-rfq-steps .cz-step.is-active .cz-step__n { background: var(--cz-lacquer); border-color: var(--cz-lacquer); color: var(--cz-white); }
.theme-coffee .cz-rfq-steps .cz-step.is-done .cz-step__n { background: var(--cz-espresso); border-color: var(--cz-espresso); color: var(--cz-cream); }
.theme-coffee .cz-rfq-steps .cz-step.is-done { cursor: pointer; }
.theme-coffee .cz-rfq-progress { display: none; gap: 6px; }
.theme-coffee .cz-rfq-progress span { flex: 1 1 0; height: 3px; border-radius: 2px; background: var(--cz-ink-12); }
.theme-coffee .cz-rfq-progress span.is-done { background: var(--cz-lacquer); }

/* ---- step card ----------------------------------------------------------- */
.theme-coffee .cz-rfq-card { margin-top: 26px; background: var(--cz-white); border: 1px solid var(--cz-ink-12); border-radius: var(--cz-radius); box-shadow: var(--cz-shadow-sm); }
.theme-coffee .cz-rfq-step[hidden], .theme-coffee .cz-rfq-success[hidden] { display: none !important; }
.theme-coffee .cz-rfq-card__body { padding: 30px 34px 6px; }
.theme-coffee .cz-rfq-card__title { margin: 0; font: 400 30px/1.2 var(--cz-font-display); color: var(--cz-ink); letter-spacing: -.005em; }
.theme-coffee .cz-rfq-card__lead { margin: 10px 0 0; font: 300 15.5px/1.6 var(--cz-font-body); color: var(--cz-ink-60); }
.theme-coffee .cz-rfq-card__titlerow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.theme-coffee .cz-rfq-optional { font: 600 12px/1 var(--cz-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-fields { margin-top: 26px; }
.theme-coffee .cz-rfq-card .cz-field { margin-bottom: 18px; gap: 9px; }
.theme-coffee .cz-rfq-label, .theme-coffee .cz-rfq-card .cz-label { font: 600 12px/1 var(--cz-font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--cz-ink-60); }
.theme-coffee .cz-rfq-input { min-height: 48px; padding: 13px 16px; font-size: 15px; }
.theme-coffee select.cz-rfq-input { padding-inline-end: 40px; }
.theme-coffee textarea.cz-rfq-input { min-height: 84px; font-size: 14.5px; line-height: 1.55; }
.theme-coffee .cz-rfq-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 0 16px; }
.theme-coffee .cz-rfq-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.theme-coffee .cz-rfq-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 34px 34px; }
.theme-coffee .cz-rfq-step__count { font: 400 13px/1 var(--cz-font-body); color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-step__next { padding: 15px 30px; font-size: 15px; margin-inline-start: auto; }
.theme-coffee .cz-rfq-step__back { color: var(--cz-ink-60) !important; font-weight: 600; }
.theme-coffee .cz-rfq-step__back:hover { color: var(--cz-ink) !important; text-decoration: none !important; }
.theme-coffee .cz-rfq-step__skip { display: none; }
.theme-coffee .cz-error[hidden] { display: none !important; }
.theme-coffee .cz-rfq-error { margin-top: 14px; padding: 10px 12px; background: var(--cz-danger-bg); border-radius: var(--cz-radius-sm); }

.theme-coffee .cz-rfq-target { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-top: 18px; border-radius: var(--cz-radius-sm); background: var(--cz-cream); }
.theme-coffee .cz-rfq-target[hidden] { display: none !important; }

/* chips (industry / certifications): soft neutral, espresso when active */
.theme-coffee .cz-rfq-chips .cz-chip { background: var(--cz-ink-08); border-color: transparent; color: var(--cz-ink-60); font-weight: 400; font-size: 13px; padding: 9px 14px; }
.theme-coffee .cz-rfq-chips .cz-chip:hover { background: var(--cz-ink-12); color: var(--cz-ink); }
.theme-coffee .cz-rfq-chips .cz-chip.is-active, .theme-coffee .cz-rfq-chips .cz-chip[aria-pressed=true], .theme-coffee .cz-rfq-chips .cz-chip--input:has(input:checked) { background: var(--cz-espresso); border-color: var(--cz-espresso); color: var(--cz-cream); font-weight: 600; }
.theme-coffee .cz-chip--input { position: relative; cursor: pointer; user-select: none; margin: 0; }
.theme-coffee .cz-chip--input:has(input:focus-visible), .theme-coffee .cz-rfq-chips .cz-chip:focus-visible { box-shadow: 0 0 0 3px rgba(158, 43, 37, .2); outline: none; }

/* incoterm: segmented control */
.theme-coffee .cz-rfq-seg { display: flex; border: 1px solid var(--cz-ink-22); border-radius: var(--cz-radius-sm); overflow: hidden; background: var(--cz-white); min-height: 48px; }
.theme-coffee .cz-rfq-seg .cz-chip { flex: 1 1 0; border-radius: 0; border: 0; background: transparent; color: var(--cz-ink-60); font: 600 13px/1 var(--cz-font-body); justify-content: center; padding: 13px 8px; min-width: 0; }
.theme-coffee .cz-rfq-seg .cz-chip + .cz-chip { border-inline-start: 1px solid var(--cz-ink-12); }
.theme-coffee .cz-rfq-seg .cz-chip:hover { background: var(--cz-cream); color: var(--cz-ink); }
.theme-coffee .cz-rfq-seg .cz-chip.is-active, .theme-coffee .cz-rfq-seg .cz-chip:has(input:checked) { background: var(--cz-espresso); color: var(--cz-cream); }

/* step 2 summary box */
.theme-coffee .cz-rfq-summary { margin-top: 14px; padding: 12px 14px; background: var(--cz-cream); border-radius: var(--cz-radius-sm); font: 400 13.5px/1.5 var(--cz-font-body); color: var(--cz-ink-60); }
.theme-coffee .cz-rfq-summary strong { color: var(--cz-ink); font-weight: 700; }
.theme-coffee .cz-rfq-summary + .cz-rfq-grid-2 { margin-top: 22px; }

/* dropzone + uploaded files */
.theme-coffee .cz-rfq-files-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.theme-coffee .cz-rfq-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 18px; min-height: 100px; background: var(--cz-white); border: 1px dashed var(--cz-ink-40); border-radius: var(--cz-radius-sm); font: 400 13.5px/1.5 var(--cz-font-body); color: var(--cz-ink-60); text-align: center; cursor: pointer; }
.theme-coffee .cz-rfq-dropzone:hover, .theme-coffee .cz-rfq-dropzone.is-over { border-color: var(--cz-lacquer); background: var(--cz-cream); }
.theme-coffee .cz-rfq-dropzone__btn { font: 600 12px/1 var(--cz-font-body); color: var(--cz-lacquer); }
.theme-coffee .cz-rfq-filebox { background: var(--cz-cream); border-radius: var(--cz-radius-sm); padding: 14px 16px; min-height: 100px; }
.theme-coffee .cz-rfq-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.theme-coffee .cz-rfq-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; }
.theme-coffee .cz-rfq-file__name { font: 600 12.5px/1.2 var(--cz-font-body); color: var(--cz-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-coffee .cz-rfq-file__meta { grid-column: 1; font: 400 11.5px/1 var(--cz-font-mono); color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-files li button { grid-column: 2; grid-row: 1 / span 2; background: none; border: 0; padding: 0; font: 600 12px/1 var(--cz-font-body); color: var(--cz-lacquer); cursor: pointer; }
.theme-coffee .cz-rfq-files li button:hover { text-decoration: underline; }
.theme-coffee .cz-rfq-filebox__empty { display: none; font: 400 13px/1.6 var(--cz-font-body); color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-filebox__empty .cz-mono { font-size: 11px; }
.theme-coffee .cz-rfq-files:empty + .cz-rfq-filebox__empty { display: block; }

/* step 3 review grid (cells with hairline gaps, like the 2d summary) */
.theme-coffee .cz-rfq-review { margin-top: 22px; }
.theme-coffee .cz-rfq-review__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--cz-ink-12); border: 1px solid var(--cz-ink-12); }
.theme-coffee .cz-rfq-review__cell { background: var(--cz-white); padding: 14px 16px; min-width: 0; }
.theme-coffee .cz-rfq-review__cell--half { grid-column: span 2; }
.theme-coffee .cz-rfq-review__cell--wide { grid-column: 1 / -1; }
.theme-coffee .cz-rfq-review__cell dt { margin: 0; font: 400 11.5px/1 var(--cz-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-review__cell dd { margin: 7px 0 0; font: 600 14px/1.4 var(--cz-font-body); color: var(--cz-ink); overflow-wrap: anywhere; }

/* success (2d step 3): dark head + white body */
.theme-coffee .cz-rfq-success__head { padding: 30px 34px; background: var(--cz-espresso); border-radius: var(--cz-radius) var(--cz-radius) 0 0; }
.theme-coffee .cz-rfq-success__head .cz-eyebrow { margin: 0; font-size: 11.5px; }
.theme-coffee .cz-rfq-success__title { margin: 12px 0 0; font: 400 32px/1.15 var(--cz-font-display); color: var(--cz-cream); }
.theme-coffee .cz-rfq-success__title .cz-num { font-family: var(--cz-font-display) !important; font-weight: 400; color: var(--cz-brass-2); }
.theme-coffee .cz-rfq-success__lead { margin: 10px 0 0; max-width: 560px; font: 300 15.5px/1.6 var(--cz-font-body); color: var(--cz-cream-80); }
.theme-coffee .cz-rfq-success__body { padding: 26px 34px 30px; }
.theme-coffee .cz-rfq-success__kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--cz-ink-12); border: 1px solid var(--cz-ink-12); }
.theme-coffee .cz-rfq-success__kv > div { background: var(--cz-white); padding: 14px 16px; min-width: 0; }
.theme-coffee .cz-rfq-success__kv dt { margin: 0; font: 400 11.5px/1 var(--cz-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-success__kv dd { margin: 7px 0 0; font: 600 14px/1.35 var(--cz-font-body); color: var(--cz-ink); overflow-wrap: anywhere; }
.theme-coffee .cz-rfq-success__next { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.theme-coffee .cz-rfq-success__tile { border: 1px solid var(--cz-ink-12); border-radius: var(--cz-radius-sm); padding: 16px; }
.theme-coffee .cz-rfq-success__tile-k { font: 600 11px/1 var(--cz-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cz-lacquer); }
.theme-coffee .cz-rfq-success__tile p { margin: 9px 0 0; font: 400 14px/1.5 var(--cz-font-body); color: var(--cz-ink); }
.theme-coffee .cz-rfq-success__actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* email-OTP modal */
.theme-coffee .cz-rfq-auth .modal-body { padding: 22px 24px 24px; }
.theme-coffee .cz-rfq-auth form[hidden] { display: none !important; }
.theme-coffee .cz-rfq-auth__hint { margin: 0 0 16px; font-size: 13.5px; color: var(--cz-ink-60); }
.theme-coffee .cz-rfq-auth__otp { min-height: 54px; text-align: center; font-size: 24px; letter-spacing: .5em; }
.theme-coffee .cz-rfq-auth__resend { margin-top: 12px; text-align: center; font-size: 13px; }
.theme-coffee .cz-rfq-auth__resend a { font-weight: 600; }

/* ---- create: mobile (2g) ----------------------------------------------- */
@media (max-width: 991.98px) {
    .theme-coffee .cz-rfq-page__section { padding-block: 18px 28px; }
    .theme-coffee .cz-rfq__topline { display: none; }
    .theme-coffee .cz-rfq-steps { display: none; }
    .theme-coffee .cz-rfq-progress { display: flex; }
    .theme-coffee .cz-rfq-card { margin-top: 16px; }
    .theme-coffee .cz-rfq-card__body { padding: 20px 16px 2px; }
    .theme-coffee .cz-rfq-card__title { font-size: 24px; }
    .theme-coffee .cz-rfq-card__lead { font-size: 14px; }
    .theme-coffee .cz-rfq-fields { margin-top: 18px; }
    .theme-coffee .cz-rfq-row { grid-template-columns: 96px minmax(0, 1fr); gap: 0 8px; }
    .theme-coffee .cz-rfq-grid-2, .theme-coffee .cz-rfq-files-grid { grid-template-columns: 1fr; }
    .theme-coffee .cz-rfq-filebox { min-height: 0; }
    .theme-coffee .cz-rfq-card__foot { position: sticky; bottom: 0; z-index: 5; margin-top: 8px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--cz-white); border-top: 1px solid var(--cz-ink-12); border-radius: 0 0 var(--cz-radius) var(--cz-radius); box-shadow: 0 -4px 16px rgba(36, 26, 20, .08); }
    .theme-coffee .cz-rfq-step__count { display: none; }
    .theme-coffee .cz-rfq-step__next { flex: 1 1 auto; margin-inline-start: 0; padding: 15px 16px; font-size: 14.5px; min-height: 48px; }
    .theme-coffee #rfq-step-2 .cz-rfq-step__back { display: none; }
    .theme-coffee .cz-rfq-step__skip { display: inline-flex; flex: none; padding: 15px 18px; font-size: 14px; min-height: 48px; }
    .theme-coffee .cz-rfq-review__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-coffee .cz-rfq-review__cell--half { grid-column: 1 / -1; }
    .theme-coffee .cz-rfq-success__head { padding: 22px 16px; border-radius: var(--cz-radius) var(--cz-radius) 0 0; }
    .theme-coffee .cz-rfq-success__title { font-size: 26px; }
    .theme-coffee .cz-rfq-success__body { padding: 18px 16px 22px; }
    .theme-coffee .cz-rfq-success__kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-coffee .cz-rfq-success__next { grid-template-columns: 1fr; gap: 10px; }
    .theme-coffee .cz-rfq-success__actions .cz-btn { flex: 1 1 auto; }
}

/* ======================================================================
   SHOW — quotes received (3a desktop · 3b mobile)
   ====================================================================== */
.theme-coffee .cz-rfq-show { background: var(--cz-white); }
.theme-coffee .cz-rfq-show__band { background: var(--cz-white); padding: 22px 0 18px; border-bottom: 1px solid var(--cz-ink-12); }
.theme-coffee .cz-rfq-show__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.theme-coffee .cz-rfq-show__title { min-width: 0; }
.theme-coffee .cz-rfq-show__back { display: inline-block; margin-bottom: 10px; font-size: 12.5px; color: var(--cz-ink-60); }
.theme-coffee .cz-rfq-show__back:hover { color: var(--cz-lacquer); }
.theme-coffee .cz-rfq-show__code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 400 12px/1 var(--cz-font-mono); color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-show__h1 { margin: 8px 0 0; font: 400 30px/1.15 var(--cz-font-display); color: var(--cz-ink); letter-spacing: -.005em; text-wrap: balance; }
.theme-coffee .cz-rfq-show__actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* four boxed figures under the title (3a) — the label reads small and the
   number carries the weight, so the state of the RFQ is legible at a glance */
.theme-coffee .cz-rfq-statline { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; max-width: 660px; background: var(--cz-ink-12); border: 1px solid var(--cz-ink-12); border-radius: var(--cz-radius-sm); overflow: hidden; }
.theme-coffee .cz-rfq-statline .cz-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 11px 14px; background: var(--cz-cream); font: 600 10px/1.3 var(--cz-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-statline .cz-stat__v { font: 400 23px/1 var(--cz-font-display); letter-spacing: -.01em; color: var(--cz-ink); text-transform: none; }
@media (max-width: 991.98px) { .theme-coffee .cz-rfq-statline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-coffee .cz-rfq-show__msum { display: none; }
.theme-coffee .cz-rfq-show__body { background: var(--cz-white); padding-bottom: 44px; }

/* grid: 262px cream quote rail + comparison */
.theme-coffee .cz-rfq-show__grid { display: grid; grid-template-columns: 262px minmax(0, 1fr); align-items: stretch; }

/* quote rail (3a) */
.theme-coffee .cz-rfq-list { background: var(--cz-cream); border-inline-end: 1px solid var(--cz-ink-12); padding: 20px 16px 26px; min-width: 0; }
.theme-coffee .cz-rfq-list__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.theme-coffee .cz-rfq-list__eyebrow { font: 600 11px/1 var(--cz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-list__sort { font: 600 11.5px/1 var(--cz-font-body); color: var(--cz-lacquer); white-space: nowrap; }
.theme-coffee .cz-rfq-list__items { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.theme-coffee .cz-rfq-list__item { background: var(--cz-white); border: 1px solid var(--cz-ink-12); border-radius: var(--cz-radius-sm); opacity: .72; transition: opacity .15s, border-color .15s, box-shadow .15s; }
.theme-coffee .cz-rfq-list__item:hover { opacity: 1; }
.theme-coffee .cz-rfq-list__item.is-compared { opacity: 1; border-color: var(--cz-lacquer); box-shadow: inset 0 0 0 1px var(--cz-lacquer); }
.theme-coffee .cz-rfq-list__item[hidden] { display: none !important; }
.theme-coffee .cz-rfq-list__row { display: flex; align-items: flex-start; gap: 10px; padding: 12px; }
.theme-coffee .cz-rfq-list__main { flex: 1 1 auto; min-width: 0; }
.theme-coffee .cz-rfq-list__shop { display: block; font: 700 13.5px/1.3 var(--cz-font-body); color: var(--cz-ink); }
.theme-coffee .cz-rfq-list__shop:hover { color: var(--cz-lacquer); }
.theme-coffee .cz-rfq-list__loc { display: none; }
.theme-coffee .cz-rfq-list__price { margin-top: 6px; font: 600 15px/1 var(--cz-font-mono); color: var(--cz-ink); }
.theme-coffee .cz-rfq-list__item.is-best-price .cz-rfq-list__price { color: var(--cz-lacquer); }
.theme-coffee .cz-rfq-list__unit { font: 400 11.5px/1 var(--cz-font-mono); color: var(--cz-ink-40); margin-inline-start: 2px; }
.theme-coffee .cz-rfq-list__meta { margin-top: 5px; font: 400 11.5px/1 var(--cz-font-mono); color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-list__badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.theme-coffee .cz-rfq-list__badges:empty { display: none; }
.theme-coffee .cz-rfq-status[hidden] { display: none !important; }
.theme-coffee .cz-rfq-list__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.theme-coffee .cz-rfq-list__check { margin: 0; display: flex; cursor: pointer; }
.theme-coffee .cz-rfq-list__check input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border: 1.5px solid var(--cz-ink-40); border-radius: 3px; background: var(--cz-white); cursor: pointer; position: relative; }
.theme-coffee .cz-rfq-list__check input:checked { background: var(--cz-lacquer); border-color: var(--cz-lacquer); }
.theme-coffee .cz-rfq-list__check input:checked::after { content: "✓"; position: absolute; inset: 0; text-align: center; font: 700 10px/13px var(--cz-font-body); color: var(--cz-white); }
.theme-coffee .cz-rfq-list__check input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(158, 43, 37, .2); }
.theme-coffee .cz-rfq-ribbon { display: none; padding: 3px 8px; border-radius: 999px; font: 600 9.5px/1.5 var(--cz-font-body); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.theme-coffee .cz-rfq-ribbon--best { background: var(--cz-lacquer); color: var(--cz-white); }
.theme-coffee .cz-rfq-ribbon--fast { background: var(--cz-espresso); color: var(--cz-cream); }
.theme-coffee .cz-rfq-list__toggle { display: none; }
.theme-coffee .cz-rfq-qcard { display: none; }
.theme-coffee .cz-rfq-list__more { text-align: center; padding: 6px 0 0; }
.theme-coffee .cz-rfq-list__more .cz-btn { font-size: 12.5px; }
.theme-coffee .cz-rfq-list__foot { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--cz-ink-22); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.theme-coffee .cz-rfq-list__count { font-size: 12px; color: var(--cz-ink-60); }

/* comparison (3a) */
.theme-coffee .cz-rfq-compare { padding: 20px 0 30px; padding-inline-start: 32px; min-width: 0; }
.theme-coffee .cz-rfq-compare__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.theme-coffee .cz-rfq-compare__eyebrow { font: 600 11px/1 var(--cz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-compare__hint { font: 400 12.5px/1 var(--cz-font-body); color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-compare__opener { display: none; }
.theme-coffee .cz-rfq-compare__wrap { border: 1px solid var(--cz-ink-12); border-radius: var(--cz-radius-sm); }
.theme-coffee .cz-rfq-compare .cz-table--compare { font-size: 13.5px; table-layout: fixed; width: 100%; }
.theme-coffee .cz-rfq-compare .cz-table--compare th { padding: 14px 12px; background: var(--cz-cream); border-bottom: 1px solid var(--cz-ink-12); font: 700 14px/1.25 var(--cz-font-body); letter-spacing: 0; text-transform: none; color: var(--cz-ink); text-align: start; vertical-align: top; }
.theme-coffee .cz-rfq-compare .cz-table--compare th + th, .theme-coffee .cz-rfq-compare .cz-table--compare td + td { border-inline-start: 1px solid var(--cz-ink-08); }
.theme-coffee .cz-rfq-compare .cz-table--compare td { padding: 14px 16px; border-bottom: 1px dashed var(--cz-ink-22); text-align: start; font-family: var(--cz-font-body); color: var(--cz-ink); vertical-align: middle; }
.theme-coffee .cz-rfq-compare .cz-table--compare th:first-child { width: 156px; }
.theme-coffee .cz-rfq-compare .cz-table--compare td:first-child { width: 156px; font: 400 13px/1.35 var(--cz-font-body); color: var(--cz-ink-60); background: var(--cz-white); }
.theme-coffee .cz-rfq-compare .cz-table--compare tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--cz-ink) 2.5%, var(--cz-white)); }
.theme-coffee .cz-rfq-compare .cz-table--compare tbody tr:hover td { background: color-mix(in srgb, var(--cz-ink) 4%, var(--cz-white)); }
.theme-coffee .cz-rfq-compare .cz-table--compare td.is-best, .theme-coffee .cz-rfq-compare .cz-table--compare tbody tr:hover td.is-best { background: var(--cz-brass-bg); box-shadow: none; color: var(--cz-lacquer); font-weight: 700; }
.theme-coffee .cz-rfq-compare .cz-table--compare td.is-best .cz-mono { color: var(--cz-lacquer); font-weight: 700; }
.theme-coffee .cz-rfq-compare .cz-table--compare td .cz-mono { font-size: 13.5px; }
.theme-coffee .cz-rfq-compare .cz-table--compare td.cz-rfq-compare__num .cz-mono { font-size: 16px; }
.theme-coffee .cz-rfq-compare__unit { margin-inline-start: 2px; font: 400 12px/1 var(--cz-font-mono); color: var(--cz-ink-40); }
.theme-coffee .cz-rfq-compare__factory { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
/* the name is clamped, so let the text column claim the width the logo leaves —
   without this it shrink-wraps the wrapped name and pushes "Verified" onto its own line */
.theme-coffee .cz-rfq-compare__factory > div { flex: 1 1 auto; min-width: 0; }
.theme-coffee .cz-rfq-compare__logo { width: 28px; height: 28px; border-radius: var(--cz-radius-sm); object-fit: cover; background: var(--cz-sand); flex: none; }
.theme-coffee .cz-rfq-compare__shop { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 13.5px/1.3 var(--cz-font-body); color: var(--cz-ink); overflow-wrap: anywhere; }
.theme-coffee .cz-rfq-compare__shop:hover { color: var(--cz-lacquer); }
.theme-coffee .cz-rfq-compare__loc { margin-top: 5px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font: 400 11px/1.4 var(--cz-font-body); color: var(--cz-ink-60); }
.theme-coffee .cz-rfq-compare__loc .cz-rfq-compare__place { white-space: nowrap; }
.theme-coffee .cz-rfq-compare__loc .cz-verified, .theme-coffee .cz-rfq-list__loc .cz-verified { font: 400 11px/1 var(--cz-font-body); color: var(--cz-ink-60); gap: 3px; }
.theme-coffee .cz-rfq-compare__loc .cz-verified::before, .theme-coffee .cz-rfq-list__loc .cz-verified::before { width: 13px; height: 13px; font-size: 8px; }
.theme-coffee .cz-rfq-certs { display: flex; flex-wrap: wrap; gap: 5px; }
.theme-coffee .cz-rfq-certs .cz-tag { padding: 3px 8px; background: var(--cz-ink-08); color: var(--cz-ink-60); font: 600 10.5px/1.5 var(--cz-font-body); }
.theme-coffee .cz-rfq-compare__notes { font-size: 12px; color: var(--cz-ink-60); white-space: normal; }
.theme-coffee .cz-rfq-compare .cz-table--compare tr.cz-rfq-compare__actions td { background: var(--cz-cream); border-bottom: 0; padding: 16px; vertical-align: top; }
.theme-coffee .cz-rfq-compare__actions .cz-btn { display: flex; width: 100%; }
.theme-coffee .cz-rfq-compare__actions .cz-btn + .cz-btn { margin-top: 8px; }
.theme-coffee .cz-rfq-compare__actions .cz-btn--link { justify-content: center; padding: 4px 0; font-size: 12px; color: var(--cz-ink) !important; }
.theme-coffee .cz-rfq-compare__actions .cz-btn--link:hover { color: var(--cz-lacquer) !important; }
.theme-coffee .cz-rfq-compare__actions .cz-rfq-compare__shortlist { color: var(--cz-lacquer) !important; }

/* inspection upsell */
.theme-coffee .cz-rfq-inspect { margin-top: 18px; padding: 16px 18px; background: var(--cz-espresso); border-radius: var(--cz-radius-sm); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.theme-coffee .cz-rfq-inspect__t { font: 700 15px/1.2 var(--cz-font-body); color: var(--cz-cream); }
.theme-coffee .cz-rfq-inspect__s { margin-top: 5px; font: 300 13px/1.4 var(--cz-font-body); color: var(--cz-cream-60); }

/* details accordion */
.theme-coffee .cz-rfq-details { margin-top: 24px; background: var(--cz-white); border: 1px solid var(--cz-ink-12); border-radius: var(--cz-radius-sm); }
.theme-coffee .cz-rfq-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.theme-coffee .cz-rfq-details summary::-webkit-details-marker { display: none; }
.theme-coffee .cz-rfq-details summary::after { content: "+"; font: 600 16px/1 var(--cz-font-mono); color: var(--cz-ink-60); margin-inline-start: auto; }
.theme-coffee .cz-rfq-details summary .cz-mono { order: -1; margin-inline-start: auto; }
.theme-coffee .cz-rfq-details summary .cz-rfq-details__t { order: -2; }
.theme-coffee .cz-rfq-details[open] summary::after { content: "−"; }
.theme-coffee .cz-rfq-details__t { font: 700 14px/1.3 var(--cz-font-body); color: var(--cz-ink); }
.theme-coffee .cz-rfq-details__body { padding: 16px 18px 18px; border-top: 1px solid var(--cz-ink-12); }
.theme-coffee .cz-rfq-details__body .cz-kv dd { margin: 0; }

/* empty states */
.theme-coffee .cz-rfq-empty { max-width: 520px; margin: 0 auto; padding: 56px 20px; text-align: center; color: var(--cz-ink-60); }
.theme-coffee .cz-rfq-empty__title { margin: 0 0 10px; font: 400 26px/1.2 var(--cz-font-display); color: var(--cz-ink); }
.theme-coffee .cz-rfq-empty__actions { margin-top: 18px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ---- show: mobile (3b) ------------------------------------------------ */
@media (max-width: 991.98px) {
    .theme-coffee .cz-rfq-show__band { padding: 0; border-bottom: 0; }
    .theme-coffee .cz-rfq-show__band .cz-container, .theme-coffee .cz-rfq-show__body .cz-container { padding-inline: 0; }
    .theme-coffee .cz-rfq-show__back, .theme-coffee .cz-rfq-show__code, .theme-coffee .cz-rfq-show__h1, .theme-coffee .cz-rfq-show__actions, .theme-coffee .cz-rfq-statline { display: none; }
    .theme-coffee .cz-rfq-show__msum { display: block; margin: 0; padding: 14px 16px; background: var(--cz-cream); border-bottom: 1px solid var(--cz-ink-12); font: 400 13px/1.5 var(--cz-font-body); color: var(--cz-ink-60); }
    .theme-coffee .cz-rfq-show__msum strong { color: var(--cz-ink); }
    .theme-coffee .cz-rfq-show__body { padding-bottom: 28px; }
    .theme-coffee .cz-rfq-show__grid { grid-template-columns: 1fr; }

    .theme-coffee .cz-rfq-list { background: var(--cz-white); border-inline-end: 0; padding: 14px 16px 18px; }
    .theme-coffee .cz-rfq-list__head { display: none; }
    .theme-coffee .cz-rfq-list__items { margin-top: 0; gap: 12px; }
    .theme-coffee .cz-rfq-list__item { opacity: 1; border-color: var(--cz-ink-12); }
    .theme-coffee .cz-rfq-list__item.is-compared { border-color: var(--cz-ink-12); box-shadow: none; }
    .theme-coffee .cz-rfq-list__item.is-best-price, .theme-coffee .cz-rfq-list__item.is-best-price.is-compared { border-color: var(--cz-lacquer); box-shadow: inset 0 0 0 1px var(--cz-lacquer); }
    .theme-coffee .cz-rfq-list__item.is-best-price .cz-rfq-list__row { background: var(--cz-danger-bg); }
    .theme-coffee .cz-rfq-list__row { padding: 13px 14px; }
    .theme-coffee .cz-rfq-list__shop { font-size: 14.5px; }
    .theme-coffee .cz-rfq-list__item.is-expanded .cz-rfq-list__loc { display: block; margin-top: 4px; font: 400 11.5px/1.3 var(--cz-font-body); color: var(--cz-ink-60); }
    .theme-coffee .cz-rfq-list__item.is-expanded .cz-rfq-list__price, .theme-coffee .cz-rfq-list__item.is-expanded .cz-rfq-list__meta { display: none; }
    .theme-coffee .cz-rfq-list__item:not(.is-expanded) .cz-rfq-list__shop { margin-bottom: 5px; }
    .theme-coffee .cz-rfq-list__item:not(.is-expanded) .cz-rfq-list__price, .theme-coffee .cz-rfq-list__item:not(.is-expanded) .cz-rfq-list__meta { display: inline; margin: 0; font: 400 11.5px/1.4 var(--cz-font-mono); color: var(--cz-ink-60); }
    .theme-coffee .cz-rfq-list__item:not(.is-expanded) .cz-rfq-list__meta::before { content: " · "; }
    .theme-coffee .cz-rfq-list__item:not(.is-expanded) .cz-rfq-list__unit { color: inherit; }
    .theme-coffee .cz-rfq-list__item.is-best-price .cz-rfq-list__price { color: var(--cz-ink-60); }
    .theme-coffee .cz-rfq-list__badges .cz-badge--brass, .theme-coffee .cz-rfq-list__badges .cz-badge--sage { display: none; }
    .theme-coffee .cz-rfq-list__side { flex-direction: row; align-items: center; gap: 10px; }
    .theme-coffee .cz-rfq-ribbon { display: inline-block; }
    .theme-coffee .cz-rfq-list__toggle { display: inline-block; background: none; border: 0; padding: 6px 0; font: 600 12.5px/1 var(--cz-font-body); color: var(--cz-lacquer); cursor: pointer; min-width: 36px; text-align: end; }
    .theme-coffee .cz-rfq-list__item.is-expanded .cz-rfq-list__toggle-open { display: none; }
    .theme-coffee .cz-rfq-list__item:not(.is-expanded) .cz-rfq-list__toggle-close { display: none; }
    .theme-coffee .cz-rfq-list__item.is-expanded .cz-rfq-qcard { display: block; }
    .theme-coffee .cz-rfq-qcard__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 0; padding: 10px 14px 13px; }
    .theme-coffee .cz-rfq-qcard__grid dt { margin: 0; font: 400 10.5px/1 var(--cz-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cz-ink-40); }
    .theme-coffee .cz-rfq-qcard__grid dd { margin: 5px 0 0; font: 400 13.5px/1.2 var(--cz-font-body); color: var(--cz-ink); }
    .theme-coffee .cz-rfq-qcard__grid dd.cz-mono { font-size: 13.5px; }
    .theme-coffee .cz-rfq-qcard__grid > div:nth-child(-n+2) dd { font-size: 16px; font-weight: 600; }
    .theme-coffee .cz-rfq-qcard__grid dd.is-best { color: var(--cz-lacquer); font-weight: 700; }
    .theme-coffee .cz-rfq-qcard__actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 14px; }
    .theme-coffee .cz-rfq-qcard__actions .cz-btn--primary { flex: 1 1 auto; min-height: 46px; }
    .theme-coffee .cz-rfq-qcard__actions .cz-btn--ghost { min-height: 46px; }
    .theme-coffee .cz-rfq-qcard__actions .cz-btn--link { width: 100%; justify-content: center; padding: 6px 0; }
    .theme-coffee .cz-rfq-list__more { padding: 4px 0 0; }
    .theme-coffee .cz-rfq-list__foot { margin-top: 8px; padding-top: 10px; border-top: 0; }

    .theme-coffee .cz-rfq-compare { padding: 0; }
    .theme-coffee .cz-rfq-compare__head { display: none; }
    .theme-coffee .cz-rfq-compare__opener { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--cz-espresso); }
    .theme-coffee .cz-rfq-compare__opener-t { font: 700 13.5px/1.2 var(--cz-font-body); color: var(--cz-cream); }
    .theme-coffee .cz-rfq-compare__opener-s { margin-top: 3px; font: 400 11px/1 var(--cz-font-body); color: var(--cz-cream-60); }
    .theme-coffee .cz-rfq-compare__close-l { display: none; }
    .theme-coffee .cz-rfq-compare.is-open .cz-rfq-compare__close-l { display: inline; }
    .theme-coffee .cz-rfq-compare.is-open .cz-rfq-compare__open-l { display: none; }
    .theme-coffee .cz-rfq-compare__wrap { display: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--cz-ink-12); }
    .theme-coffee .cz-rfq-compare.is-open .cz-rfq-compare__wrap { display: block; }
    .theme-coffee .cz-rfq-compare .cz-table--compare { min-width: 720px; }
    .theme-coffee .cz-rfq-compare .cz-table--compare td:first-child, .theme-coffee .cz-rfq-compare .cz-table--compare th:first-child { width: 130px; font-size: 12px; }
    .theme-coffee .cz-rfq-compare .cz-table--compare th, .theme-coffee .cz-rfq-compare .cz-table--compare td { padding: 12px; }
    .theme-coffee .cz-rfq-compare__actions .cz-btn { font-size: 12px; }
    .theme-coffee .cz-rfq-inspect { margin: 16px; }
    .theme-coffee .cz-rfq-details { margin: 0 16px; }
    .theme-coffee .cz-rfq-empty { padding: 40px 16px; }
}

/* ======================================================================
   INDEX — my RFQs
   ====================================================================== */
.theme-coffee .cz-rfq-index { margin-bottom: 24px; background: var(--cz-white); border: 1px solid var(--cz-ink-12); border-radius: var(--cz-radius); box-shadow: var(--cz-shadow-sm); overflow: hidden; }
.theme-coffee .cz-rfq-index__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px; border-bottom: 1px solid var(--cz-ink-12); }
.theme-coffee .cz-rfq-index__head .cz-eyebrow { margin-bottom: 6px; }
.theme-coffee .cz-rfq-index__h { margin: 0; font: 400 24px/1.2 var(--cz-font-display); color: var(--cz-ink); }
.theme-coffee .cz-rfq-index__n { font-size: 13px; color: var(--cz-ink-40); margin-inline-start: 4px; }
.theme-coffee .cz-rfq-index__table td { vertical-align: middle; }
.theme-coffee .cz-rfq-index__row:hover td { background: var(--cz-cream); }
.theme-coffee .cz-rfq-index__code { color: var(--cz-lacquer); font-weight: 600; font-size: 12.5px; }
.theme-coffee .cz-rfq-index__title { max-width: 320px; font-weight: 600; }
.theme-coffee .cz-rfq-index__quotes { font-weight: 700; font-size: 15px; }
.theme-coffee .cz-rfq-index__cards { display: none; list-style: none; margin: 0; padding: 0; }
.theme-coffee .cz-rfq-index__card { border-bottom: 1px solid var(--cz-ink-08); }
.theme-coffee .cz-rfq-index__card:last-child { border-bottom: 0; }
.theme-coffee .cz-rfq-index__card-link { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; color: var(--cz-ink); }
.theme-coffee .cz-rfq-index__card-link:hover { background: var(--cz-cream); color: var(--cz-ink); }
.theme-coffee .cz-rfq-index__card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.theme-coffee .cz-rfq-index__card-title { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.theme-coffee .cz-rfq-index__card-meta { font-size: 11.5px; color: var(--cz-ink-60); }
.theme-coffee .cz-rfq-index__foot { padding: 12px 20px; display: flex; justify-content: center; border-top: 1px solid var(--cz-ink-12); }
@media (max-width: 991.98px) {
    .theme-coffee .cz-rfq-index__table-wrap { display: none; }
    .theme-coffee .cz-rfq-index__cards { display: block; }
    .theme-coffee .cz-rfq-index__head { padding: 16px; }
}

/* ---- print: comparison table only --------------------------------------- */
@media print {
    .theme-coffee .cz-rfq-mobilebar, .theme-coffee .cz-rfq-show__actions, .theme-coffee #rfq-quote-list, .theme-coffee #rfq-details, .theme-coffee .cz-rfq-compare__actions, .theme-coffee .cz-rfq-inspect, .theme-coffee .cz-rfq-compare__opener, .theme-coffee header:not(.cz-rfq-show__band), .theme-coffee footer, .theme-coffee .cz-mobile-bar { display: none !important; }
    .theme-coffee .cz-rfq-show__grid { grid-template-columns: 1fr; }
    .theme-coffee .cz-rfq-compare { padding: 0; }
    .theme-coffee .cz-rfq-compare__wrap { display: block !important; }
}
.theme-coffee .cz-rfq-lc { text-transform: lowercase; }
