/* Match the original keychain quote on the verified product dialogs. */
dialog#product-quote.mq-dialog[data-mgm-quote-workspace],
[data-mgm-iw-specialty],
html[data-mgm-quote-embed] {
  --iw-ink: #333;
  --iw-muted: #5e6265;
  --iw-accent: #c83d0a;
  --iw-accent-hover: #a83108;
  --iw-accent-bg: #fff2ec;
  --iw-paper: #fff;
  --iw-page: #f2f5f7;
  --iw-tile: #f2f2f2;
  --iw-line: #dadddf;
  --iw-selected: #5058db;
  --iw-selected-bg: #f1f1ff;
  --iw-close-shadow: 0 2px 8px #1b26351f;
  --iw-danger: #a12815;
  --iw-gutter: clamp(16px, 2.2vw, 30px);
  --iw-font: Carlito, Calibri, Arial, sans-serif;
}

dialog#product-quote.mq-dialog[data-mgm-quote-workspace]:not([open]) { display: none; }
dialog#product-quote.mq-dialog[data-mgm-quote-workspace]:modal {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(calc(100% - 48px), 1320px);
  height: min(calc(100vh - 48px), 960px);
  height: min(calc(100dvh - 48px), 960px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: 12px !important;
  background: var(--iw-page);
  color: var(--iw-ink);
  font: 400 16px/1.35 var(--iw-font);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace]::backdrop { background: rgb(0 0 0 / 60%); }
html:has(dialog#product-quote.mq-dialog[data-mgm-quote-workspace]:modal) { overflow: hidden; }

/* The existing product link opens the new workspace in place of this duplicate inline wizard. */
main:is(:has(dialog#product-quote[data-mgm-quote-workspace]), [data-mgm-iw-product-quote]) .ml-configuration > #pqc-dialog.ml-native {
  display: none !important;
}

dialog#product-quote.mq-dialog[data-mgm-quote-workspace] *,
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] *::before,
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] *::after { box-sizing: border-box; }
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [hidden] { display: none !important; }
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is(input, select, textarea, button) { font: inherit; }
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is(a, input, select, textarea, button, summary):focus-visible {
  outline: 2px solid var(--iw-selected);
  outline-offset: 3px;
}

dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 6px var(--iw-gutter);
  border: 0;
  border-block-end: 1px solid var(--iw-line);
  background: var(--iw-paper);
  color: var(--iw-ink);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-head > div {
  grid-column: 2;
  min-width: 0;
  text-align: center;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-head .eyebrow {
  display: none;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-head h2 {
  margin: 0;
  color: var(--iw-ink);
  font-family: inherit;
  font-size: clamp(19px, 1.75vw, 25px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mq-close] {
  display: grid;
  place-items: center;
  grid-column: 3;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  justify-self: end;
  padding: 0;
  border: 1px solid #e3e6ea;
  border-radius: 50%;
  background: var(--iw-paper);
  color: var(--iw-ink);
  box-shadow: var(--iw-close-shadow);
  line-height: 1;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mq-close]:hover {
  background: var(--iw-page);
}

dialog#product-quote.mq-dialog[data-mgm-quote-workspace] > form {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 12px var(--iw-gutter) max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-block: 14px 28px;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 24%);
  grid-template-rows: none;
  gap: 12px 18px;
  align-items: start;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-layout > :is(nav, .mq-nav) {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  position: static;
  gap: 2px 8px;
  padding: 0;
  overflow: visible;
  border-block-end: 1px solid var(--iw-line);
  background: transparent;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-layout > :is(nav, .mq-nav) > [data-mq-step] {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 4px;
  min-height: 36px;
  padding: 7px 9px;
  border: 0;
  border-block-end: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--iw-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-layout > :is(nav, .mq-nav) > [data-mq-step]::before { content: none; }
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-layout > :is(nav, .mq-nav) > [data-mq-step] > span {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip-path: none;
  color: var(--iw-accent);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-layout > :is(nav, .mq-nav) > [data-mq-step]:is(:hover, [aria-current]) {
  border-block-end-color: var(--iw-accent);
  background: transparent;
  color: var(--iw-accent);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  gap: 12px;
  padding: 0;
  overflow: visible;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is([data-mq-panel], .mq-side, .mq-summary) {
  min-width: 0;
  padding: clamp(16px, 1.7vw, 24px);
  border: 0;
  border-radius: 8px;
  background: var(--iw-paper);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mq-panel] { scroll-margin-block: 10px; }
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is([data-mq-panel], .mq-side, .mq-summary) > h3 {
  margin: 0 0 15px;
  color: var(--iw-ink);
  font-family: inherit;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 700;
  line-height: 1.18;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] h3[data-mgm-step-number]::before {
  margin-inline-end: .44em;
  color: var(--iw-accent);
  content: "STEP " attr(data-mgm-step-number) ":";
  content: "STEP " attr(data-mgm-step-number) ":" / "";
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-stage p {
  margin: 8px 0 0;
  color: var(--iw-muted);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is(.mq-side, .mq-summary) {
  display: block;
  overflow: visible;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is(.mq-side, .mq-summary) > p {
  margin: 16px 0 0;
  padding-block-start: 13px;
  border-block-start: 1px solid var(--iw-line);
  color: var(--iw-accent);
  font-weight: 700;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] dl {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr);
  gap: 7px 10px;
  margin: 0;
  font-size: 15px;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] dl > div {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  gap: inherit;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is(dt, dd) { margin: 0; overflow-wrap: anywhere; }
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mq-review]:not(:empty) {
  padding: 13px 14px;
  margin: 0 0 14px;
  border-radius: 8px;
  background: var(--iw-page);
}

dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-stage :is(label, legend) {
  min-width: 0;
  color: var(--iw-ink);
  font-weight: 700;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-grid fieldset {
  min-width: 0;
  margin: 8px 0;
  padding: 9px 13px;
  border-color: var(--iw-line);
  border-radius: 8px;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-checks label {
  align-items: center;
  min-height: 36px;
  font-weight: 400;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-checks input[type="checkbox"] {
  margin-block-start: 0;
  accent-color: var(--iw-selected);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-stage :is(select, textarea, input:not([type="radio"], [type="checkbox"], [type="hidden"])) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--iw-tile);
  color: var(--iw-ink);
  font-weight: 400;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-stage :is(select, textarea, input):focus-visible {
  border-color: var(--iw-selected);
  background: var(--iw-paper);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-stage textarea { resize: vertical; }
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-stage input[type="file"] {
  border-style: dashed;
  background: var(--iw-page);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-stage input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-inline-end: 9px;
  padding: 4px 12px;
  border: 1px solid var(--iw-line);
  border-radius: 5px;
  background: var(--iw-paper);
  color: var(--iw-selected);
  font: 700 14px var(--iw-font);
  cursor: pointer;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is(.mgm-iw-source, .trap) {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mgm-iw-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 4px 0 8px;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-grid .mgm-iw-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is(.mgm-iw-choice, [data-mq-quantity]) {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--iw-tile);
  color: var(--iw-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mq-quantity] { padding-inline: 13px; }
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is(.mgm-iw-choice, [data-mq-quantity]):hover {
  border-color: var(--iw-selected);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is(.mgm-iw-choice, [data-mq-quantity])[aria-pressed="true"] {
  border-color: var(--iw-selected);
  background: var(--iw-selected-bg);
  color: var(--iw-selected);
  font-weight: 700;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mgm-choice-kind="process"] .mgm-iw-choice {
  justify-content: flex-start;
  text-align: start;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mgm-choice-kind="process"] .mgm-iw-choice::before {
  flex: 0 0 13px;
  height: 13px;
  border: 1px solid #a5a6a8;
  border-radius: 50%;
  background: var(--iw-paper);
  content: "";
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mgm-choice-kind="process"] .mgm-iw-choice[aria-pressed="true"]::before {
  border-color: var(--iw-selected);
  background: var(--iw-selected);
  box-shadow: inset 0 0 0 3px var(--iw-paper);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mgm-iw-choice[data-mgm-swatch]::before {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid rgb(9 22 36 / 27%);
  border-radius: 50%;
  background: var(--iw-swatch, #d7d8da);
  content: "";
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mgm-swatch="gold"] {
  --iw-swatch: linear-gradient(135deg, #a47a34, #f1d996 47%, #b18a42);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mgm-swatch="silver"] {
  --iw-swatch: linear-gradient(135deg, #a0a6a8, #f7f7f7 47%, #929da3);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mgm-swatch="copper"] {
  --iw-swatch: linear-gradient(135deg, #995b46, #e0aa92 47%, #a5684c);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mgm-swatch="brass"] {
  --iw-swatch: linear-gradient(135deg, #746045, #d4be80 47%, #8e7448);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mgm-swatch="black"] {
  --iw-swatch: linear-gradient(135deg, #1a2024, #686b70 47%, #272b2d);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [data-mgm-swatch="bronze"] {
  --iw-swatch: linear-gradient(135deg, #78533a, #bf9270 47%, #815c42);
}
/* Product photography follows the storefront's shallow, contained image frame. */
.mgm-iw-photo {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  isolation: isolate;
  border-radius: 8px;
  background: #f4f5f6;
}
.mgm-iw-photo[hidden] { display: none; }
.mgm-iw-photo > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: darken;
  transform: translate(var(--iw-photo-offset, 0%, 0%)) scale(var(--iw-photo-scale, 1));
}
/* Fit the measured product outlines; source canvases have different margins.
   Paired and wide samples meet the width limit before the height limit. */
.mgm-iw-photo > img[src*="/ball-markers-die-struck.webp"] { --iw-photo-scale: 1.061; --iw-photo-offset: 1.8%, -4%; }
.mgm-iw-photo > img[src*="/ball-markers-hard-enamel.webp"] { --iw-photo-scale: 1.145; --iw-photo-offset: 1.7%, -3.3%; }
.mgm-iw-photo > img[src*="/ball-markers-printed.webp"] { --iw-photo-scale: 0.979; --iw-photo-offset: 0.8%, -3.7%; }
.mgm-iw-photo > img[src*="/ball-markers-soft-enamel.webp"] { --iw-photo-scale: 1.159; --iw-photo-offset: 1.5%, -3.4%; }
.mgm-iw-photo > img[src*="/belt-buckles-die-cast.webp"] { --iw-photo-scale: 1.028; --iw-photo-offset: 0.4%, -3.3%; }
.mgm-iw-photo > img[src*="/belt-buckles-die-struck.webp"] { --iw-photo-scale: 1.095; --iw-photo-offset: 0.6%, -4.2%; }
.mgm-iw-photo > img[src*="/belt-buckles-soft-enamel.webp"] { --iw-photo-scale: 1.157; --iw-photo-offset: 0%, -8.2%; }
.mgm-iw-photo > img[src*="/coins-3d-cast.webp"] { --iw-photo-scale: 0.954; --iw-photo-offset: -0.4%, 0.2%; }
.mgm-iw-photo > img[src*="/coins-die-struck.webp"] { --iw-photo-scale: 1.015; --iw-photo-offset: -0.4%, 0.5%; }
.mgm-iw-photo > img[src*="/coins-hard-enamel.webp"] {
  /* This transparent source shows two serial-number examples. Frame the left coin. */
  inset: 50% auto auto 50%;
  width: auto;
  max-width: none;
  height: 170%;
  clip-path: inset(0 50% 0 0);
  transform: translate(-25%, -50%);
}
.mgm-iw-photo > img[src*="/coins-soft-enamel.webp"] { --iw-photo-scale: 0.996; --iw-photo-offset: 0%, 2.6%; }
.mgm-iw-photo > img[src*="/coins-uv-printed.webp"] { --iw-photo-scale: 0.960; --iw-photo-offset: 0%, -0.8%; }
.mgm-iw-photo > img[src*="/cufflinks-3d-cast.webp"] { --iw-photo-scale: 1.053; --iw-photo-offset: 0%, -1.6%; }
.mgm-iw-photo > img[src*="/cufflinks-cutout-metal.webp"] { --iw-photo-scale: 1.100; --iw-photo-offset: 0.2%, -1.1%; }
.mgm-iw-photo > img[src*="/cufflinks-engraved.webp"] { --iw-photo-scale: 1.038; --iw-photo-offset: -0.6%, -0.8%; }
.mgm-iw-photo > img[src*="/cufflinks-hard-enamel.webp"] { --iw-photo-scale: 1.341; --iw-photo-offset: -0.4%, -3.9%; }
.mgm-iw-photo > img[src*="/cufflinks-photo-print.webp"] { --iw-photo-scale: 1.110; --iw-photo-offset: -0.2%, -1.7%; }
.mgm-iw-photo > img[src*="/cufflinks-soft-enamel.webp"] { --iw-photo-scale: 1.127; --iw-photo-offset: 1.4%, -2.1%; }
.mgm-iw-photo > img[src*="/lanyards-cord.webp"] { --iw-photo-scale: 0.892; --iw-photo-offset: -0.3%, 0.7%; }
.mgm-iw-photo > img[src*="/lanyards-dye-sublimation.webp"] { --iw-photo-scale: 1.286; --iw-photo-offset: 0.2%, 1.3%; }
.mgm-iw-photo > img[src*="/lanyards-neoprene.webp"] { --iw-photo-scale: 0.900; --iw-photo-offset: -1.7%, -1.1%; }
.mgm-iw-photo > img[src*="/lanyards-printed-nylon.webp"] { --iw-photo-scale: 0.888; --iw-photo-offset: 1%, -0.2%; }
.mgm-iw-photo > img[src*="/lanyards-screen-printed-polyester.webp"] { --iw-photo-scale: 1.286; --iw-photo-offset: 0.2%, -0.3%; }
.mgm-iw-photo > img[src*="/lanyards-woven.webp"] { --iw-photo-scale: 1.286; --iw-photo-offset: 0.2%, 0.5%; }
.mgm-iw-photo > img[src*="/medals-die-cast.webp"] { --iw-photo-scale: 1.080; --iw-photo-offset: -0.9%, 3%; }
.mgm-iw-photo > img[src*="/medals-soft-enamel.webp"] { --iw-photo-scale: 1.090; --iw-photo-offset: -2.7%, -1.6%; }
.mgm-iw-photo > img[src*="/medals-uv-printed.webp"] { --iw-photo-scale: 1.061; --iw-photo-offset: 0.4%, 2.2%; }
.mgm-iw-photo > img[src*="/patches-chenille.webp"] { --iw-photo-scale: 1.420; --iw-photo-offset: 1.4%, -0.6%; }
.mgm-iw-photo > img[src*="/patches-coverage-"] { --iw-photo-scale: 0.969; --iw-photo-offset: 0%, 0%; }
.mgm-iw-photo > img[src*="/patches-denim.webp"] { --iw-photo-scale: 1.068; --iw-photo-offset: -0.2%, 0.3%; }
.mgm-iw-photo > img[src*="/patches-embroidered.webp"] { --iw-photo-scale: 1.276; --iw-photo-offset: -0.4%, -0.5%; }
.mgm-iw-photo > img[src*="/patches-heat-transfer.webp"] { --iw-photo-scale: 1.145; --iw-photo-offset: 2.1%, 1.4%; }
.mgm-iw-photo > img[src*="/patches-leather.webp"] { --iw-photo-scale: 1.402; --iw-photo-offset: 0.7%, -2.9%; }
.mgm-iw-photo > img[src*="/patches-metal.webp"] { --iw-photo-scale: 1.114; --iw-photo-offset: 1.7%, -0.2%; }
.mgm-iw-photo > img[src*="/patches-one-color-flex.webp"] { --iw-photo-scale: 1.073; --iw-photo-offset: 0%, -1.7%; }
.mgm-iw-photo > img[src*="/patches-printed.webp"] { --iw-photo-scale: 1.388; --iw-photo-offset: -0.7%, -0.6%; }
.mgm-iw-photo > img[src*="/patches-pvc.webp"] { --iw-photo-scale: 1.222; --iw-photo-offset: 0.2%, -2.8%; }
.mgm-iw-photo > img[src*="/patches-sequin.webp"] { --iw-photo-scale: 1.133; --iw-photo-offset: -0.2%, 0%; }
.mgm-iw-photo > img[src*="/patches-silicone.webp"] { --iw-photo-scale: 1.257; --iw-photo-offset: -0.8%, 2.1%; }
.mgm-iw-photo > img[src*="/patches-tatami-flock.webp"] { --iw-photo-scale: 0.996; --iw-photo-offset: -0.4%, -1.8%; }
.mgm-iw-photo > img[src*="/patches-tatami-silicone.webp"] { --iw-photo-scale: 1.001; --iw-photo-offset: 0.2%, -2.6%; }
.mgm-iw-photo > img[src*="/patches-woven.webp"] { --iw-photo-scale: 1.229; --iw-photo-offset: -0.8%, -0.5%; }
.mgm-iw-photo > img[src*="/pins-3d-cast.webp"] { --iw-photo-scale: 1.738; --iw-photo-offset: -1.2%, -2.2%; }
.mgm-iw-photo > img[src*="/pins-acrylic.webp"] { --iw-photo-scale: 1.177; --iw-photo-offset: 0.7%, -2.1%; }
.mgm-iw-photo > img[src*="/pins-cutout-metal.webp"] { --iw-photo-scale: 1.466; --iw-photo-offset: -6.1%, -1.9%; }
.mgm-iw-photo > img[src*="/pins-die-struck.webp"] { --iw-photo-scale: 1.482; --iw-photo-offset: 0.2%, -3.1%; }
.mgm-iw-photo > img[src*="/pins-hard-enamel.webp"] { --iw-photo-scale: 1.738; --iw-photo-offset: -0.6%, 2.9%; }
.mgm-iw-photo > img[src*="/pins-printed.webp"] { --iw-photo-scale: 1.144; --iw-photo-offset: -1.2%, 2.7%; }
.mgm-iw-photo > img[src*="/pins-soft-enamel.webp"] { --iw-photo-scale: 1.600; --iw-photo-offset: -4.3%, -0.7%; }
.mgm-iw-photo > img[src*="/pins-uv-printed.webp"] { --iw-photo-scale: 1.438; --iw-photo-offset: 1%, -0.9%; }
.mgm-iw-photo > img[src*="/medals-"][src*=".svg"] { --iw-photo-scale: 1.1; }
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mgm-iw-photo-choices .mgm-iw-help-choice {
  grid-column: 1 / -1;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mgm-iw-photo-choices .mgm-iw-choice:has(> .mgm-iw-photo:not([hidden])) {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  grid-template-rows: auto auto;
  place-content: start center;
  align-items: center;
  gap: 8px 6px;
  padding: 6px 6px 9px;
  border-color: var(--iw-line);
  border-radius: 8px;
  background: var(--iw-paper);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mgm-iw-photo-choices .mgm-iw-choice:has(> .mgm-iw-photo:not([hidden]))::before {
  grid-area: 2 / 1;
  width: 13px;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mgm-iw-photo-choices .mgm-iw-choice:has(> .mgm-iw-photo:not([hidden])):is(:hover, [aria-pressed="true"]) {
  border-color: var(--iw-selected);
  background: var(--iw-selected-bg);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mgm-iw-photo-choices .mgm-iw-photo {
  grid-area: 1 / 1 / 2 / -1;
  justify-self: center;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mgm-iw-photo-choices .mgm-iw-photo-label {
  grid-area: 2 / 2;
  min-width: 0;
  overflow-wrap: anywhere;
}

dialog#product-quote.mq-dialog[data-mgm-quote-workspace] button:disabled { opacity: .55; cursor: default; }

dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-feedback {
  padding: 0;
  color: var(--iw-muted);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-feedback [role="alert"] { color: var(--iw-danger); }
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] [aria-invalid="true"]:not([type="checkbox"], [type="radio"]) {
  border-color: var(--iw-danger);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-stage a { color: var(--iw-selected); }
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] footer.mq-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0 0;
  margin: 16px 0 0;
  border-block-start: 1px solid var(--iw-line);
  background: transparent;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] footer.mq-actions [data-mq-progress] {
  margin-inline-end: auto;
  color: var(--iw-muted);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is([data-mq-add], [data-mq-back], [data-mq-next], [data-mq-submit]) {
  --cta-bg: var(--iw-accent);
  --cta-fg: var(--iw-paper);
  --cta-disc: var(--iw-paper);
  --cta-arrow: var(--iw-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 8px 19px;
  border: 1px solid var(--iw-accent);
  border-radius: 5px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is([data-mq-next], [data-mq-submit]):hover:not(:disabled) {
  --cta-bg: var(--iw-accent-hover);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is([data-mq-add], [data-mq-back]) {
  --cta-bg: var(--iw-paper);
  --cta-fg: var(--iw-accent);
  --cta-disc: var(--iw-accent-bg);
  --cta-arrow: var(--iw-accent);
  border-color: var(--iw-accent);
}
dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is([data-mq-add], [data-mq-back]):hover:not(:disabled) {
  --cta-bg: var(--iw-accent-bg);
}

@media (max-width: 1000px) {
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-layout { grid-template-columns: minmax(0, 1fr); }
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-layout > :is(nav, .mq-nav) {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 3px;
  }
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is(.mq-side, .mq-summary) { grid-row: auto; }
}
@media (max-width: 640px) {
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace]:modal {
    inset: auto 0 0;
    width: 100%;
    height: calc(100vh - 36px);
    height: calc(100dvh - 36px);
    margin: 0;
    border-radius: 10px 10px 0 0 !important;
  }
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] { --iw-gutter: max(8px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-head h2 { font-size: clamp(17px, 4.5vw, 20px); }
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] > form { padding-block-start: 6px; }
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is(.mq-layout, .mq-stage) { gap: 10px; }
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is([data-mq-panel], .mq-side, .mq-summary) { padding: 16px 12px; border-radius: 6px; }
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mq-grid { grid-template-columns: minmax(0, 1fr); }
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] .mgm-iw-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] :is(input, select, textarea) { font-size: 16px; }
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] footer.mq-actions > button { width: auto; }
  dialog#product-quote.mq-dialog[data-mgm-quote-workspace] footer.mq-actions [data-mq-submit] { flex: 1 1 auto; }
}

/* Shared shell for approved specialty quotes, while their own controllers keep the fields. */
dialog[data-mgm-iw-specialty]:not(#mgmkq-dialog):not([open]) { display: none; }
dialog[data-mgm-iw-specialty]:not(#mgmkq-dialog):modal {
  position: fixed;
  inset: auto 0 0;
  width: 98vw;
  height: 98vh;
  height: 98dvh;
  max-width: none;
  max-height: none;
  margin: 0 auto;
  box-sizing: border-box;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 8px 8px 0 0 !important;
  background: var(--iw-page);
  color: var(--iw-ink);
  font-family: var(--iw-font);
}
dialog[data-mgm-iw-specialty]:not(#mgmkq-dialog)::backdrop { background: rgb(0 0 0 / 60%); }
html:has(dialog[data-mgm-iw-specialty]:modal) { overflow: hidden; }

dialog.mgm-iw-embed-dialog[data-mgm-iw-specialty]:not(#mgmkq-dialog):modal {
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(calc(100% - 48px), 1320px);
  height: min(calc(100vh - 48px), 960px);
  height: min(calc(100dvh - 48px), 960px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 12px !important;
}
.mgm-iw-embed-dialog .mgm-iw-embed-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content 44px;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
  padding: 12px var(--iw-gutter);
}
[data-mgm-iw-specialty] :is(.mgm-iw-embed-header, .pq-dialog-head, .mq-head, .lmq-head, .pqc-header) {
  border-block-end: 1px solid var(--iw-line);
  background: var(--iw-paper);
  color: var(--iw-ink);
}
[data-mgm-iw-specialty] :is(.mgm-iw-embed-header, .pq-dialog-head, .mq-head, .lmq-head, .pqc-header) h2 {
  margin: 0;
  color: var(--iw-ink);
  font-family: inherit;
  font-size: clamp(19px, 1.75vw, 25px);
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
[data-mgm-iw-specialty] :is(.pq-dialog-head, .mq-head, .lmq-head, .pqc-header) .eyebrow { color: var(--iw-accent); }
.mgm-iw-embed-dialog .mgm-iw-embed-close { grid-column: 3; }
.mgm-iw-embed-dialog .mgm-iw-embed-fallback {
  grid-column: 2;
  color: var(--iw-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
[data-mgm-iw-specialty] :is(.mgm-iw-embed-close, .pq-close, [data-mq-close], .lmq-close, #pqc-close) {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #e3e6ea;
  border-radius: 50%;
  background: var(--iw-paper);
  color: var(--iw-ink);
  box-shadow: var(--iw-close-shadow);
  font: 400 22px/1 var(--iw-font);
  cursor: pointer;
}
[data-mgm-iw-specialty] :is(.mgm-iw-embed-close, .pq-close, [data-mq-close], .lmq-close, #pqc-close):hover {
  background: var(--iw-page);
}
[data-mgm-iw-specialty] :is(.mgm-iw-embed-close, .mgm-iw-embed-fallback, .pq-close, [data-mq-close], .lmq-close, #pqc-close):focus-visible {
  outline: 2px solid var(--iw-selected);
  outline-offset: 2px;
}
.mgm-iw-embed-dialog :is(.mgm-iw-embed-body, .mgm-iw-embed-frame, .mgm-iw-inline-content) {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: var(--iw-page);
}
.mgm-iw-embed-body > [hidden],
.mgm-iw-embed-notice button[hidden] { display: none; }
.mgm-iw-embed-notice {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  min-height: 100%;
  padding: 24px;
  color: var(--iw-ink);
  text-align: center;
}
.mgm-iw-embed-notice p { margin: 0; }
.mgm-iw-embed-notice button {
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid var(--iw-line);
  border-radius: 6px;
  background: var(--iw-paper);
  color: var(--iw-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.mgm-iw-embed-notice button:focus-visible {
  outline: 2px solid var(--iw-selected);
  outline-offset: 2px;
}
.mgm-iw-embed-dialog .mgm-iw-inline-content {
  overflow: auto;
  overscroll-behavior: contain;
}
.mgm-iw-inline-content > :is(.neon-quote, .pq-inline, [data-mgm-iw-specialty]) {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}
/* Gallery inquiries reuse the existing form inside the shared scroll area. */
.mgm-iw-inline-content > form:is([data-mgm-iw-specialty="gallery"], [data-mgm-iw-specialty="product"], [data-mgm-iw-specialty="estimator"]) {
  box-sizing: border-box;
  width: min(calc(100% - 28px), 940px);
  margin: 14px auto 24px;
  padding: clamp(16px, 3vw, 32px);
  border-radius: 8px;
  background: var(--iw-paper);
}
[data-mgx-dialog] [data-mgm-iw-gallery-sample][hidden] {
  display: none;
}
[data-mgx-dialog] [data-mgm-iw-gallery-sample] {
  margin-top: 8px;
}
.mgm-iw-inline-content .neon-quote .neon-layout { min-width: 0; }
/* A moved patch wizard is content of the outer native dialog, not a second overlay. */
.mgm-iw-inline-content > dialog#patch-quote-dialog[data-mgm-iw-specialty][open] {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  max-width: none;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: visible;
  border-radius: 0 !important;
}
.mgm-iw-inline-content #patch-quote-dialog .pq-dialog-head { display: none; }
.mgm-iw-inline-content #patch-quote-dialog :is(.pq-layout, .pq-stage) {
  min-height: 0;
  overflow: visible;
}


/* Keep the specialty wizard controls and match their selected and primary states. */
[data-mgm-iw-specialty] :is(.pq-step-nav, .mq-layout > nav, .lmq-steps, #pqc-steps) button[aria-current],
html[data-mgm-quote-embed] #product-quote .mq-layout > nav button[aria-current] {
  border-color: var(--iw-selected);
  background: var(--iw-selected-bg);
  color: var(--iw-selected);
}
[data-mgm-iw-specialty] :is(.pq-panel, .pq-summary, .mq-stage, .mq-side, .lmq-stage, #pqc-panel, .pqc-summary),
html[data-mgm-quote-embed] #product-quote :is(.mq-stage, .mq-side) {
  color: var(--iw-ink);
}
[data-mgm-iw-specialty] :is(input, select, textarea, [data-pq-go], [data-mq-step]):focus-visible,
html[data-mgm-quote-embed] #product-quote :is(input, select, textarea, [data-mq-step]):focus-visible {
  outline: 2px solid var(--iw-selected);
  outline-offset: 2px;
}
[data-mgm-iw-specialty] :is([data-mq-next], [data-mq-submit], [data-pq-next], [data-pq-submit], #pqc-next),
html[data-mgm-quote-embed] #product-quote :is([data-mq-next], [data-mq-submit]) {
  --cta-bg: var(--iw-accent);
  --cta-fg: var(--iw-paper);
  --cta-disc: var(--iw-paper);
  --cta-arrow: var(--iw-accent);
  border-color: var(--iw-accent);
  border-radius: 5px;
  background: var(--cta-bg);
  color: var(--cta-fg);
}

.mgm-iw-selected-example {
  width: min(100%, 240px);
  margin-block: 7px 16px;
}
.mgm-iw-gallery-example {
  display: grid;
  width: min(100%, 200px);
  gap: 5px;
  margin-block-start: 5px;
  color: var(--iw-muted);
  font-size: 13px;
  font-weight: 500;
}
.mgm-iw-gallery-example[hidden] { display: none; }
:is([data-mgm-iw-specialty="patches"], [data-mgm-iw-patch-art]) .pq-choice:has(> .mgm-iw-photo),
[data-mgm-iw-specialty="lanyard"] .mq-lanyard-choices label:has(> .mgm-iw-photo) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 5px 8px;
}
:is([data-mgm-iw-specialty="patches"], [data-mgm-iw-patch-art]) .pq-choice > .mgm-iw-photo,
[data-mgm-iw-specialty="lanyard"] .mq-lanyard-choices .mgm-iw-photo {
  grid-column: 1 / -1;
}
[data-mgm-iw-specialty="lanyard"] .mq-lanyard-choices label:has(input[value="Help me choose"]) {
  grid-column: 1 / -1;
}
[data-mgm-iw-specialty="patches"] .pq-choice:has(:checked) {
  border-color: var(--iw-selected);
  background: var(--iw-selected-bg);
  color: var(--iw-selected);
  box-shadow: none;
}
[data-mgm-iw-specialty="patches"] :is(input[type="radio"], progress) {
  accent-color: var(--iw-selected);
}
[data-mgm-iw-specialty="patches"] [data-pq-back] {
  --cta-bg: var(--iw-paper);
  --cta-fg: var(--iw-accent);
}

/* The storefront CTA adds an arrow and pill geometry. Quote actions are plain buttons. */
:is(
  #product-quote[data-mgm-quote-workspace] :is([data-mq-add], [data-mq-back], [data-mq-next], [data-mq-submit]),
  [data-mgm-iw-specialty] :is([data-mq-next], [data-mq-submit], [data-pq-next], [data-pq-submit], #pqc-next),
  html[data-mgm-quote-embed] #product-quote :is([data-mq-next], [data-mq-submit]),
  [data-mgm-iw-specialty="patches"] [data-pq-back]
).mgm-cta {
  justify-content: center !important;
  min-height: 44px !important;
  padding: 9px 19px !important;
  border: 1px solid var(--iw-accent) !important;
  border-radius: 5px !important;
  font: 700 16px/1.2 var(--iw-font) !important;
  letter-spacing: normal !important;
  text-align: center !important;

  & .mgm-cta-label { line-height: inherit !important; }
  & .mgm-cta-copy { transform: none !important; }
  & :is(.mgm-cta-icon, .mgm-cta-copy[aria-hidden="true"]) { display: none !important; }
}

/* Same-origin embed URLs omit storefront chrome. Other views keep their original layout. */
html[data-mgm-quote-embed] body { margin: 0; background: var(--iw-page); }
html[data-mgm-quote-embed] :is(#wpadminbar, body > .skip-link, body > #collection-cta, body > .site-footer, #main > .pin-site-header) {
  display: none !important;
}
html[data-mgm-quote-embed] body > #main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
html[data-mgm-quote-embed] #main > .mgmrl-quote { padding-block-start: 0; }
html[data-mgm-quote-embed] #main .mgmrl-quote > .mq-landing {
  padding-block: 12px;
}
html[data-mgm-quote-embed] #main .mgmrl-quote > .mq-landing > :is(.eyebrow, p, .mq-actions) {
  display: none;
}
html[data-mgm-quote-embed] #main .mgmrl-quote > .mq-landing h1 {
  margin: 0;
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.14;
}
html[data-mgm-quote-embed] #main section#product-quote[data-mgmrl-inline] {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--iw-ink);
}
html[data-mgm-quote-embed] dialog#product-quote.mq-dialog[data-mgm-quote-workspace]:modal,
html[data-mgm-quote-embed] dialog#product-quote[open],
html[data-mgm-quote-embed] dialog#patch-quote-dialog[data-patch-autostart]:modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0 !important;
}
html[data-mgm-quote-embed] dialog#product-quote[open] [data-mq-close],
html[data-mgm-quote-embed] dialog#patch-quote-dialog[data-patch-autostart]:modal .pq-close { display: none; }
html[data-mgm-quote-embed] dialog#product-quote::backdrop,
html[data-mgm-quote-embed] dialog#patch-quote-dialog[data-patch-autostart]::backdrop { background: transparent; }

@media (max-width: 1000px) {
  dialog[data-mgm-iw-specialty]:not(#mgmkq-dialog):modal {
    width: 100%;
    height: calc(100vh - 40px);
    height: calc(100dvh - 40px);
  }
}
@media (max-width: 640px) {
  dialog.mgm-iw-embed-dialog[data-mgm-iw-specialty]:not(#mgmkq-dialog):modal {
    inset: auto 0 0;
    width: 100%;
    height: calc(100vh - 36px);
    height: calc(100dvh - 36px);
    margin: 0;
    border-radius: 10px 10px 0 0 !important;
  }
  .mgm-iw-embed-dialog .mgm-iw-embed-header {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 4px 9px;
    padding: 8px 12px;
  }
  .mgm-iw-embed-dialog .mgm-iw-embed-header h2 { font-size: 20px; }
  .mgm-iw-embed-dialog .mgm-iw-embed-close { grid-area: 1 / 2 / 3 / 3; }
  .mgm-iw-embed-dialog .mgm-iw-embed-fallback { grid-column: 1; font-size: 13px; }
}

dialog#pqc-dialog[data-mgm-iw-specialty="legacy"]:modal { overflow: auto; }
dialog#pqc-dialog[data-mgm-iw-specialty="legacy"] .pqc-header p { color: var(--iw-accent); }

/* The inline fallback remains available until the product modal is ready. */
#quote[data-mgm-iw-popup-fallback][hidden] { display: none !important; }
