.custom-map-page{max-width:1220px;margin:0 auto;padding:34px 32px 70px;color:var(--product-name-color)}
.custom-map-page *{box-sizing:border-box}.custom-map-page button{cursor:pointer}.custom-map-page button:disabled{cursor:wait;opacity:.5}.map-search-credit a{color:inherit}
.map-back{font-size:13px;color:inherit;text-decoration:none}.map-heading{margin:28px 0}.map-eyebrow{letter-spacing:.16em;font-size:11px;font-weight:500}.map-heading h1{font-size:clamp(24px,3vw,38px);line-height:1.15;margin:12px 0}.map-heading>p:last-child{font-size:15px;line-height:1.6;max-width:600px}
.map-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,1fr);gap:44px;align-items:start}.map-stage{background:var(--stage-bg);border-radius:18px;padding:22px 26px 18px;min-width:0;text-align:center}.map-stage-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:22px}.map-stage-top button{font-size:12px;border:0;text-decoration:underline;background:none;color:inherit;padding:8px}
.map-print-frame{width:min(100%,290px);aspect-ratio:293/610;margin:auto;position:relative;overflow:hidden;border:1px solid #ffffffa0;box-shadow:0 14px 35px #0002;background-color:#fff;background-image:linear-gradient(45deg,#e3e3e3 25%,transparent 25%),linear-gradient(-45deg,#e3e3e3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e3e3e3 75%),linear-gradient(-45deg,transparent 75%,#e3e3e3 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
#custom-map-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}#custom-map-canvas:active{cursor:grabbing}#custom-map-canvas:focus-visible{outline:3px solid var(--btn-bg);outline-offset:-4px}.map-loading{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);padding:10px 14px;border-radius:8px;background:#fff;color:#243332;font-size:12px;white-space:nowrap;pointer-events:none}.map-loading[hidden]{display:none}
.map-navigation{display:flex;justify-content:center;align-items:center;gap:18px;margin:20px auto 8px}.map-navigation button{width:36px;height:36px;border:1px solid #0002;border-radius:50%;background:#fff;color:#243332;font-size:24px}.map-navigation span{font-size:12px;min-width:135px}.map-hint{font-size:12px;margin:12px 0}.map-print-note{font-size:11px;line-height:1.6;max-width:350px;margin:14px auto}.map-source{font-size:10px;line-height:1.5;opacity:.8}.map-source a{color:inherit}
.map-controls{padding:8px 0}.map-control-group{margin-bottom:25px}.map-control-group>label,.map-field-label{display:block;font-size:16px;font-weight:500;margin-bottom:12px}.custom-map-page input[type=search],.custom-map-page select{width:100%;border:1px solid #0003;background:var(--product-card-bg);color:var(--product-name-color);border-radius:8px;padding:13px;font-size:14px;min-height:46px}.map-price{font-size:22px;margin:10px 0 0}.map-search-form{display:flex;gap:8px}.map-search-form input{min-width:0}.map-search-form button{border:0;border-radius:8px;background:var(--btn-bg);color:var(--btn-text);font-size:13px;padding:0 14px}.map-caption{font-size:12px;line-height:1.6;opacity:.8;margin:10px 0}.map-search-results{display:grid;gap:4px;margin-top:8px}.map-search-results:empty{display:none}.map-search-results button{text-align:left;padding:11px 12px;border:1px solid #0002;background:var(--product-card-bg);color:inherit;border-radius:6px;font-size:13px}.map-location{font-size:12px;line-height:1.6;margin:12px 0}.map-styles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.map-styles button{background:var(--product-card-bg);color:inherit;border:1px solid #0002;border-radius:9px;padding:8px;font-size:12px}.map-styles button[aria-pressed=true]{outline:2px solid var(--btn-bg);outline-offset:2px}.map-styles span{display:flex;align-items:center;justify-content:center;height:52px;font-size:38px;border-radius:5px;margin-bottom:8px}.map-colors{display:flex;gap:18px;margin:20px 0 14px}.map-colors label{display:flex;align-items:center;gap:9px;font-size:13px}.map-colors input{width:40px;height:33px;border:0;padding:0;background:none;cursor:pointer}.map-control-group>.map-checkbox{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:400}.map-checkbox input{width:16px;height:16px;accent-color:var(--btn-bg)}
.map-primary,.map-secondary{display:block;width:100%;padding:15px;border-radius:9px;font-size:15px;margin:12px 0}.map-primary{border:0;background:var(--btn-cart-bg);color:var(--btn-cart-text)}.map-secondary{border:1px solid var(--btn-bg);background:transparent;color:inherit}.map-message{font-size:13px;line-height:1.6;min-height:20px}.map-message[data-error=true]{color:#a0291f}.map-import-status{background:#fff2cc;color:#654613;padding:14px 18px;border-radius:8px;font-size:13px;line-height:1.6;margin:0 0 22px}.map-mockup-panel{margin-top:35px}.map-mockup-panel h2{font-size:24px}#map-mockup-images{display:flex;justify-content:center;overflow:hidden}#map-mockup-image{display:block;width:100%;max-width:300px;border-radius:12px;object-fit:contain}#map-mockup-image[hidden]{display:none}#map-mockup-thumbnails{margin:14px 0 10px}.custom-map-page button:focus-visible,.custom-map-page input:focus-visible,.custom-map-page select:focus-visible{outline:3px solid var(--btn-bg);outline-offset:3px}
@media(max-width:760px){.custom-map-page{padding:22px 18px 45px}.map-heading{margin:20px 0}.map-workspace{grid-template-columns:1fr;gap:22px}.map-stage{padding:14px 18px}.map-print-frame{width:220px}.map-stage-top{margin-bottom:12px}.map-print-note{margin:10px auto}.map-controls{padding:0 4px}.map-colors{justify-content:space-between}.map-control-group{margin-bottom:22px}}

/* Keep the case photo and printable map aligned on desktop. */
@media(min-width:761px){
  .custom-map-page:has(.map-mockup-panel:not([hidden])){max-width:1500px}
  .map-workspace:has(.map-mockup-panel:not([hidden])){--map-preview-height:min(604px,calc((100vw - 520px)*.8));grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(310px,1.15fr);gap:24px}
  .map-workspace:has(.map-mockup-panel:not([hidden])) .map-print-frame{height:var(--map-preview-height);width:auto;max-width:100%}
  .map-mockup-panel{min-width:0;margin:0;padding:22px 26px 18px;text-align:center}
  .map-mockup-panel h2{display:flex;align-items:center;justify-content:center;min-height:32px;margin:0 0 22px;font-size:16px}
  #map-mockup-images{height:var(--map-preview-height)}
  #map-mockup-image{max-width:100%;height:100%}
}
@media(min-width:761px) and (max-width:1099px){
  .map-workspace:has(.map-mockup-panel:not([hidden])){--map-preview-height:min(604px,calc((100vw - 200px)*.8));grid-template-columns:repeat(2,minmax(0,1fr))}
  .map-workspace:has(.map-mockup-panel:not([hidden])) .map-controls{grid-column:1/-1}
}
@media(max-width:760px){.map-mockup-panel{order:3}}

.custom-map-accessory .map-print-frame,
.custom-map-accessory .map-workspace:has(.map-mockup-panel:not([hidden])) .map-print-frame {
  box-sizing: content-box;
  width: min(calc(100% - 2px), calc(520px * var(--map-print-ratio, 1)));
  height: auto;
}

.custom-map-shirt .map-print-frame{width:min(100%,380px);aspect-ratio:7/9}
@media(min-width:1100px){
  .custom-map-shirt .map-workspace:has(.map-mockup-panel:not([hidden])){--map-preview-height:min(490px,calc((100vw - 530px)*.5))}
}
@media(min-width:761px) and (max-width:1099px){
  .custom-map-shirt .map-workspace:has(.map-mockup-panel:not([hidden])){--map-preview-height:min(490px,calc((100vw - 220px)*.6))}
}
@media(max-width:760px){.custom-map-shirt .map-print-frame{width:min(100%,320px)}}

/* Match the storefront's quiet product photography and purchase controls. */
.custom-map-page {
  max-width: 1500px;
  padding: calc(var(--site-nav-height, 76px) + 36px) 32px 72px;
  color: #242522;
}
.map-heading {
  margin: 32px 0 36px;
}
.map-eyebrow {
  color: #6d706a;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.map-heading h1 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
}
.map-heading > p:last-child {
  color: #6d706a;
  font-size: 14px;
}
.map-stage {
  background: #faf9f6;
  border-radius: 0;
  padding: 22px 18px;
}
.map-print-frame {
  border: 1px solid #dedfd9;
  box-shadow: none;
}
.map-controls {
  padding: 0;
}
.map-price {
  margin: 0 0 24px;
  font-size: 21px;
}
.map-control-group {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #dedfd9;
}
.map-control-group > label,
.map-field-label {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 12px;
}
.custom-map-page input[type=search],
.custom-map-page select {
  min-height: 46px;
  padding: 12px;
  border-color: #dedfd9;
  border-radius: 2px;
  background: #fff;
  color: #242522;
  font: inherit;
  font-size: 13px;
}
.map-search-form button,
.map-search-results button,
.map-styles button {
  min-height: 46px;
  border: 1px solid #dedfd9;
  border-radius: 2px;
  background: #fff;
  color: #242522;
  font: inherit;
  font-size: 13px;
}
.map-search-form button {
  border-color: #242522;
}
.map-navigation button {
  width: 40px;
  height: 40px;
  border-color: #dedfd9;
  border-radius: 2px;
  color: #242522;
}
.map-styles button[aria-pressed=true] {
  outline: 1px solid #242522;
  outline-offset: 2px;
}
.map-styles span {
  border-radius: 0;
}
.map-caption,
.map-location,
.map-print-note,
.map-source,
.map-hint {
  color: #6d706a;
  opacity: 1;
}
.map-primary,
.map-secondary {
  min-height: 46px;
  padding: 14px 18px;
  border: 1px solid #242522;
  border-radius: 2px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
}
.map-primary {
  background: #242522;
  color: #fff;
}
.map-primary:hover:not(:disabled) {
  background: #41433d;
}
.map-secondary {
  background: #fff;
  color: #242522;
}
.map-secondary:hover:not(:disabled) {
  background: #faf9f6;
}
.map-advanced {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dedfd9;
}
.map-advanced summary {
  color: #6d706a;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
}
.map-colors {
  display: grid;
  grid-template-columns: minmax(0, max-content) 36px minmax(0, max-content);
  align-items: end;
  gap: 8px;
}
.map-colors label {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.map-swap-colors {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dedfd9;
  border-radius: 2px;
  background: #fff;
  color: #242522;
  font-size: 24px;
  line-height: 1;
}
.map-swap-colors:hover:not(:disabled) {
  background: #faf9f6;
}
.map-contour-spacing,
.map-river-detail-note {
  margin: 10px 0 20px;
}
.map-scale-presets {
  max-width: 290px;
  margin: 14px auto 0;
}
.map-scale-presets button {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 12px;
}
.map-checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.map-mockup-panel {
  padding: 22px 0;
  background: #faf9f6;
}
.map-mockup-panel h2 {
  font-size: 13px;
  font-weight: 400;
  color: #6d706a;
}
#map-mockup-image,
#map-product-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}
#map-mockup-image[hidden],
#map-product-image[hidden] {
  display: none;
}
.map-mockup-panel > .map-caption {
  padding: 0 18px;
}
.custom-map-page .purchase-reassurance {
  color: #6d706a;
  font-size: 12px;
  line-height: 1.65;
}
.custom-map-page .purchase-reassurance p {
  margin: 0 0 6px;
}
.custom-map-page .purchase-reassurance a {
  color: #242522;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.custom-map-page summary:focus-visible {
  outline: 2px solid #242522;
  outline-offset: 3px;
}
@media (min-width: 1100px) {
  .map-workspace:has(.map-mockup-panel:not([hidden])) {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr) minmax(310px, 1fr);
    gap: 28px;
  }
}
@media (max-width: 760px) {
  .custom-map-page {
    padding: calc(var(--site-nav-height, 64px) + 24px) 20px 48px;
  }
  .map-heading {
    margin: 20px 0;
  }
  .map-workspace {
    gap: 18px;
  }
  .map-mockup-panel {
    order: 0;
    margin: 0;
    padding: 16px 0;
  }
  #map-mockup-images {
    height: min(80vw, 340px);
  }
  .map-mockup-panel h2 {
    margin: 0 0 12px;
  }
}
