.trade-order-flow .order-header { grid-template-columns: 1fr auto; }
.trade-order-flow .stepper,
.trade-order-flow .order-intro,
.trade-order-flow .order-step { display: none !important; }
.trade-builder [hidden] { display: none !important; }
.trade-order-flow .order-main { width: min(1280px, calc(100% - 36px)); padding-top: 58px; }
.trade-builder { --trade-ink: #2d202b; --trade-mint: #dfeee8; --trade-gold: #f3dfb8; }
.trade-hero { max-width: 810px; margin-bottom: 40px; }
.trade-hero h1, .trade-success h1 { max-width: 760px; margin: 7px 0 15px; color: var(--plum-dark); font: 700 clamp(42px, 6vw, 76px)/.98 var(--display); letter-spacing: -.04em; }
.trade-hero > p:last-child { max-width: 740px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.trade-loading { display: flex; align-items: center; gap: 13px; min-height: 120px; color: var(--muted); }
.trade-loading span { width: 20px; height: 20px; border: 2px solid var(--pink-strong); border-top-color: var(--plum); border-radius: 50%; animation: trade-spin .8s linear infinite; }
.trade-loading strong, .trade-loading small { display: block; }
.trade-loading small { margin-top: 5px; }
.trade-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.trade-workspace { display: grid; gap: 20px; }
.trade-section, .trade-quote { border: 1px solid rgba(207,132,164,.4); border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: 0 18px 54px rgba(82,37,75,.07); }
.trade-section { padding: clamp(22px, 4vw, 38px); }
.trade-section-heading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.trade-section-heading > span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--plum); color: white; font-size: 11px; font-weight: 800; }
.trade-section-heading h2 { margin: 0; color: var(--trade-ink); font: 700 28px/1.1 var(--display); }
.trade-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.trade-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.trade-field-wide { grid-column: 1 / -1; }
.trade-section label { display: grid; gap: 7px; color: var(--plum-dark); font-size: 11px; font-weight: 800; }
.trade-section input, .trade-section textarea, .trade-section select { width: 100%; border: 1px solid #e8d8df; border-radius: 15px; background: #fffdfb; color: var(--trade-ink); font: 600 13px var(--body); }
.trade-section input, .trade-section select { min-height: 48px; padding: 0 14px; }
.trade-section textarea { padding: 13px 14px; resize: vertical; }
.trade-section input:focus-visible, .trade-section textarea:focus-visible, .trade-section select:focus-visible { outline: 3px solid rgba(113,59,104,.17); border-color: var(--plum); }
.service-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 0; padding: 0; border: 0; }
.service-mode legend { grid-column: 1 / -1; margin-bottom: 8px; color: var(--plum-dark); font-size: 11px; font-weight: 800; }
.service-mode label { position: relative; }
.service-mode input { position: absolute; opacity: 0; }
.service-mode span { min-height: 90px; padding: 17px; border: 1px solid #e8d8df; border-radius: 19px; cursor: pointer; }
.service-mode strong, .service-mode small { display: block; }
.service-mode small { margin-top: 6px; color: var(--muted); font-weight: 500; line-height: 1.45; }
.service-mode input:checked + span { border-color: var(--plum); background: #f4e9f0; box-shadow: inset 0 0 0 1px var(--plum); }
.service-mode input:focus-visible + span { outline: 3px solid rgba(113,59,104,.18); }
.hosted-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; padding: 18px; border-radius: 19px; background: #faf3f6; }
.hosted-fields label { position: relative; }
.hosted-fields label > span { position: absolute; right: 13px; bottom: 15px; color: var(--muted); }
.volume-recommendation { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 18px; margin-top: 18px; padding: 18px 20px; border-radius: 21px; background: var(--trade-mint); color: #214c3f; }
.volume-recommendation > span { font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.volume-recommendation > strong { grid-row: 1 / 3; grid-column: 2; font: 700 32px var(--display); }
.volume-recommendation p, .volume-recommendation small { margin: 0; font-size: 11px; }
.volume-recommendation small { grid-column: 1 / -1; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(33,76,63,.17); font-weight: 700; }
.volume-recommendation small.is-short { color: #9b304b; }
.format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.format-card { display: grid; grid-template-columns: 118px 1fr; align-items: center; min-height: 150px; padding: 18px; border: 1px solid #eadbe1; border-radius: 23px; background: linear-gradient(145deg,#fff 45%,#f8eff4); overflow: hidden; }
.format-card > div strong, .format-card > div small { display: block; }
.format-card > div small { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.format-card > span:last-child { grid-column: 2; margin-top: -27px; color: var(--berry); font-size: 11px; font-weight: 800; }
.trade-pan { display: grid; place-items: center; width: 110px; height: 105px; transform: scale(var(--pan-scale)); transform-origin: center; }
.trade-pan svg { width: 100%; overflow: visible; }
.trade-pan path { fill: #fff; stroke: var(--plum); stroke-width: 2; stroke-linejoin: round; }
.trade-pan path:nth-child(2) { fill: #f4e6ec; }
.trade-pan path:nth-child(3) { fill: none; stroke: #d5a3b9; stroke-width: 1; }
.trade-pan.is-cylinder { transform: none; }
.trade-pan.is-cylinder ellipse { fill: #f8edf2; stroke: var(--plum); stroke-width: 2; }
.trade-pan.is-cylinder ellipse:nth-of-type(2) { fill: #fff; stroke: #d5a3b9; stroke-width: 1.5; }
.trade-pan text { fill: var(--plum); font: 700 16px var(--display); text-anchor: middle; }
.format-standard-note { margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.recommend-button { margin: -5px 0 18px 50px; padding: 10px 14px; border: 1px solid var(--plum); border-radius: 999px; background: white; color: var(--plum); font-size: 10px; font-weight: 800; cursor: pointer; }
.trade-flavour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.trade-flavour-card { min-width: 0; border: 1px solid #eadbe1; border-radius: 21px; background: white; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.trade-flavour-card.is-selected { border-color: var(--plum); box-shadow: 0 12px 30px rgba(82,37,75,.12); transform: translateY(-2px); }
.flavour-select { cursor: pointer; }
.flavour-select > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.trade-flavour-photo { position: relative; display: block; aspect-ratio: 1.25; overflow: hidden; }
.trade-flavour-photo img { width: 100%; height: 100%; object-fit: cover; }
.trade-flavour-photo b { position: absolute; top: 10px; right: 10px; display: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: white; color: var(--plum); box-shadow: 0 4px 12px rgba(0,0,0,.16); }
.is-selected .trade-flavour-photo b { display: grid; }
.flavour-select > span:last-child { display: block; min-height: 62px; padding: 12px; }
.flavour-select strong, .flavour-select small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flavour-select small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 500; }
.flavour-line-controls { grid-template-columns: 1fr 66px; gap: 8px; padding: 0 12px 13px; }
.flavour-line-controls:not([hidden]) { display: grid; }
.flavour-line-controls input, .flavour-line-controls select { min-height: 40px; padding: 0 9px; border-radius: 11px; font-size: 10px; }
.trade-honeypot { position: absolute !important; left: -9999px; }
.trade-legal { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #eadbe1; }
.trade-legal label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.5; }
.trade-legal input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--plum); }
.trade-legal a { color: var(--plum); font-weight: 800; text-underline-offset: 2px; }
.trade-legal a:hover { text-decoration-thickness: 2px; }
.trade-legal input:focus-visible { outline: 3px solid rgba(113,59,104,.18); outline-offset: 2px; }
.trade-quote { position: sticky; top: 22px; padding: 28px; background: linear-gradient(160deg,#54294d,#713b68); color: white; box-shadow: 0 24px 70px rgba(82,37,75,.22); }
.quote-kicker { color: #efcad5; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.trade-quote h2 { margin: 7px 0 22px; font: 700 31px var(--display); }
.quote-lines { display: grid; gap: 12px; max-height: 280px; padding-bottom: 18px; overflow-y: auto; border-bottom: 1px solid rgba(255,255,255,.16); }
.quote-lines > p { margin: 0; color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.55; }
.quote-lines > div { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; }
.quote-lines span, .quote-lines small { display: block; }
.quote-lines small { margin-top: 4px; color: rgba(255,255,255,.58); font-size: 8px; line-height: 1.35; }
.quote-totals { display: grid; gap: 9px; margin: 18px 0; }
.quote-totals > div { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; }
.quote-totals dd { margin: 0; font-weight: 800; }
.quote-totals .is-discount { color: #bde6d8; }
.quote-grand-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.25); align-items: end; }
.quote-grand-total dt { font-weight: 800; }
.quote-grand-total dd { font: 700 25px var(--display); }
.quote-status { min-height: 32px; margin-bottom: 10px; color: #efcad5; font-size: 10px; line-height: 1.45; }
.trade-quote .primary-action { width: 100%; background: white; color: var(--plum); }
.trade-quote .primary-action:disabled { opacity: .45; }
.trade-quote > small { display: block; margin-top: 14px; color: rgba(255,255,255,.58); font-size: 8px; line-height: 1.55; }
.trade-success { max-width: 760px; margin: 60px auto 120px; padding: 60px; border: 1px solid var(--pink-strong); border-radius: 38px; background: white; box-shadow: 0 30px 80px rgba(82,37,75,.12); text-align: center; }
.trade-success > span { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%; background: var(--trade-mint); color: #27624f; font-size: 28px; }
.trade-success h1 { margin-right: auto; margin-left: auto; }
.trade-success > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.trade-success .primary-action { display: inline-flex; margin-top: 20px; padding: 0 30px; text-decoration: none; }
@keyframes trade-spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .trade-layout { grid-template-columns: 1fr 320px; }
  .trade-flavour-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .trade-order-flow .order-main { width: min(100% - 24px, 680px); padding-top: 34px; }
  .trade-layout { display: block; }
  .trade-quote { position: static; margin-top: 20px; }
  .format-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .trade-order-flow .order-header { min-height: 58px; }
  .trade-order-flow .order-main { padding-top: 25px; }
  .trade-hero { margin-bottom: 25px; padding: 0 5px; }
  .trade-hero h1 { font-size: 42px; }
  .trade-hero > p:last-child { font-size: 14px; }
  .trade-section { padding: 21px 16px; border-radius: 24px; }
  .trade-section-heading { gap: 10px; }
  .trade-section-heading h2 { font-size: 24px; }
  .trade-field-grid, .service-mode, .hosted-fields { grid-template-columns: 1fr; }
  .trade-field-wide { grid-column: auto; }
  .trade-flavour-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .trade-flavour-card { border-radius: 16px; }
  .flavour-select > span:last-child { min-height: 55px; padding: 10px; }
  .flavour-line-controls { grid-template-columns: 1fr; }
  .format-card { grid-template-columns: 106px 1fr; padding: 14px; }
  .trade-pan { width: 96px; }
  .trade-quote { padding: 24px 20px; border-radius: 24px; }
  .trade-success { padding: 40px 20px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .trade-loading span { animation-duration: .01ms; }
  .trade-flavour-card { transition: none; }
}
