/* The product, index and receipt are leaves of the same foldout. The native
   dialog never transforms: a photograph can continue into its settled position
   in viewport coordinates while the printed surfaces unfold underneath it. */
.cm-has-dialog,
.cm-has-dialog body { overflow: hidden; overscroll-behavior: none; }
.cm-dialog {
  --cm-ink: var(--ink, #151719);
  --cm-paper: #f6f6f2;
  --cm-metal: #e4e7e6;
  --cm-signal: var(--signal, #ef4529);
  --cm-line: rgba(21,23,25,.23);
  position: fixed;
  inset: 9px;
  top: calc(var(--cm-vtop,0px) + 9px);
  bottom: auto;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  height: calc(var(--cm-vh,100dvh) - 18px);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  color: var(--cm-ink);
  font-family: var(--sans,Arial,sans-serif);
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  isolation: isolate;
}
.cm-dialog:not([open]) { display: none; }
.cm-dialog::backdrop { background: rgba(20,24,26,.3); }
.cm-dialog,
.cm-dialog * { box-sizing: border-box; }
.cm-dialog button,
.cm-dialog input,
.cm-dialog a { -webkit-tap-highlight-color: transparent; }
.cm-dialog button,
.cm-dialog input { font: inherit; }
.cm-dialog button { color: inherit; cursor: pointer; }
.cm-dialog button:disabled { cursor: not-allowed; }
.cm-dialog a { color: inherit; text-underline-offset: 4px; }
.cm-dialog :focus-visible { outline: 2px solid var(--cm-signal); outline-offset: 4px; }
.cm-dialog button,
.cm-dialog a { touch-action: manipulation; }
.cm-dialog [hidden] { display: none !important; }
.cm-dialog [data-cm-leaving] { pointer-events: none; }
.cm-dialog p,
.cm-dialog h2,
.cm-dialog h3,
.cm-dialog figure { margin: 0; }
.cm-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cm-ink);
  background: var(--cm-paper);
  box-shadow: 0 20px 70px rgba(0,0,0,.17);
  overflow: hidden;
}
.cm-topbar {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  min-height: 60px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 18px;
  padding: 7px 26px;
  border-bottom: 1px solid var(--cm-ink);
  background: var(--cm-paper);
}
.cm-topbar-label,
.cm-mono {
  font-family: var(--mono,monospace);
  font-size: 10px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.cm-topbar-label { white-space: nowrap; text-align: center; }
.cm-topbar > .cm-text-button { justify-self: start; min-width: 0; text-align: left; }
.cm-topbar-actions { display: flex; align-items: center; justify-self: end; gap: 24px; white-space: nowrap; }
.cm-text-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 12px !important;
  font-weight: 550 !important;
}
.cm-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: 0 0 auto; }
.cm-bag-count { font: 10px var(--mono,monospace); min-width: 17px; }

/* The two-page product spread. Photograph, metadata and controls have separate
   areas, so printed decoration never changes a hit target or obscures a label. */
.cm-product-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(365px,1fr); flex: 1; min-height: 0; perspective: 1800px; }
.cm-gallery {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
  padding: 28px 30px 20px;
  background: var(--cm-metal);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  transform-origin: 100% 50%;
  isolation: isolate;
}
.cm-gallery::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 25px; background: linear-gradient(90deg,transparent,rgba(28,31,32,.09)); pointer-events: none; z-index: 2; }
.cm-gallery-print { position: absolute; inset: 75px 0 85px; z-index: -1; overflow: hidden; pointer-events: none; user-select: none; }
.cm-gallery-model { position: absolute; left: -.022em; top: 0; white-space: nowrap; font: 400 clamp(86px,10vw,180px)/1 var(--display,Impact,sans-serif); letter-spacing: -.04em; text-transform: uppercase; color: #cbd0cf; }
.cm-gallery-number { position: absolute; bottom: -.19em; right: -.026em; font: 400 clamp(220px,34vw,560px)/1 var(--display,Impact,sans-serif); letter-spacing: -.065em; color: #d2d6d5; }
.cm-fold-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(18,20,22,.25),transparent 62%); opacity: 0; pointer-events: none; z-index: 5; }
.cm-gallery > .cm-fold-shade { background: linear-gradient(270deg,rgba(18,20,22,.26),transparent 62%); }
.cm-gallery-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: 1; padding-bottom: 15px; border-bottom: 1px solid var(--cm-line); }
.cm-gallery-top > :last-child { text-align: right; }
.cm-stage {
  position: relative;
  flex: 1;
  min-height: 240px;
  width: calc(100% + 36px);
  align-self: center;
  overflow: hidden;
  margin: 12px 0;
  isolation: isolate;
  cursor: default;
}
.cm-photo,
.cm-image-slice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.cm-stage[data-inspect="true"] { cursor: crosshair; touch-action: none; }
.cm-stage[data-inspect="true"] .cm-photo { transform: scale(2.4); transform-origin: var(--cm-inspect-x,50%) var(--cm-inspect-y,50%); }
.cm-image-slice { z-index: 2; backface-visibility: hidden; will-change: transform; }
.cm-image-continuation { position: fixed; z-index: 20; margin: 0; max-width: none; max-height: none; object-fit: contain; pointer-events: none; transform-origin: top left; user-select: none; will-change: transform; }
.cm-image-error { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; padding: 30px; text-align: center; font-size: 13px; }
.cm-gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 15px; border-top: 1px solid var(--cm-line); }
.cm-thumbnails { display: flex; align-items: center; gap: 8px; }
.cm-thumbnail { display: block; width: 74px; height: 50px; border: 1px solid transparent; padding: 2px; background: rgba(255,255,255,.3); transition: border-color .16s; }
.cm-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cm-thumbnail[aria-pressed="true"] { border-color: var(--cm-ink); background: var(--cm-paper); }
.cm-inspect-button { gap: 8px; border-bottom: 1px solid currentColor; padding-inline: 4px; }
.cm-inspect-button[aria-pressed="true"] { color: #ab2817; }
.cm-inspect-help { min-height: 28px; padding-top: 12px; color: #505656; font: 10px/1.5 var(--mono,monospace); }
.cm-details {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(26px,3vw,46px);
  border-left: 10px solid var(--cm-signal);
  background: var(--cm-paper);
  scrollbar-width: thin;
  scrollbar-color: #a4aaa8 transparent;
  transform-origin: 0 50%;
}
.cm-details-register { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 18px; margin-bottom: 37px; border-bottom: 1px solid var(--cm-ink); }
.cm-details-register > :last-child { color: #a02c1c; white-space: nowrap; }
.cm-product-eyebrow { margin-bottom: 13px !important; }
.cm-product-title { font: 400 clamp(48px,5.5vw,86px)/.99 var(--display,Impact,sans-serif); letter-spacing: -.025em; text-transform: uppercase; overflow-wrap: anywhere; text-wrap: balance; }
.cm-product-title:focus { outline: none; }
.cm-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 24px 0 21px; margin-bottom: 24px; border-bottom: 1px solid var(--cm-ink); }
.cm-price { font: 400 clamp(35px,3.1vw,48px)/1 var(--display,Impact,sans-serif); letter-spacing: -.03em; }
.cm-price-prefix { display: block; margin-bottom: 7px; color: #636967; font: 10px/1.4 var(--mono,monospace); letter-spacing: .04em; text-transform: uppercase; }
.cm-style-code { text-align: right; color: #626867; }
.cm-size-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.cm-size-heading > :first-child { font-size: 13px; font-weight: 600; }
.cm-size-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(48px,1fr)); gap: 0; border-top: 1px solid var(--cm-line); border-left: 1px solid var(--cm-line); }
.cm-size { min-width: 48px; min-height: 48px; padding: 9px 4px; border: 0; border-right: 1px solid var(--cm-line); border-bottom: 1px solid var(--cm-line); border-radius: 0; background: transparent; font: 12px/1.2 var(--mono,monospace) !important; transition: color .15s,background .15s; }
.cm-size[aria-pressed="true"] { color: var(--cm-paper); background: var(--cm-ink); }
.cm-size:disabled { color: #919594; text-decoration: line-through; background: rgba(23,24,21,.025); }
.cm-size-message { min-height: 37px; padding: 9px 0 10px; font-size: 11px; line-height: 1.6; color: #535956; }
.cm-size-message[data-error="true"] { color: #a52918; }
.cm-primary { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 17px 20px; border: 1px solid var(--cm-ink); border-radius: 0; background: var(--cm-ink); color: var(--cm-paper) !important; text-decoration: none; font-size: 13px !important; font-weight: 550 !important; transition: background .18s,border-color .18s; }
.cm-primary > .cm-icon { width: 23px; height: 23px; }
.cm-primary:disabled { background: #b7bcba; border-color: #b7bcba; color: #343b37 !important; }
.cm-primary-price { margin-left: auto; font: 12px var(--mono,monospace); }
.cm-source-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 4px 0 13px; font-size: 11px; }
.cm-facts { border-top: 1px solid var(--cm-line); margin-top: 4px; }
.cm-facts summary { display: flex; justify-content: space-between; align-items: center; min-height: 51px; font-size: 12px; font-weight: 500; cursor: pointer; list-style: none; }
.cm-facts summary::-webkit-details-marker { display: none; }
.cm-facts summary::after { content: '+'; font: 18px var(--mono,monospace); }
.cm-facts[open] summary::after { content: '−'; }
.cm-fact-list { display: grid; grid-template-columns: 95px minmax(0,1fr); gap: 7px 12px; margin: 0; padding: 0 0 21px; font-size: 11px; line-height: 1.65; }
.cm-fact-list dt { color: #636967; }
.cm-fact-list dd { margin: 0; overflow-wrap: anywhere; }
.cm-snapshot-note { border-top: 1px solid var(--cm-line); padding-top: 18px; color: #606765; font-size: 10px; line-height: 1.7; }
.cm-snapshot-note span { display: block; }

/* Search is the foldout's printed index. Names lead; every shoe and price stays
   visible without requiring hover, a carousel or a separate browsing mode. */
.cm-search-head { flex: 0 0 auto; padding: 24px clamp(22px,4.5vw,72px) 17px; border-bottom: 1px solid var(--cm-ink); }
.cm-search-label { display: block; margin-bottom: 8px; }
.cm-search-field { display: flex; align-items: center; gap: 20px; }
.cm-search-input { width: 100%; min-width: 0; padding: 0 0 6px; border: 0; border-radius: 0; color: var(--cm-ink); background: none; font: 400 clamp(60px,9vw,150px)/1.15 var(--display,Impact,sans-serif) !important; letter-spacing: -.04em; outline-offset: 6px !important; appearance: none; }
.cm-search-input::placeholder { color: #c3c9c6; opacity: 1; }
.cm-search-input::-webkit-search-cancel-button { display: none; }
.cm-search-clear { flex-shrink: 0; width: 48px; }
.cm-search-clear .cm-icon { width: 28px; height: 28px; }
.cm-search-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 13px; min-height: 20px; }
.cm-search-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(22px,4.5vw,72px) 35px; scrollbar-width: thin; }
.cm-search-grid { display: block; }
.cm-search-card { min-width: 0; border-bottom: 1px solid var(--cm-line); transform-origin: center top; }
.cm-result-button { display: grid; grid-template-columns: 40px minmax(130px,19%) minmax(0,1fr) 130px 35px; align-items: center; gap: 24px; width: 100%; min-height: 148px; padding: 10px 0; border: 0; background: transparent; text-align: left; transition: background .2s; }
.cm-result-number { color: #666d6a; align-self: start; padding-top: 18px; }
.cm-result-image { display: block; height: 122px; position: relative; overflow: hidden; background: var(--cm-metal); }
.cm-result-image img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.cm-result-copy { min-width: 0; padding-block: 6px; }
.cm-result-model { display: block; margin-bottom: 6px; color: #59625d; font: 9px/1.6 var(--mono,monospace); text-transform: uppercase; letter-spacing: .04em; }
.cm-result-name { display: block; font: 400 clamp(28px,3vw,50px)/1.05 var(--display,Impact,sans-serif); letter-spacing: -.025em; text-transform: uppercase; overflow-wrap: anywhere; }
.cm-result-price { white-space: nowrap; font: 12px/1.5 var(--mono,monospace); text-align: right; }
.cm-result-price > span { display: block; font-size: 9px; color: #606765; }
.cm-result-button > .cm-icon { justify-self: end; width: 25px; height: 25px; }
.cm-empty { padding: clamp(25px,6vh,70px) 0; max-width: 540px; }
.cm-empty h3 { margin-bottom: 13px; font: 400 clamp(35px,4.5vw,64px)/1.02 var(--display,Impact,sans-serif); text-transform: uppercase; }
.cm-empty p { font-size: 13px; color: #5e6561; line-height: 1.7; overflow-wrap: anywhere; }
.cm-empty .cm-text-button { margin-top: 14px; border-bottom: 1px solid currentColor; }

/* The bag compresses selected campaign sheets into a tangible paper stack.
   Its receipt keeps the real variant, quantity and checkout information clear. */
.cm-bag-layout { display: grid; grid-template-columns: minmax(320px,.9fr) minmax(0,1fr); min-height: 0; flex: 1; perspective: 1800px; }
.cm-bag-art { display: flex; flex-direction: column; position: relative; min-height: 0; padding: 26px 30px; overflow: hidden; background: var(--cm-metal); transform-origin: 100% 50%; }
.cm-bag-art-title { display: flex; justify-content: space-between; align-items: start; position: relative; z-index: 1; font: 400 clamp(85px,12vw,190px)/.86 var(--display,Impact,sans-serif); letter-spacing: -.04em; }
.cm-bag-art-title > span { font: 11px/1 var(--mono,monospace); letter-spacing: 0; margin-top: 9px; }
.cm-bag-composition { position: relative; flex: 1; min-height: 300px; margin: 8px -3% 0; }
.cm-bag-sheet { position: absolute; width: 78%; height: 61%; min-height: 225px; left: calc(8% + var(--cm-sheet-index) * 3%); top: calc(7% + var(--cm-sheet-index) * 12%); padding: 18px; border: 1px solid rgba(21,23,25,.5); background: var(--cm-paper); box-shadow: 4px 8px 12px rgba(35,40,36,.15); z-index: calc(3 - var(--cm-sheet-index)); transform: rotate(calc(-7deg + var(--cm-sheet-index) * 7deg)); }
.cm-bag-sheet > .cm-mono:first-child { position: relative; display: block; z-index: 1; padding-bottom: 9px; border-bottom: 1px solid var(--cm-line); font-size: 8px; }
.cm-bag-sheet img { position: absolute; width: calc(100% - 20px); height: calc(100% - 75px); left: 10px; top: 35px; object-fit: contain; mix-blend-mode: multiply; }
.cm-bag-sheet figcaption { position: absolute; left: 18px; right: 45px; bottom: 14px; font: 400 clamp(21px,2.1vw,34px)/1 var(--display,Impact,sans-serif); text-transform: uppercase; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cm-sheet-number { position: absolute; right: 0; bottom: 0; min-width: 33px; height: 33px; padding: 9px 8px; color: #141715; background: var(--cm-signal); }
.cm-bag-art-footer { display: flex; justify-content: space-between; gap: 15px; padding-top: 17px; border-top: 1px solid var(--cm-ink); }
.cm-bag-empty-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 400 260px/1 var(--display,Impact,sans-serif); color: #c1c8c4; }
.cm-bag-receipt { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 10px solid var(--cm-signal); background: var(--cm-paper); transform-origin: 0 50%; }
.cm-bag-heading { padding: 28px 32px 23px; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 15px; border-bottom: 1px solid var(--cm-ink); }
.cm-bag-heading > .cm-mono { white-space: nowrap; }
.cm-bag-title { font: 400 clamp(34px,3.3vw,55px)/1 var(--display,Impact,sans-serif); letter-spacing: -.025em; text-transform: uppercase; }
.cm-bag-title:focus { outline: none; }
.cm-bag-items { flex: 1; min-height: 0; padding: 0 32px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cm-bag-item { display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--cm-line); }
.cm-bag-item > div { min-width: 0; }
.cm-bag-item:last-child { border-bottom: 0; }
.cm-bag-image { display: flex; align-items: center; justify-content: center; min-height: 105px; align-self: start; padding: 0; border: 1px solid var(--cm-line); background: var(--cm-metal); }
.cm-bag-image img { width: 100%; height: 103px; object-fit: contain; mix-blend-mode: multiply; }
.cm-bag-model { display: block; margin-bottom: 5px; font: 9px/1.6 var(--mono,monospace); text-transform: uppercase; color: #5e6761; }
.cm-bag-name { font: 400 clamp(24px,2.4vw,36px)/1.05 var(--display,Impact,sans-serif); text-transform: uppercase; letter-spacing: -.025em; overflow-wrap: anywhere; }
.cm-bag-size { margin-top: 10px !important; font: 10px/1.6 var(--mono,monospace); overflow-wrap: anywhere; }
.cm-bag-item-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 9px; }
.cm-quantity { display: flex; align-items: center; min-height: 44px; flex: 0 0 auto; border-bottom: 1px solid var(--cm-line); }
.cm-quantity button { min-width: 36px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 18px; }
.cm-quantity button:disabled { color: #a5afa7; }
.cm-quantity span { min-width: 19px; text-align: center; font: 11px var(--mono,monospace); }
.cm-line-total { margin-left: auto; font: 12px var(--mono,monospace); white-space: nowrap; }
.cm-remove { display: inline-flex; align-items: center; min-height: 36px; padding: 0; border: 0; background: transparent; font: 10px var(--mono,monospace) !important; color: #5f6861 !important; text-decoration: underline; text-underline-offset: 3px; }
.cm-bag-summary { flex: 0 0 auto; padding: 22px 32px 20px; border-top: 2px solid var(--cm-ink); background: var(--cm-paper); }
.cm-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; font: 11px var(--mono,monospace); text-transform: uppercase; }
.cm-total strong { font: 400 clamp(37px,4vw,61px)/1 var(--display,Impact,sans-serif); letter-spacing: -.03em; }
.cm-checkout { background: var(--cm-signal); border-color: var(--cm-signal); color: #141715 !important; }
.cm-bag-note { margin-top: 12px !important; color: #606962; font-size: 10px; line-height: 1.65; }
.cm-bag-announcement { margin-top: 7px !important; min-height: 17px; font-size: 11px; color: #48534a; }
.cm-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px !important; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Only a real, hovering fine pointer gets hover effects. */
@media (hover: hover) and (pointer: fine) {
  .cm-root:not(.cm-touch-input) .cm-text-button:hover { color: #b6311d; }
  .cm-root:not(.cm-touch-input) .cm-thumbnail:hover { border-color: var(--cm-signal); }
  .cm-root:not(.cm-touch-input) .cm-size:not(:disabled):not([aria-pressed="true"]):hover { background: #e0e5e1; }
  .cm-root:not(.cm-touch-input) .cm-primary:not(:disabled):hover { background: #303a32; border-color: #303a32; }
  .cm-root:not(.cm-touch-input) .cm-result-button:hover { background: #fff; }
  .cm-root:not(.cm-touch-input):not(.cm-motion-off) .cm-result-button:hover .cm-result-image img { transform: scale(1.035); }
  .cm-root:not(.cm-touch-input) .cm-checkout:hover { background: #f66647 !important; border-color: #f66647 !important; }
}
@media (min-width: 1700px) {
  .cm-details { padding: 46px 4vw; }
  .cm-gallery { padding: 35px 42px 25px; }
  .cm-product-title { font-size: 102px; }
  .cm-search-results { padding-inline: 7vw; }
}
@media (max-width: 1100px) {
  .cm-product-layout { grid-template-columns: minmax(0,1.25fr) minmax(340px,1fr); }
  .cm-details { padding: 27px; border-left-width: 8px; }
  .cm-details-register { margin-bottom: 27px; }
  .cm-gallery { padding-inline: 20px; }
  .cm-topbar { grid-template-columns: minmax(0,1fr) auto; }
  .cm-topbar-label { display: none; }
  .cm-product-title { font-size: clamp(44px,5.8vw,64px); }
  .cm-result-button { grid-template-columns: 28px 145px minmax(0,1fr) 95px 25px; gap: 17px; }
  .cm-result-image { height: 106px; }
  .cm-result-name { font-size: 31px; }
  .cm-result-price { font-size: 11px; }
  .cm-bag-layout { grid-template-columns: minmax(260px,.7fr) minmax(0,1fr); }
  .cm-bag-art { padding-inline: 21px; }
  .cm-bag-sheet { width: 84%; left: calc(3% + var(--cm-sheet-index) * 3%); }
  .cm-bag-heading,.cm-bag-summary { padding-inline: 25px; }
  .cm-bag-items { padding-inline: 25px; }
  .cm-bag-item { grid-template-columns: 89px minmax(0,1fr); gap: 16px; }
  .cm-bag-image,.cm-bag-image img { min-height: 85px; height: 85px; }
}
@media (max-width: 760px) {
  .cm-dialog { inset: 4px; top: calc(var(--cm-vtop,0px) + 4px); bottom: auto; width: calc(100% - 8px); height: calc(100% - 8px); height: calc(var(--cm-vh,100dvh) - 8px); }
  .cm-topbar { min-height: 60px; padding: 7px 16px; gap: 10px; }
  .cm-topbar-actions { gap: 15px; }
  .cm-product-layout { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .cm-gallery { min-height: 380px; border-bottom: 1px solid var(--cm-ink); padding: 19px 18px 15px; overflow: hidden; }
  .cm-gallery::after { inset: auto 0 0; width: auto; height: 17px; background: linear-gradient(transparent,rgba(28,31,32,.08)); }
  .cm-gallery-print { inset: 63px 0 70px; }
  .cm-gallery-model { font-size: 16vw; }
  .cm-gallery-number { font-size: 64vw; }
  .cm-stage { flex: none; width: calc(100% + 26px); height: clamp(228px,62vw,420px); min-height: 0; margin: 6px 0; }
  .cm-inspect-help { min-height: 24px; font-size: 9px; }
  .cm-details { overflow: visible; padding: 25px 22px 31px; border-left: 0; border-top: 7px solid var(--cm-signal); }
  .cm-details-register { margin-bottom: 27px; padding-bottom: 14px; }
  .cm-product-title { font-size: clamp(49px,10vw,76px); }
  .cm-price-row { padding: 21px 0; margin-bottom: 22px; }
  .cm-price { font-size: 42px; }
  .cm-size-grid { grid-template-columns: repeat(auto-fit,minmax(48px,1fr)); }
  .cm-size { min-height: 48px; }
  .cm-primary { min-height: 61px; }
  .cm-thumbnail { width: 65px; }
  .cm-search-head { padding: 20px 20px 14px; }
  .cm-search-input { font-size: clamp(52px,12vw,90px) !important; padding-bottom: 4px; }
  .cm-search-meta { font-size: 9px; }
  .cm-search-meta > :last-child { display: none; }
  .cm-search-results { padding: 0 20px 28px; }
  .cm-result-button { grid-template-columns: 24px 110px minmax(0,1fr) 23px; gap: 12px; min-height: 120px; }
  .cm-result-number { grid-column: 1; grid-row: 1/3; padding-top: 13px; font-size: 9px; }
  .cm-result-image { grid-column: 2; grid-row: 1/3; height: 93px; }
  .cm-result-copy { grid-column: 3; align-self: end; padding-bottom: 0; }
  .cm-result-name { font-size: 27px; }
  .cm-result-model { font-size: 8px; line-height: 1.5; margin-bottom: 5px; }
  .cm-result-price { grid-column: 3; text-align: left; align-self: start; margin-top: -4px; font-size: 10px; }
  .cm-result-price > span { display: inline; }
  .cm-result-button > .cm-icon { grid-column: 4; grid-row: 1/3; width: 21px; }
  .cm-bag-layout { grid-template-columns: minmax(0,1fr); }
  .cm-bag-art { display: none; }
  .cm-bag-receipt { border-left: 0; border-top: 7px solid var(--cm-signal); }
  .cm-bag-heading { padding: 23px 21px 19px; }
  .cm-bag-title { font-size: 36px; }
  .cm-bag-items { padding: 0 21px; }
  .cm-bag-summary { padding: 20px 21px max(20px,env(safe-area-inset-bottom)); }
  .cm-total strong { font-size: 44px; }
  .cm-quantity button { min-width: 44px; }
  .cm-remove { min-height: 44px; }
  .cm-bag-item { grid-template-columns: 88px minmax(0,1fr); gap: 14px; padding: 23px 0; }
  .cm-bag-name { font-size: 27px; }
}
@media (max-width: 480px) {
  .cm-search-head { padding-inline: 16px; }
  .cm-search-results { padding-inline: 16px; }
  .cm-result-button { grid-template-columns: 81px minmax(0,1fr) 20px; column-gap: 12px; row-gap: 10px; }
  .cm-result-number { display: none; }
  .cm-result-image { grid-column: 1; height: 87px; }
  .cm-result-copy,.cm-result-price { grid-column: 2; }
  .cm-result-button > .cm-icon { grid-column: 3; }
  .cm-result-name { font-size: clamp(23px,6.1vw,28px); }
}
@media (max-width: 390px) {
  .cm-topbar { padding-inline: 13px; }
  .cm-topbar-actions { gap: 11px; }
  .cm-gallery { padding-inline: 14px; }
  .cm-thumbnail { width: 55px; height: 47px; }
  .cm-gallery-controls { gap: 10px; }
  .cm-details { padding-inline: 18px; }
  .cm-details-register { font-size: 9px; }
  .cm-bag-heading { padding-inline: 16px; }
  .cm-bag-title { font-size: 33px; }
  .cm-bag-items { padding-inline: 16px; }
  .cm-bag-item { grid-template-columns: 67px minmax(0,1fr); gap: 12px; }
  .cm-bag-name { font-size: 25px; }
  .cm-bag-image,.cm-bag-image img { min-height: 76px; height: 76px; }
  .cm-bag-summary { padding-inline: 16px; }
  .cm-checkout { font-size: 12px !important; padding-inline: 16px; }
}
@media (max-height: 580px) and (min-width: 761px) {
  .cm-dialog { top: calc(var(--cm-vtop,0px) + 5px); height: calc(100% - 10px); height: calc(var(--cm-vh,100dvh) - 10px); }
  .cm-topbar { min-height: 54px; padding-block: 4px; }
  .cm-gallery { padding-block: 14px; }
  .cm-gallery-top { padding-bottom: 10px; }
  .cm-stage { min-height: 130px; }
  .cm-gallery-controls { padding-top: 10px; }
  .cm-gallery-number { font-size: 35vw; }
  .cm-inspect-help { min-height: 0; padding-top: 6px; }
  .cm-details-register { margin-bottom: 24px; }
  .cm-bag-summary { padding-block: 15px; }
  .cm-bag-note { font-size: 9px; }
  .cm-bag-heading { padding-block: 18px; }
  .cm-search-head { padding-top: 14px; }
  .cm-search-input { font-size: 57px !important; }
  .cm-result-button { min-height: 110px; }
  .cm-result-image { height: 90px; }
}
@media (max-height: 600px) {
  .cm-bag-receipt { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .cm-bag-items { overflow: visible; }
}
/* A keyboard changes visualViewport without necessarily changing media query
   height. These states follow the visible panel and preserve one scroll owner. */
.cm-compact-viewport .cm-bag-receipt { display: block; overflow-y: auto; overscroll-behavior: contain; }
.cm-compact-viewport .cm-bag-items { overflow: visible; }
.cm-short-viewport .cm-topbar { min-height: 52px; padding-block: 4px; }
.cm-short-viewport .cm-search-dialog .cm-frame { overflow-y: auto; overscroll-behavior: contain; }
.cm-short-viewport .cm-search-dialog .cm-topbar { position: sticky; top: 0; }
.cm-short-viewport .cm-search-head { padding: 10px 20px 8px; }
.cm-short-viewport .cm-search-label { margin-bottom: 4px; }
.cm-short-viewport .cm-search-input { font-size: 32px !important; padding-bottom: 6px; }
.cm-short-viewport .cm-search-meta { margin-top: 8px; min-height: 15px; }
.cm-short-viewport .cm-search-meta > :last-child { display: none; }
.cm-short-viewport .cm-search-results { flex: 0 0 auto; min-height: 120px; overflow: visible; }
.cm-short-viewport .cm-bag-layout { grid-template-columns: minmax(0,1fr); }
.cm-short-viewport .cm-bag-art { display: none; }
.cm-motion-off .cm-dialog *,
.cm-motion-off .cm-dialog *::before,
.cm-motion-off .cm-dialog *::after { transition: none !important; scroll-behavior: auto !important; }
