/* v17: quick-order modal (qm-*), built from the measured reference: overlay ink 60%, panel 640px / radius 40, .3s fade+slide */
.qm { position: fixed; inset: 0; z-index: 1000010; display: flex; align-items: center; justify-content: center; padding: 16px; }
.qm[hidden] { display: none; }
.qm__overlay { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(20, 8, 31, .6); opacity: 0; transition: opacity .3s; cursor: pointer; }
.qm.is-open .qm__overlay { opacity: 1; }
.qm__panel { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 40px; overflow: hidden; opacity: 0; transform: translateY(18px); transition: transform .3s ease-out, opacity .3s ease-out; }
.qm.is-open .qm__panel { opacity: 1; transform: none; }
.qm__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px 0; min-height: 52px; }
.qm__back, .qm__close { border: 0; background: transparent; color: var(--bx-ink); font: 800 .78rem/1 var(--bx-body); letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 4px; }
.qm__back[hidden] { display: none; }
.qm__close { margin-left: auto; }
.qm__back:hover, .qm__close:hover { color: var(--bx-orange); }
.qm__body { padding: 4px 24px 20px; overflow-y: auto; }
.qm__eye { display: block; font: 800 .7rem/1 var(--bx-body); letter-spacing: .08em; text-transform: uppercase; color: var(--bx-ink-2); margin-bottom: 6px; }
html body .qm__title { font-size: 2.9rem !important; line-height: .95; margin: 0 0 18px; }
.qm__plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qm__plats[hidden], .qm__svcs[hidden], .qm__go[hidden] { display: none; }
.qm__plat { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 108px; padding: 14px; border: 0; border-radius: 20px; background: var(--bx-lav); color: var(--bx-ink); text-align: left; cursor: pointer; transition: background .15s; }
.qm__plat:hover { background: var(--bx-lav-d); }
.qm__plat b { font: 400 1.35rem/1 var(--bx-display); text-transform: uppercase; }
.qm__ico { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.qm__ico img { width: 24px; height: 24px; object-fit: contain; }
.qm__ico--s { width: 38px; height: 38px; font-size: 1.1rem; color: var(--bx-ink); }
.qm__arrow { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .7rem; transition: background .15s, color .15s; }
.qm__plat:hover .qm__arrow { background: var(--bx-ink); color: #fff; }
.qm__svcs { display: grid; gap: 8px; }
.qm__svc { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--bx-lav); cursor: pointer; transition: background .15s, box-shadow .15s; }
.qm__svc:hover { background: var(--bx-lav-d); }
.qm__svc input { position: absolute; opacity: 0; pointer-events: none; }
.qm__svc__t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.qm__svc__t b { font: 800 .86rem/1.15 var(--bx-body); text-transform: uppercase; letter-spacing: .02em; }
.qm__svc__t small { font: 500 .78rem/1.2 var(--bx-body); color: var(--bx-ink-2); }
.qm__svc__t small::first-letter { text-transform: uppercase; }
.qm__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(20, 8, 31, .28); flex: 0 0 auto; background: #fff; transition: border-color .15s, box-shadow .15s; }
.qm__svc:has(input:checked) { box-shadow: inset 0 0 0 2px var(--bx-ink); background: #fff; }
.qm__svc input:checked ~ .qm__radio { border-color: var(--bx-ink); box-shadow: inset 0 0 0 4px #fff; background: var(--bx-ink); }
.qm__svc:has(input:focus-visible) { outline: 3px solid var(--bx-orange); }
.qm__go { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; margin-top: 14px; border-radius: 12px; background: var(--bx-ink); color: #fff !important; font: 800 .86rem/1 var(--bx-body); letter-spacing: .03em; text-transform: uppercase; text-decoration: none !important; transition: opacity .2s; }
.qm__go[aria-disabled="true"] { opacity: .3; cursor: not-allowed; pointer-events: auto; }
.qm__perks { list-style: none; margin: 0; padding: 14px 24px 20px; border-top: 1px solid var(--bx-lav-d); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.qm__perks li { display: inline-flex; align-items: center; gap: 6px; background: var(--bx-lav); border-radius: 999px; padding: 7px 12px 7px 8px; font: 800 .64rem/1 var(--bx-body); letter-spacing: .04em; text-transform: uppercase; color: var(--bx-ink); }
.qm__perks i { color: var(--bx-orange); font-size: .8rem; }
body.qo-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .qm__overlay, .qm__panel { transition: none; } }
@media (max-width: 640px) {
  .qm { align-items: flex-end; padding: 0; }
  .qm__panel { border-radius: 28px 28px 0 0; max-height: 92vh; transform: translateY(40px); }
  .qm__body { padding: 0 16px 16px; }
  .qm__top { padding: 14px 16px 0; }
  html body .qm__title { font-size: 2.3rem !important; }
  .qm__plats { grid-template-columns: 1fr 1fr; }
  .qm__plat { min-height: 92px; }
  .qm__perks { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
}

.qm__foot { padding: 0 24px 14px; }
.qm__foot:has(.qm__go[hidden]) { display: none; }
.qm__go { margin-top: 4px; }
@media (max-width: 640px) { .qm__foot { padding: 0 16px 12px; } }
/* mobile sheet like the reference: floating close, back chip, larger rows */
@media (max-width: 640px) {
  .qm__panel { overflow: visible; border-radius: 28px 28px 0 0; }
  .qm__top { padding: 16px 16px 0; min-height: 0; }
  .qm__close { position: absolute; top: -66px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 16px; background: #fff; justify-content: center; padding: 0; font-size: 0; gap: 0; box-shadow: 0 6px 20px rgba(20, 8, 31, .2); }
  .qm__close i { font-size: 1.1rem; }
  .qm__back { font-size: .86rem; gap: 10px; padding: 0; }
  .qm__back i { width: 38px; height: 38px; border-radius: 12px; background: var(--bx-lav); display: grid; place-items: center; }
  .qm__body { max-height: 66vh; border-radius: 0; }
  .qm__svc { padding: 14px 16px 14px 14px; gap: 14px; border-radius: 22px; }
  .qm__ico--s { width: 52px; height: 52px; border-radius: 16px; font-size: 1.3rem; }
  .qm__svc__t b { font-size: 1.05rem; } .qm__svc__t small { font-size: .95rem; }
  .qm__radio { width: 30px; height: 30px; }
  .qm__plat { min-height: 150px; border-radius: 22px; padding: 18px; }
  .qm__plat b { font-size: 1.6rem; }
  .qm__plats { grid-template-columns: 1fr 1fr; }
}
/* many platforms: compact tiles; perks as one scrolling row */
.qm__plats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qm__plat { min-height: 76px; padding: 10px 10px 10px; gap: 8px; border-radius: 16px; flex-direction: row; align-items: center; justify-content: flex-start; }
.qm__plat .qm__ico { width: 34px; height: 34px; border-radius: 10px; }
.qm__plat .qm__ico img { width: 20px; height: 20px; }
.qm__plat b { font-size: 1.05rem; line-height: 1; }
.qm__arrow { display: none; }
.qm__perks { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.qm__perks::-webkit-scrollbar { display: none; }
.qm__perks li { flex: 0 0 auto; }
@media (max-width: 640px) {
  .qm__plats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qm__plat { min-height: 64px; padding: 10px 12px; border-radius: 16px; }
  .qm__plat b { font-size: 1.05rem; }
  .qm__body { max-height: 62vh; }
  .qm__perks { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
}
/* compact service rows (many services per platform) */
.qm__svcs { gap: 6px; }
.qm__svc { padding: 8px 14px 8px 8px; gap: 10px; border-radius: 16px; }
.qm__ico--s { width: 36px; height: 36px; border-radius: 11px; font-size: 1rem; }
.qm__svc__t b { font-size: .8rem; }
.qm__svc__t small { font-size: .74rem; }
.qm__radio { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .qm__svc { padding: 8px 14px 8px 8px; gap: 10px; border-radius: 16px; min-height: 52px; }
  .qm__ico--s { width: 36px; height: 36px; border-radius: 11px; font-size: 1rem; }
  .qm__svc__t b { font-size: .84rem; } .qm__svc__t small { font-size: .78rem; }
  .qm__radio { width: 22px; height: 22px; }
  html body .qm__title { font-size: 2rem !important; margin-bottom: 12px; }
  .qm__back i { width: 34px; height: 34px; }
  .qm__top { padding-top: 12px; }
}
.qm__top { padding-bottom: 8px; }
.qm__eye { margin-top: 6px; }
@media (max-width: 640px) { .qm__top { padding-bottom: 10px; } .qm__eye { margin-top: 4px; } }
