/*
 * Woo Product Configurator — front-end styles.
 * Everything is namespaced under .wpc-root and themed via CSS custom properties, so it stays
 * isolated from Bricks/the active theme and can be restyled without editing this file.
 */

.wpc-root {
  --wpc-primary: #f58a4b;
  --wpc-primary-hover: #e97738;
  --wpc-accent: #f58a4b;
  --wpc-bg: #fffdf9;
  --wpc-surface: #ffffff;
  --wpc-text: #211638;
  --wpc-text-muted: #746c84;
  --wpc-border: #e9e3ee;
  --wpc-success: #2f9e6f;
  --wpc-error: #b91c1c;
  --wpc-on-primary: #ffffff;
  --wpc-on-accent: #ffffff;
  --wpc-on-gradient: #ffffff;
  --wpc-gradient-mid: #f07a3d;
  --wpc-accent-strong: #e97738;
  --wpc-primary-surface: #fffaf4;
  --wpc-accent-surface: #fff3ea;
  --wpc-option-primary-surface: #fff8f2;
  --wpc-option-accent-surface: #fff5ef;
  --wpc-image-surface-start: #fdf8f4;
  --wpc-image-surface-end: #f6ede5;
  --wpc-primary-rgb: 245, 138, 75;
  --wpc-accent-rgb: 245, 138, 75;
  --wpc-success-rgb: 47, 158, 111;
  --wpc-error-rgb: 185, 28, 28;
  --wpc-bg-rgb: 255, 253, 249;
  --wpc-surface-rgb: 255, 255, 255;
  --wpc-text-rgb: 33, 22, 56;
  --wpc-border-rgb: 233, 227, 238;
  --wpc-primary-surface-rgb: 255, 250, 244;
  --wpc-accent-surface-rgb: 255, 243, 234;
  --wpc-radius: 24px;
  --wpc-gap: clamp(28px, 4vw, 56px);
  --wpc-stage: #fbf7f2;
  --wpc-preview-end: #fbf6f2;
  --wpc-shadow: 0 18px 50px rgba(var(--wpc-text-rgb), .09);

  color: var(--wpc-text);
  /* Match the storefront's font (the theme uses Inter). Falls back to the system stack if Inter
     isn't loaded, so the configurator still looks native anywhere. */
  font-family: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  line-height: 1.5;
}
.wpc-root *,
.wpc-root *::before,
.wpc-root *::after { box-sizing: border-box; }

.wpc-root .wpc-promotion { margin-top:16px; padding:20px; border:1px solid var(--wpc-primary); border-radius:12px; background:var(--wpc-accent-surface); color:var(--wpc-text); }
.wpc-root .wpc-promotion__title { display:block; font-size:clamp(20px,2vw,26px); line-height:1.25; font-weight:750; text-wrap:balance; }
.wpc-root .wpc-promotion__terms { margin:10px 0 0; font-size:13px; line-height:1.6; }

/* Boot skeleton — a shimmering placeholder of the real layout, shown until the JS app mounts and
   clears .wpc-root. The visible label is kept for screen readers only. */
.wpc-loading { padding: 4px 0; }
.wpc-loading__label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wpc-skeleton {
  display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(0, .8fr);
  gap: var(--wpc-gap, 40px); align-items: start; max-width: 1360px; margin-inline: auto;
}
.wpc-skeleton__preview { aspect-ratio: 4 / 5; border-radius: 22px; }
.wpc-skeleton__panel { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.wpc-sk { border-radius: 10px; }
.wpc-sk--title { height: 30px; width: 72%; }
.wpc-sk--price { height: 36px; width: 42%; margin-bottom: 6px; }
.wpc-sk--line { height: 16px; }
.wpc-sk--short { width: 56%; }
.wpc-sk--block { height: 62px; border-radius: 14px; }
.wpc-sk--cta { height: 56px; border-radius: 15px; margin-top: 10px; }
/* Shimmer — a single moving highlight over a soft neutral base, themed via the text token. */
.wpc-skeleton__preview, .wpc-sk {
  background:
    linear-gradient(100deg,
      rgba(var(--wpc-text-rgb, 31,36,48), .045) 30%,
      rgba(var(--wpc-text-rgb, 31,36,48), .10) 50%,
      rgba(var(--wpc-text-rgb, 31,36,48), .045) 70%);
  background-size: 220% 100%;
  animation: wpc-shimmer 1.35s ease-in-out infinite;
}
@keyframes wpc-shimmer { from { background-position: 220% 0; } to { background-position: -220% 0; } }

/* Design switcher (multiple designs on one page) */
.wpc-designs { margin-bottom: 28px; }
.wpc-designs__label { font-weight: 750; font-size: 15px; margin-bottom: 11px; letter-spacing: -.01em; }
.wpc-designs__row { display: flex; gap: 12px; flex-wrap: wrap; }
.wpc-design {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 94px; padding: 8px; background: var(--wpc-surface); border: 1px solid rgba(var(--wpc-text-rgb), .09);
  border-radius: 15px; cursor: pointer; font: inherit;
  box-shadow: 0 3px 10px rgba(var(--wpc-text-rgb), .035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.wpc-design:hover { transform: translateY(-2px); border-color: rgba(var(--wpc-accent-rgb), .28); box-shadow: 0 9px 22px rgba(var(--wpc-text-rgb), .07); }
.wpc-design.is-active { border-color: rgba(var(--wpc-accent-rgb), .68); box-shadow: 0 0 0 1px rgba(var(--wpc-accent-rgb), .12), 0 9px 22px rgba(var(--wpc-text-rgb), .07); }
.wpc-design img { width: 100%; height: 70px; object-fit: contain; border-radius: 10px; background: var(--wpc-stage); }
.wpc-design__name { font-size: 12px; text-align: center; color: var(--wpc-text); }

.wpc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(358px, .8fr);
  gap: var(--wpc-gap);
  align-items: start;
  max-width: 1360px;
  margin-inline: auto;
}
@media (max-width: 782px) {
  .wpc-layout { grid-template-columns: 1fr; gap: 16px; }
}

/* --- Preview stage --- */
.wpc-preview {
  position: sticky;
  top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
  background:
    radial-gradient(circle at 14% 6%, rgba(var(--wpc-primary-rgb), .07), transparent 20%),
    radial-gradient(circle at 90% 10%, rgba(var(--wpc-accent-rgb), .08), transparent 22%),
    linear-gradient(150deg, var(--wpc-bg), var(--wpc-preview-end));
  border: 0;
  border-radius: var(--wpc-radius);
  padding: clamp(14px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}
.wpc-preview canvas {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(var(--wpc-text-rgb), .08));
}
.wpc-preview__stage { position:relative;width:100%;max-width:760px; }
.wpc-preview__loading { position:absolute;inset:0;display:grid;place-items:center;pointer-events:none; }
.wpc-preview__loading[hidden] { display:none; }
@media(prefers-reduced-motion:reduce){.wpc-preview__loading .wpc-spinner{animation:none}}
.wpc-preview__note {
  font-size: 11.5px;
  color: var(--wpc-text-muted);
  text-align: center;
  max-width: 520px;
  line-height: 1.45;
  opacity: .86;
}

/* --- Controls --- */
.wpc-controls {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
  padding: 4px 0 20px;
}

.wpc-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.wpc-section + .wpc-section {
  padding-top: 4px;
  border-top: 0;
}
.wpc-section--details { gap: 21px; }
.wpc-section--details > .wpc-field + .wpc-field { margin-top: 2px; }

.wpc-field { display: flex; flex-direction: column; gap: 9px; }
.wpc-root .wpc-field__label {
  color: var(--wpc-text);
  font-weight: 780;
  font-size: 16px;
  letter-spacing: -.02em;
}
.wpc-section--photo > .wpc-field__label,
.wpc-optgroup > .wpc-field__label { font-size: 16px; font-weight: 780; letter-spacing: -.02em; }
.wpc-field__hint { font-size: 11.5px; line-height: 1.45; color: var(--wpc-text-muted); opacity: .82; }

.wpc-upload {
  position: relative;
  border: 1px dashed rgba(var(--wpc-primary-rgb), .42);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
  background: linear-gradient(135deg, rgba(var(--wpc-primary-rgb), .045), rgba(var(--wpc-accent-rgb), .035));
}
.wpc-upload::before {
  content: '↑';
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border-radius: 13px;
  color: var(--wpc-on-primary);
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--wpc-primary), var(--wpc-gradient-mid));
  box-shadow: 0 8px 20px rgba(var(--wpc-primary-rgb), .17);
}
.wpc-upload:hover, .wpc-upload.is-drag {
  border-color: var(--wpc-accent);
  background: linear-gradient(135deg, rgba(var(--wpc-primary-rgb), .065), rgba(var(--wpc-accent-rgb), .055));
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(var(--wpc-text-rgb), .055);
}
.wpc-upload.has-photo {
  border-style: solid;
  border-color: rgba(var(--wpc-accent-rgb), .32);
  background: rgba(var(--wpc-accent-rgb), .055);
}
.wpc-upload.has-photo::before { content: '✓'; background: linear-gradient(135deg, var(--wpc-accent), var(--wpc-gradient-mid)); color: var(--wpc-on-accent); }
.wpc-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wpc-upload__cta { font-weight: 720; font-size: 15px; color: var(--wpc-text); }
.wpc-upload__sub { font-size: 12px; color: var(--wpc-text-muted); margin-top: 4px; }

/* Uploaded state: a full-width thumbnail of the photo + a confirmation line, matching the grouped
   (multi-photo) uploader's look so single and multi read the same. */
.wpc-upload__preview { display: none; width: 100%; height: 200px; object-fit: cover; border-radius: 14px; }
.wpc-upload.has-photo { padding: 12px; border-style: solid; }
.wpc-upload.has-photo::before { display: none; }
.wpc-upload.has-photo .wpc-upload__preview { display: block; }
.wpc-upload.has-photo .wpc-upload__sub { display: none; }
.wpc-upload__status { display: none; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; font-weight: 720; font-size: 14px; color: var(--wpc-accent-strong); }
.wpc-upload.has-photo .wpc-upload__status { display: flex; }
.wpc-upload.has-photo .wpc-upload__cta { display: none; }

/* Busy spinner while a photo is being read / decoded / downscaled. */
@keyframes wpc-spin { to { transform: rotate(360deg); } }
.wpc-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(var(--wpc-text-rgb), .18); border-top-color: var(--wpc-primary); animation: wpc-spin .7s linear infinite; }
.wpc-upload.is-loading { pointer-events: none; }
.wpc-upload.is-loading::before,
.wpc-upload.is-loading .wpc-upload__cta,
.wpc-upload.is-loading .wpc-upload__sub { visibility: hidden; }
.wpc-upload.is-loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid rgba(var(--wpc-text-rgb), .18); border-top-color: var(--wpc-primary); animation: wpc-spin .7s linear infinite; }

.wpc-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid rgba(var(--wpc-text-rgb), .11);
  border-radius: 14px;
  font: inherit;
  color: inherit;
  background: var(--wpc-surface);
  outline: none;
  box-shadow: 0 2px 8px rgba(var(--wpc-text-rgb), .025);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
select.wpc-input { cursor: pointer; }
.wpc-input::placeholder { color: var(--wpc-text-muted); opacity: .62; }
.wpc-input:hover { border-color: rgba(var(--wpc-text-rgb), .20); }
.wpc-input:focus { border-color: rgba(var(--wpc-accent-rgb), .68); box-shadow: 0 0 0 4px rgba(var(--wpc-accent-rgb), .10); }
textarea.wpc-input { resize: vertical; min-height: 76px; font: inherit; }
.wpc-zoomrow { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
/* Location search: results overlay the controls below instead of pushing them down */
.wpc-searchwrap { position: relative; }
.wpc-mapresults {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  display: flex; flex-direction: column;
  background: var(--wpc-surface); border: 1px solid var(--wpc-border); border-radius: 8px;
  box-shadow: 0 10px 24px rgba(var(--wpc-text-rgb), .14); max-height: 240px; overflow: auto;
}
.wpc-mapresults:empty { display: none; }
.wpc-mapresult {
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--wpc-border);
  padding: 8px 10px; font: inherit; font-size: 13px; cursor: pointer;
}
.wpc-mapresult:last-child { border-bottom: 0; }
.wpc-mapresult:hover,
.wpc-mapresult.is-active { background: rgba(var(--wpc-accent-rgb), .10); }
/* Two-line result: bold place name over a dim context line (city / country). */
.wpc-mapresult { display: flex; flex-direction: column; gap: 1px; }
.wpc-mapresult__name { font-weight: 600; color: var(--wpc-text); line-height: 1.25; }
.wpc-mapresult__context { font-size: 11.5px; color: var(--wpc-text-soft, rgba(var(--wpc-text-rgb), .6)); line-height: 1.2; }
/* Transient states — "Searching…" (with a small spinner) and "No matches". Not selectable. */
.wpc-mapresult--state {
  flex-direction: row; align-items: center; gap: 8px;
  color: var(--wpc-text-soft, rgba(var(--wpc-text-rgb), .6)); cursor: default;
}
.wpc-mapresult--state:hover, .wpc-mapresult--state.is-active { background: none; }
.wpc-mapresult--state .wpc-spinner { width: 15px; height: 15px; border-width: 2px; }

/* Icon-only choice buttons (marker shapes) */
.wpc-choice--icon { padding: 8px 12px; line-height: 0; }
.wpc-choice--icon svg { display: block; }
.wpc-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wpc-fontpicker { position: relative; flex: 0 0 auto; }
.wpc-fontpicker[hidden],
.wpc-fontpicker__menu[hidden] { display: none; }
.wpc-fontpicker__trigger {
  width: 40px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(var(--wpc-text-rgb), .12);
  border-radius: 11px;
  background: var(--wpc-surface);
  color: var(--wpc-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(var(--wpc-text-rgb), .035);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wpc-fontpicker__trigger:hover,
.wpc-fontpicker__trigger[aria-expanded="true"] {
  border-color: rgba(var(--wpc-accent-rgb), .48);
  background: rgba(var(--wpc-accent-rgb), .055);
  box-shadow: 0 6px 16px rgba(var(--wpc-text-rgb), .07);
  transform: translateY(-1px);
}
.wpc-fontpicker__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 45;
  width: min(250px, calc(100vw - 32px));
  max-height: 310px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(var(--wpc-text-rgb), .10);
  border-radius: 15px;
  background: var(--wpc-surface);
  box-shadow: 0 18px 46px rgba(var(--wpc-text-rgb), .14);
}
.wpc-fontpicker__option {
  width: 100%;
  min-height: 45px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--wpc-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.wpc-fontpicker__option:hover,
.wpc-fontpicker__option:focus-visible { background: rgba(var(--wpc-accent-rgb), .07); }
.wpc-fontpicker__option.is-active {
  background: rgba(var(--wpc-accent-rgb), .11);
  color: var(--wpc-accent);
}
.wpc-fontpicker__sample {
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(var(--wpc-text-rgb), .045);
  color: var(--wpc-text);
  font-size: 17px;
  line-height: 1;
}
.wpc-fontpicker__name {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wpc-fontpicker__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wpc-accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
}
.wpc-fontpicker__option.is-active .wpc-fontpicker__check { opacity: 1; }
.wpc-zoomrow input[type="range"] { width: 100%; }
.wpc-preview canvas { cursor: grab; }
.wpc-preview canvas:active { cursor: grabbing; }
/* Touch: claim the gesture only when there is a photo to drag/pinch, so the page still scrolls
   normally over the preview before anything is uploaded. Set from update(). */
.wpc-preview canvas.is-draggable { touch-action: none; }
.wpc-charcount { font-size: 12px; color: var(--wpc-text-muted); align-self: flex-end; }

/* Option groups */
.wpc-optgroup { display: flex; flex-direction: column; gap: 14px; }
.wpc-optgroup[hidden] { display: none; }
.wpc-choices { display: flex; flex-wrap: wrap; gap: 10px; }

.wpc-choice {
  border: 1px solid rgba(var(--wpc-text-rgb), .10);
  background: var(--wpc-surface);
  border-radius: 14px;
  min-height: 48px;
  padding: 10px 17px;
  cursor: pointer;
  font: inherit;
  color: var(--wpc-text);
  font-weight: 680;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wpc-choice:hover { border-color: rgba(var(--wpc-accent-rgb), .34); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(var(--wpc-text-rgb), .055); }
.wpc-choice.is-active {
  border-color: rgba(var(--wpc-accent-rgb), .72);
  color: var(--wpc-text);
  background: linear-gradient(135deg, rgba(var(--wpc-primary-rgb), .08), rgba(var(--wpc-accent-rgb), .10));
  box-shadow: 0 0 0 1px rgba(var(--wpc-accent-rgb), .09), 0 7px 18px rgba(var(--wpc-text-rgb), .05);
}
.wpc-choices--markers,
.wpc-choices--marker-colors {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.wpc-choices--markers .wpc-choice {
  width: 100%; min-width: 0; min-height: 46px; padding: 9px 5px; justify-content: center;
}
.wpc-choices--markers .wpc-choice svg { width: 24px; height: 24px; }
.wpc-choice--marker-color {
  width: 100%; min-width: 0; min-height: 42px; padding: 7px; justify-content: center;
}
.wpc-choice--marker-color .wpc-choice__swatch { width: 23px; height: 23px; }
.wpc-optgroup--product .wpc-choice { min-width: 70px; min-height: 50px; justify-content: center; }
/* Map style picker — thumbnail-only buttons (a small live map preview of each style; the name is in
   the tooltip / aria-label). */
.wpc-choices--styles { gap: 8px; }
.wpc-choice--style {
  width: 72px; height: 72px; min-height: 0; padding: 4px; border-radius: 12px;
  align-items: stretch; justify-content: stretch;
}
.wpc-stylethumb {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 8px; background: rgba(var(--wpc-text-rgb), .06); pointer-events: none;
}
.wpc-choice__swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(var(--wpc-text-rgb), .15); }
/* Product options (stand, etc.) — exactly four image cards per row. */
.wpc-choices--images { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:12px; align-items:stretch; }
.wpc-choice--option-image {
  position:relative; min-width:0;
  flex-direction:column; align-items:stretch; gap:9px; padding:10px;
  text-align:left; overflow:hidden;
}
.wpc-choice--option-image.is-active { background:linear-gradient(145deg, var(--wpc-option-primary-surface), var(--wpc-option-accent-surface)); }
.wpc-choice--option-image.is-active::after {
  content:'✓'; position:absolute; top:7px; right:7px; z-index:1;
  display:flex; align-items:center; justify-content:center; width:24px; height:24px;
  border-radius:50%; background:linear-gradient(135deg, var(--wpc-accent), var(--wpc-gradient-mid)); color:var(--wpc-on-accent);
  font-size:13px; font-weight:700; box-shadow:0 3px 9px rgba(var(--wpc-text-rgb), .16);
}
.wpc-choice__image-frame, .wpc-choice__image-fallback {
  display:flex; align-items:center; justify-content:center; width:100%; height:68px;
  overflow:hidden; border-radius:13px; background:linear-gradient(145deg, var(--wpc-image-surface-start), var(--wpc-image-surface-end)); color:var(--wpc-text-muted);
}
.wpc-choice__image { display:block; width:100%; height:100%; object-fit:contain; }
.wpc-choice__image-fallback { flex-direction:column; gap:7px; padding:8px; text-align:center; font-weight:600; }
.wpc-choice__caption { min-width:0; font-size:13px; font-weight:720; line-height:1.3; overflow-wrap:anywhere; }
.wpc-choice--option-image .wpc-choice__delta { margin-top:auto; }
.wpc-choices--images .wpc-choice--no-stand {
  grid-column:1 / -1; min-height:50px; padding:10px 44px 10px 14px;
  flex-direction:row; align-items:center; justify-content:center; gap:10px;
}
.wpc-choice--no-stand .wpc-choice__image-frame { width:24px; height:24px; flex:0 0 24px; background:none; border-radius:0; }
.wpc-choice--no-stand .wpc-choice__caption { font-size:14px; }
.wpc-choice--no-stand .wpc-choice__image-fallback { width:auto; height:auto; padding:0; background:none; flex-direction:row; }
.wpc-choice--no-stand .wpc-choice__delta { margin-top:0; }
.wpc-choice--no-stand.is-active::after { top:50%; transform:translateY(-50%); right:12px; }
/* Colour-only swatch buttons (star background, wave colour): show just the colour, no padding box */
/* Colour swatch buttons (star background, wave colour): a fixed, identical square regardless of the
   base choice min-height, so every colour button is exactly the same size. */
.wpc-choice--swatch { padding: 4px; min-height: 0; width: 38px; height: 38px; flex: 0 0 auto; justify-content: center; }
.wpc-choice__swatch--lg { width: 100%; height: 100%; border-radius: 6px; }
.wpc-swatchrow { gap: 6px; flex-wrap: wrap; }
.wpc-choice__delta { font-size: 12px; color: var(--wpc-primary-hover); font-weight: 700; }
.wpc-engraving, .wpc-lighting {
  position: relative;
  border:0;
  border-radius:20px;
  padding:20px;
  background:linear-gradient(135deg, rgba(var(--wpc-primary-rgb), .075), rgba(var(--wpc-accent-rgb), .055));
  overflow: hidden;
}
.wpc-engraving::after { display:none; }
.wpc-engraving[hidden], .wpc-lighting[hidden], .wpc-engraving__text[hidden] { display:none; }
.wpc-engraving__toggle.wpc-optional, .wpc-lighting__toggle.wpc-optional { position:relative; z-index:1; display:flex; gap:12px; margin-bottom:0; font-size:15px; font-weight:740; color:var(--wpc-text); }
.wpc-engraving__text { display:flex; flex-direction:column; gap:9px; margin-top:16px; animation:wpc-reveal .22s ease both; }
.wpc-engraving__input { min-height:50px; resize:none; line-height:1.5; }
/* Single-line engraving: a textarea top-aligns its text, so size it and pad it to match the vertical
   centering of every other single-line input (50px tall, one 26px line box centered by 12px padding). */
.wpc-engraving__input[rows="1"] { height:50px; min-height:50px; line-height:26px; padding-top:12px; padding-bottom:12px; resize:none; overflow:hidden; }
.wpc-engraving__font { display:flex; flex-direction:column; gap:6px; }
.wpc-engraving__font[hidden], .wpc-engraving__error[hidden] { display:none; }
.wpc-engraving__error { color:var(--wpc-error); font-size:12px; font-weight:600; }
@keyframes wpc-reveal { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }

/* Footer / price */
.wpc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 0;
  border-radius: 21px;
  padding: 20px 22px;
  background: var(--wpc-surface);
  box-shadow: 0 14px 38px rgba(var(--wpc-text-rgb), .09);
}
.wpc-price { font-size: clamp(27px, 2.8vw, 35px); font-weight: 850; line-height:1; letter-spacing: -.045em; white-space: nowrap; }
/* Purchase bar without the adjacent total (price lives in the header block). */
.wpc-footer--noprice { justify-content: stretch; }
.wpc-footer--noprice .wpc-buy { flex: 1; }

/* Mobile-only "View design" jump-to-preview button (revealed in the mobile block). */
.wpc-viewdesign { display: none; }

/* Optional customer field: an include/remove toggle styled as a themed switch to match the rest of
   the configurator; when off, only the toggle shows (no empty reserved space). */
.wpc-optional {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 4px; font-size: 13px; font-weight: 650; color: var(--wpc-text-muted);
  cursor: pointer; user-select: none;
}
.wpc-optional input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  position: relative; width: 40px; height: 23px; border-radius: 999px;
  background: rgba(var(--wpc-text-rgb), .17); border: 1px solid rgba(var(--wpc-text-rgb), .08);
  cursor: pointer; transition: background .18s ease;
}
.wpc-optional input::before {
  content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(var(--wpc-text-rgb), .3);
  transition: transform .18s ease;
}
.wpc-optional input:checked { background: var(--wpc-accent); border-color: var(--wpc-accent); }
.wpc-optional input:checked::before { transform: translateX(17px); }
.wpc-optional:hover input { background: rgba(var(--wpc-text-rgb), .24); }
.wpc-optional:hover input:checked { background: var(--wpc-accent-hover, var(--wpc-accent)); filter: saturate(1.05); }
.wpc-field--off > *:not(.wpc-optional) { display: none; }
.wpc-field--off .wpc-optional { color: var(--wpc-text); }
.wpc-qr__body { display: flex; flex-direction: column; gap: 10px; }
.wpc-qr.wpc-field--off > .wpc-field__head { display: flex; }
.wpc-qr.wpc-field--off .wpc-field__label { opacity: .48; }
.wpc-qr.wpc-field--off > .wpc-qr__body { display: none; }
.wpc-qr__include { margin: 0; color: var(--wpc-text); }
.wpc-qrpalette:disabled { opacity: .4; }
.wpc-qrpalette:disabled .wpc-choice { cursor: not-allowed; }
.wpc-qrpalette { min-width: 0; margin: 2px 0 0; padding: 0; border: 0; }
.wpc-qrpalette legend { margin-bottom: 7px; padding: 0; }
.wpc-qrpalette__row { width: 100%; }
.wpc-choice__swatch.is-transparent {
  background-color: #fff;
  background-image: linear-gradient(45deg, #d8dce3 25%, transparent 25%), linear-gradient(-45deg, #d8dce3 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #d8dce3 75%), linear-gradient(-45deg, transparent 75%, #d8dce3 75%);
  background-size: 10px 10px; background-position: 0 0, 0 5px, 5px -5px, -5px 0;
}
.wpc-qr__status { min-height: 17px; }
.wpc-photo-bw { margin: 12px 0 0; }

/* Quantity stepper fused with the Add-to-cart button into one purchase control. */
.wpc-buy { display: flex; align-items: stretch; gap: 0; min-width: 0; }
.wpc-qty {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px 6px;
  border: 1px solid rgba(var(--wpc-text-rgb), .12);
  border-right: 0;
  border-radius: 15px 0 0 15px;
  background: var(--wpc-surface);
}
.wpc-qty__btn {
  width: 34px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 11px; background: transparent;
  color: var(--wpc-text); font: inherit; font-size: 20px; font-weight: 600; line-height: 1;
  cursor: pointer; transition: background .15s ease, transform .12s ease;
}
.wpc-qty__btn:hover:not([disabled]) { background: rgba(var(--wpc-accent-rgb), .1); }
.wpc-qty__btn:active:not([disabled]) { transform: scale(.9); }
.wpc-qty__btn[disabled] { opacity: .35; cursor: not-allowed; }
.wpc-qty__value { min-width: 30px; text-align: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.wpc-buy .wpc-cta { border-radius: 0 15px 15px 0; min-width: 0; flex: 1; }

.wpc-cta {
  background: linear-gradient(100deg, var(--wpc-primary), var(--wpc-gradient-mid) 58%, var(--wpc-accent));
  color: #fff;
  border: 0;
  border-radius: 15px;
  min-width: 180px;
  min-height: 56px;
  padding: 15px 26px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 11px 24px rgba(var(--wpc-primary-rgb), .20);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.wpc-cta:hover:not([disabled]) { background:linear-gradient(100deg, var(--wpc-primary-hover), var(--wpc-gradient-mid) 58%, var(--wpc-accent)); transform: translateY(-2px); box-shadow: 0 15px 30px rgba(var(--wpc-primary-rgb), .25); filter: saturate(1.03); }
.wpc-cta:active:not([disabled]) { transform: translateY(0); }
.wpc-cta[disabled] { opacity: .48; cursor: not-allowed; box-shadow:none; }
/* Success state after add-to-cart — a solid confirming green that overrides the disabled dimming. */
.wpc-cta--success[disabled], .wpc-cta--success {
  background: var(--wpc-success); color: var(--wpc-on-primary, #fff);
  opacity: 1; cursor: default; box-shadow: 0 10px 22px rgba(var(--wpc-success-rgb, 34,160,90), .22);
}

/* "Added to cart" confirmation panel: success line + one clear next step, View cart. */
.wpc-cart-success {
  margin-top: 12px; padding: 14px 16px; border-radius: 15px;
  background: rgba(var(--wpc-success-rgb, 34,160,90), .10);
  border: 1px solid rgba(var(--wpc-success-rgb, 34,160,90), .28);
  animation: wpc-reveal .22s ease both;
}
.wpc-cart-success[hidden] { display: none; }
.wpc-cart-success__msg {
  display: flex; align-items: center; gap: 9px;
  font-weight: 750; color: var(--wpc-text); margin-bottom: 12px;
}
.wpc-cart-success__msg:last-child { margin-bottom: 0; }
.wpc-cart-success__tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--wpc-success); color: var(--wpc-on-primary, #fff); font-size: 13px; font-weight: 900;
}
.wpc-cart-success__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wpc-cart-success__actions .wpc-btn { flex: 1; min-width: 130px; text-align: center; text-decoration: none; }
.wpc-cart-success__viewcart { display: inline-flex; align-items: center; justify-content: center; }

/* Save & share design — secondary action + result panel with the copyable link. */
.wpc-share { margin-top: 12px; }
.wpc-share__btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(var(--wpc-accent-rgb), .38);
  border-radius: 14px;
  background: rgba(var(--wpc-accent-rgb), .06);
  color: var(--wpc-text);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.wpc-share__btn:hover:not([disabled]) { border-color: rgba(var(--wpc-accent-rgb), .6); background: rgba(var(--wpc-accent-rgb), .1); transform: translateY(-1px); }
.wpc-share__btn[disabled] { opacity: .55; cursor: not-allowed; }
.wpc-share__panel[hidden], .wpc-share__note[hidden] { display: none; }
.wpc-share__panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(var(--wpc-text-rgb), .1);
  border-radius: 14px;
  background: var(--wpc-surface);
  box-shadow: 0 10px 28px rgba(var(--wpc-text-rgb), .07);
}
.wpc-share__hint { font-size: 13px; color: var(--wpc-text-soft, var(--wpc-text)); opacity: .85; margin-bottom: 9px; }
.wpc-share__row { display: flex; gap: 8px; flex-wrap: wrap; }
.wpc-share__input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--wpc-text-rgb), .14);
  border-radius: 11px;
  background: var(--wpc-bg, var(--wpc-surface));
  color: var(--wpc-text);
  font: inherit;
  font-size: 13px;
}
.wpc-share__input:focus-visible { outline: 2px solid var(--wpc-accent); outline-offset: 1px; }
.wpc-share__copy {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 11px;
  background: var(--wpc-accent);
  color: var(--wpc-on-accent, #fff);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}
.wpc-share__copy:hover { filter: saturate(1.05) brightness(1.03); transform: translateY(-1px); }
.wpc-share__status { margin-top: 9px; font-size: 13px; font-weight: 650; }
.wpc-share__note { margin-top: 10px; font-size: 13px; font-weight: 650; }

/* Star sky-detail toggles (Milky Way / Constellations / Grid) */
.wpc-skydetails { display: flex; gap: 14px; flex-wrap: wrap; }
.wpc-skydetail {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 4px; font: inherit;
  color: var(--wpc-text-muted);
}
.wpc-skydetail__icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--wpc-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--wpc-text-muted); transition: border-color .15s, color .15s, background .15s;
}
.wpc-skydetail__label { font-size: 12px; }
.wpc-skydetail.is-active .wpc-skydetail__icon {
  border-color: var(--wpc-accent-strong); color: var(--wpc-accent-strong);
  box-shadow: 0 0 0 1px var(--wpc-accent-strong) inset;
}
.wpc-skydetail.is-active .wpc-skydetail__label { color: var(--wpc-text); font-weight: 600; }

/* Star-map date field: label stacked ABOVE the input; the input insets its own font + date-format
   pickers on the right edge (like the Text field). The native calendar indicator is hidden (the field
   opens via showPicker). */
.wpc-star-datecol { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.wpc-input--date { padding-right: 100px; cursor: pointer; }
.wpc-input--date::-webkit-calendar-picker-indicator { display: none; }
/* The real date picker: present for showPicker() but visually hidden behind the formatted text field. */
/* Transparent overlay across the date field so a TAP opens the native picker directly (mobile Safari
   didn't reliably respond to showPicker()); the inset font/format controls stay tappable above it. */
.wpc-datenative {
  position: absolute; top: 0; bottom: 0; left: 0; right: 100px;
  width: auto; height: auto; margin: 0; padding: 0; border: 0;
  opacity: 0; cursor: pointer; z-index: 2; background: transparent;
}
.wpc-input-wrap--date .wpc-input__controls { z-index: 3; }
/* Time picker — EU 24-hour (HH:MM) via two dropdowns (never AM/PM); styled like an input with the
   font picker inset on the right. */
.wpc-timepick {
  display: flex; align-items: center; justify-content: flex-start; gap: 2px;
  min-height: 50px; padding: 6px 54px 6px 12px;
  border: 1px solid rgba(var(--wpc-text-rgb), .11); border-radius: 14px;
  background: var(--wpc-surface); box-shadow: 0 2px 8px rgba(var(--wpc-text-rgb), .025);
}
.wpc-timesel {
  flex: 0 0 auto; width: auto; min-width: 0;
  border: 0; background: transparent; font: inherit; font-size: 16px; color: inherit;
  padding: 6px 2px; cursor: pointer; text-align: center;
  -webkit-appearance: menulist; appearance: menulist;
}
.wpc-timepick__colon { font-weight: 700; opacity: .65; padding: 0 1px; }
.wpc-datefmt__trigger { display: inline-flex; align-items: center; justify-content: center; color: var(--wpc-text); }
/* Date-format menu shows the FULL example date, never truncated; the option has no font sample, so use a
   two-column (name + check) grid — otherwise the check overlaps the date text. */
.wpc-datefmt .wpc-fontpicker__menu { width: max-content; min-width: 200px; max-width: calc(100vw - 32px); }
.wpc-datefmt .wpc-fontpicker__option { grid-template-columns: minmax(0, 1fr) 16px; }
.wpc-datefmt .wpc-fontpicker__name { overflow: visible; text-overflow: clip; white-space: nowrap; }
.wpc-star-coords { margin-top: 10px; }

/* Low-resolution acknowledgment gate */
.wpc-lowres {
  border: 1px solid rgba(var(--wpc-primary-rgb), .48);
  background: rgba(var(--wpc-primary-rgb), .10);
  border-radius: 8px;
  padding: 12px 14px;
}
.wpc-lowres[hidden] { display: none; }
.wpc-lowres__label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--wpc-text); cursor: pointer;
}
.wpc-lowres__label input { margin-top: 2px; width: 18px; height: 18px; flex: none; }

.wpc-errors { color: var(--wpc-error); font-size: 13px; }
.wpc-errors:empty { display: none; }
.wpc-status--success { color: var(--wpc-success); }
.wpc-status--error { color: var(--wpc-error); }
.wpc-warn { color: var(--wpc-primary-hover); font-size: 13px; margin-top: 6px; }
.wpc-warn:empty { display: none; }

/* Sample photos — real-life shots of the product, under the preview */
.wpc-samples { width:100%; max-width:560px; margin-top: 18px; }
.wpc-samples__strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.wpc-sample {
  padding: 0; border: 2px solid rgba(var(--wpc-surface-rgb), .9); border-radius: 15px;
  background: var(--wpc-surface); cursor: pointer; overflow: hidden; line-height: 0;
  aspect-ratio: 1 / 1;
  box-shadow: 0 5px 16px rgba(var(--wpc-text-rgb), .065);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.wpc-sample:hover { border-color: rgba(var(--wpc-accent-rgb), .34); transform:translateY(-2px); box-shadow:0 10px 22px rgba(var(--wpc-text-rgb), .10); }
.wpc-sample img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sample photo lightbox */
.wpc-lightbox { padding: 32px; }
.wpc-lightbox__figure {
  max-width: min(92vw, 1000px); max-height: 82vh; line-height: 0;
}
.wpc-lightbox__figure img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: var(--wpc-radius); background: var(--wpc-surface);
}
.wpc-lightbox__close,
.wpc-lightbox__nav {
  position: absolute; background: rgba(var(--wpc-surface-rgb), .92); border: 0; cursor: pointer;
  color: var(--wpc-text); border-radius: 50%; width: 42px; height: 42px;
  font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(var(--wpc-text-rgb), .2);
}
.wpc-lightbox__close { top: 20px; right: 20px; }
.wpc-lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.wpc-lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.wpc-lightbox__counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: var(--wpc-surface); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}

/* Map zoom slider — the only zoom control (the preview itself is look-only for maps). Custom-styled
   for a light track + orange thumb (the browser default track read as black in some browsers). The
   orange "filled" portion is painted as an inline background gradient (JS keeps it in sync). */
.wpc-range {
  width: 100%; height: 6px; border-radius: 999px; outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: rgba(var(--wpc-text-rgb), .14);
}
.wpc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%; margin-top: -7px;
  background: var(--wpc-accent); border: 2px solid var(--wpc-surface);
  box-shadow: 0 1px 4px rgba(var(--wpc-text-rgb), .3); cursor: pointer;
}
.wpc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: transparent; }
.wpc-range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(var(--wpc-text-rgb), .14); }
.wpc-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--wpc-accent); }
.wpc-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--wpc-surface);
  background: var(--wpc-accent); box-shadow: 0 1px 4px rgba(var(--wpc-text-rgb), .3); cursor: pointer;
}

/* "Adjust pin" trigger */
.wpc-maptools { display: flex; align-items: center; gap: 10px; }
.wpc-linkbtn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--wpc-border); border-radius: 8px;
  padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 600;
  color: var(--wpc-text); cursor: pointer;
}
.wpc-linkbtn:hover { border-color: var(--wpc-accent); }
.wpc-linkbtn svg { display: block; }

/* Adjust-pin modal */
.wpc-modal__backdrop {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--wpc-text-rgb), .45); padding: 16px;
}
.wpc-modal {
  background: var(--wpc-surface); border-radius: var(--wpc-radius);
  box-shadow: 0 24px 60px rgba(var(--wpc-text-rgb), .28);
  max-width: 100%; overflow: hidden;
  color: var(--wpc-text); font: inherit;
}
.wpc-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--wpc-border);
}
.wpc-modal__title { font-weight: 700; font-size: 15px; }
.wpc-modal__close {
  background: none; border: 0; font-size: 24px; line-height: 1;
  color: var(--wpc-text-muted); cursor: pointer; padding: 0 4px;
}
.wpc-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 16px; }
.wpc-btn {
  border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid var(--wpc-border); background: var(--wpc-surface); color: var(--wpc-text);
}
.wpc-btn--primary { background: var(--wpc-primary); color: #fff; border-color: var(--wpc-primary); }
.wpc-btn--primary:hover { background:var(--wpc-primary-hover); border-color:var(--wpc-primary-hover); }
.wpc-btn--ghost:hover { border-color: var(--wpc-accent); }

/* Consistent keyboard focus without changing pointer interaction. */
.wpc-root button:focus-visible,
.wpc-root input:focus-visible,
.wpc-root textarea:focus-visible,
.wpc-root select:focus-visible,
.wpc-root label.wpc-upload:focus-within {
  outline: 3px solid rgba(var(--wpc-accent-rgb), .28);
  outline-offset: 3px;
}

/* Tasteful, GPU-friendly motion (transform/opacity only) — restrained, no layout thrash. */
@keyframes wpc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wpc-pop-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
.wpc-designmodal { animation: wpc-fade-in .16s ease; }
.wpc-designmodal .wpc-modal { animation: wpc-pop-in .2s cubic-bezier(.2, .8, .3, 1); }
.wpc-fontpicker__menu:not([hidden]) { animation: wpc-pop-in .14s ease; transform-origin: top right; }

@media (prefers-reduced-motion: reduce) {
  .wpc-designmodal, .wpc-modal__backdrop { animation: none !important; }
  .wpc-root *, .wpc-root *::before, .wpc-root *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* The draggable map inside the modal: pin stays centred, the map moves under it */
.wpc-pinmap {
  position: relative; overflow: hidden; background: var(--wpc-stage);
  cursor: grab; touch-action: none; user-select: none; max-width: 100%;
}
.wpc-pinmap.is-dragging { cursor: grabbing; }
.wpc-pinmap__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; -webkit-user-drag: none;
}
.wpc-pinmap__pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -85%); /* the pin's tip sits on the centre point */
  pointer-events: none; line-height: 0;
  filter: drop-shadow(0 2px 4px rgba(var(--wpc-text-rgb), .3));
}
.wpc-pinmap__zoom {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
}
.wpc-pinmap__zoombtn {
  width: 34px; height: 34px; border: 0; border-radius: 7px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--wpc-surface-rgb), .95); color: var(--wpc-text);
  font-size: 22px; line-height: 1; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 4px rgba(var(--wpc-text-rgb), .25);
}
.wpc-pinmap__zoombtn span { display: block; margin-top: -2px; } /* optical centering of + / − glyphs */
.wpc-pinmap__zoombtn:hover { background: var(--wpc-surface); }
.wpc-pinmap__spinner { display: none; }
.wpc-pinmap.is-loading .wpc-pinmap__spinner {
  display: block; position: absolute; top: 50%; left: 50%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 3px solid rgba(var(--wpc-text-rgb), .15); border-top-color: var(--wpc-accent);
  border-radius: 50%; animation: wpc-spin 0.8s linear infinite;
}
.wpc-pinmap.is-loading .wpc-pinmap__img { opacity: 0.55; }
/* Slippy tile layer (providers without a Static Maps API, e.g. MapTiler): the whole layer moves by
   transform while dragging (instant, no re-fetch); only new edge tiles load, and each fades in. */
.wpc-pinmap__layer { position: absolute; inset: 0; will-change: transform; }
.wpc-pinmap__tile { position: absolute; pointer-events: none; -webkit-user-drag: none; transition: opacity 0.18s ease; }
@keyframes wpc-spin { to { transform: rotate(360deg); } }

/* ===========================================================================
   Premium purchase-flow header, design selection, in-input controls
   =========================================================================== */
/* 1–3. Title / rating / pricing */
.wpc-header { display: flex; flex-direction: column; gap: 8px; }
.wpc-productbadges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 1px; }
.wpc-productbadge {
  display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px;
  border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .035em;
  text-transform: uppercase;
  /* Solid pills with white text, matching the /dovanos catalogue badge colours (new = orange). */
  background: #ff6b1d; color: #fff;
}
.wpc-productbadge--popular { background: #8557f3; color: #fff; }
.wpc-productbadge--bestseller { background: #2462ee; color: #fff; }
.wpc-header__title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--wpc-text);
}
.wpc-header__description {
  margin: 0; max-width: 52ch; color: var(--wpc-text-muted);
  font-size: 14px; line-height: 1.55; white-space: pre-line;
}
.wpc-rating { display: inline-flex; align-items: center; gap: 8px; }
.wpc-rating__stars { color: #f5a524; font-size: 15px; letter-spacing: 1px; line-height: 1; }
.wpc-rating__value { font-size: 13px; font-weight: 650; color: var(--wpc-text-muted); }
.wpc-pricing { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.wpc-pricing__current { font-size: clamp(26px, 3vw, 34px); font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.wpc-pricing__row { display: inline-flex; align-items: center; gap: 12px; min-height: 20px; }
.wpc-pricing__original { font-size: 16px; color: var(--wpc-text-muted); text-decoration: line-through; }
.wpc-pricing__original[hidden], .wpc-pricing__save[hidden] { display: none; }
.wpc-pricing__save {
  font-size: 12.5px; font-weight: 750; color: var(--wpc-success);
  background: rgba(var(--wpc-success-rgb), .12);
  padding: 3px 10px; border-radius: 999px;
}

/* 4. Design selection — a single button that opens the "all designs" modal. */
.wpc-designsel { display: flex; flex-direction: column; gap: 12px; }
.wpc-designsel__label { font-weight: 780; font-size: 16px; letter-spacing: -.02em; }
.wpc-designsel__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 9px 14px 9px 10px;
  border: 1px solid rgba(var(--wpc-text-rgb), .11); border-radius: 15px;
  background: var(--wpc-surface); color: var(--wpc-text); font: inherit; cursor: pointer;
  box-shadow: 0 2px 8px rgba(var(--wpc-text-rgb), .03);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wpc-designsel__toggle:hover { border-color: rgba(var(--wpc-accent-rgb), .45); box-shadow: 0 8px 20px rgba(var(--wpc-text-rgb), .06); transform: translateY(-1px); }
.wpc-designsel__cur { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.wpc-designsel__curthumb { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: var(--wpc-stage); flex: 0 0 auto; }
.wpc-designsel__curname { font-weight: 750; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpc-designsel__morelabel { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; color: var(--wpc-accent); font-weight: 700; font-size: 13px; }
.wpc-designsel__morelabel::after {
  content: ''; width: 7px; height: 7px; margin: -3px 1px 0 1px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 1px;
  transform: rotate(45deg);
}
.wpc-designsel__card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 9px; background: var(--wpc-surface);
  border: 1px solid rgba(var(--wpc-text-rgb), .09); border-radius: 16px;
  cursor: pointer; font: inherit; color: var(--wpc-text);
  box-shadow: 0 3px 10px rgba(var(--wpc-text-rgb), .035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.wpc-designsel__card:hover { transform: translateY(-2px); border-color: rgba(var(--wpc-accent-rgb), .3); box-shadow: 0 9px 22px rgba(var(--wpc-text-rgb), .07); }
.wpc-designsel__card.is-active { border-color: rgba(var(--wpc-accent-rgb), .7); box-shadow: 0 0 0 1px rgba(var(--wpc-accent-rgb), .14), 0 9px 22px rgba(var(--wpc-text-rgb), .07); }
.wpc-designsel__card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 11px; background: var(--wpc-stage); }
.wpc-designsel__name { font-size: 14px; font-weight: 700; text-align: center; line-height: 1.25; }

/* Design modal grid (reuses .wpc-modal__backdrop + .wpc-modal) */
/* Cards are large enough to recognise each design at a glance — the picture is the choice. */
.wpc-designmodal .wpc-modal { width: min(900px, 100%); }
.wpc-modal__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px; padding: 20px; max-height: 78vh; overflow-y: auto;
}
.wpc-designmodal .wpc-designsel__card { padding: 10px 10px 12px; gap: 10px; }

/* 5. Product size — pill buttons */
.wpc-section--size .wpc-choices { gap: 10px; }
.wpc-section--size .wpc-choice { min-width: 74px; min-height: 52px; justify-content: center; font-weight: 760; border-radius: 15px; }

/* Text-input inset controls: counter + font picker pinned inside the input's right edge. */
.wpc-input-wrap { position: relative; display: block; }
.wpc-input__controls {
  position: absolute; top: 0; right: 10px; bottom: 0;
  display: flex; align-items: center; gap: 8px; pointer-events: none;
}
.wpc-input__controls > * { pointer-events: auto; }
.wpc-input-wrap--multiline .wpc-input__controls { top: auto; bottom: 8px; right: 8px; }
.wpc-input--countonly { padding-right: 58px; }
.wpc-input--fontonly { padding-right: 54px; }
.wpc-input--both { padding-right: 96px; }
.wpc-input__controls .wpc-charcount { align-self: center; }
.wpc-input__controls .wpc-fontpicker__trigger { width: 36px; height: 30px; border-radius: 9px; font-size: 13px; }

/* Multi-photo grouped uploader ------------------------------------------- */
.wpc-photogroup__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 4px; }
.wpc-photogroup__tile { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--wpc-panel-2, #f1f3f6); border: 1px solid var(--wpc-border); cursor: grab; }
.wpc-photogroup__tile.is-dragging { opacity: .5; }
.wpc-photogroup__tile.is-drop { outline: 2px solid var(--wpc-accent); outline-offset: -2px; }
.wpc-photogroup__thumb { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.wpc-photogroup__loading { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--wpc-muted); font-size: 22px; }
.wpc-photogroup__num { position: absolute; top: 6px; left: 6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(var(--wpc-text-rgb), .72); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.wpc-photogroup__remove { position: absolute; top: 5px; right: 5px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(var(--wpc-text-rgb), .72); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.wpc-photogroup__remove:hover { background: var(--wpc-danger, #e8384f); }
.wpc-photogroup__nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 4px; opacity: 0; transition: opacity .15s; }
.wpc-photogroup__tile:hover .wpc-photogroup__nav, .wpc-photogroup__tile:focus-within .wpc-photogroup__nav { opacity: 1; }
.wpc-photogroup__move { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: rgba(var(--wpc-text-rgb), .72); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.wpc-photogroup__move:disabled { opacity: .35; cursor: default; }
.wpc-photogroup__add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 1 / 1; border: 2px dashed var(--wpc-border); border-radius: 12px; color: var(--wpc-muted); cursor: pointer; transition: border-color .15s, color .15s; }
.wpc-photogroup__add:hover { border-color: var(--wpc-accent); color: var(--wpc-accent); }
.wpc-photogroup__plus { font-size: 26px; line-height: 1; }
.wpc-photogroup__addtext { font-size: 12px; font-weight: 600; }
.wpc-photogroup__add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wpc-photogroup__tile--extra { opacity: .5; }
.wpc-photogroup__tile--extra .wpc-photogroup__num { background: var(--wpc-muted); }
/* Full-width "add photos" drop box (same look as the single-photo uploader). */
.wpc-photogroup__grid:not(:empty) + .wpc-photogroup__addzone { margin-top: 12px; }

/* Multi-photo style picker */
.wpc-layout-diagram { display:block;position:relative;width:52px;max-width:100%;margin:7px;background:#fff;border:1px solid #a7a3bd;border-radius:3px;overflow:hidden; }
.wpc-layout-diagram__block { position:absolute;display:block;background:#d3ddfb;border:1px solid #a9baf1; }
.wpc-layout-diagram__block.is-text { background:#7753db;border:0;border-radius:1px; }
.wpc-stylepick__tile:focus-visible { outline:2px solid var(--wpc-accent);outline-offset:3px; }
.wpc-stylepick__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.wpc-stylepick__tile { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; padding: 6px; border: 2px solid var(--wpc-border); border-radius: 12px; background: var(--wpc-panel, #fff); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.wpc-stylepick__tile:hover { border-color: var(--wpc-accent); }
.wpc-stylepick__tile.is-active { border-color: var(--wpc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wpc-accent) 22%, transparent); }
.wpc-stylepick__thumb { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; display: block; }
.wpc-stylepick__thumb--empty { display: flex; align-items: center; justify-content: center; background: var(--wpc-panel-2, #f1f3f6); color: var(--wpc-muted); font-size: 22px; font-weight: 700; }
.wpc-stylepick__name { font-size: 12px; font-weight: 600; color: var(--wpc-text); text-align: center; line-height: 1.2; }

/* Toasts — transient upload feedback (e.g. why a photo could not be added). Lives inside .wpc-root so
   it keeps the scoped theme even though it is position:fixed over the viewport. */
.wpc-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2147483000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: min(92vw, 460px); }
.wpc-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 9px; padding: 11px 15px; border-radius: 13px; background: var(--wpc-text); color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.4; box-shadow: 0 12px 34px rgba(var(--wpc-text-rgb), .28); opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.wpc-toast.is-in { opacity: 1; transform: translateY(0); }
.wpc-toast--error { background: var(--wpc-error); }
.wpc-toast__icon { flex: 0 0 auto; font-size: 15px; line-height: 1.35; }

/* ===========================================================================
   Mobile / touch
   Three things drive this block:
     1. Tap targets reach 44px, the minimum a finger can hit reliably.
     2. The price + Add to cart bar sticks to the bottom of the screen, because the controls
        column is ~1300px tall on a phone and the button was otherwise a long scroll away.
        `sticky` (not `fixed`) so two configurators on one page can't overlap each other.
     3. The preview stops being sticky — pinning a 350px preview to the top of an 812px screen
        leaves almost no room for the controls underneath it.
   =========================================================================== */
@media (max-width: 782px) {
  .wpc-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .wpc-skeleton { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .wpc-skeleton__preview { aspect-ratio: 1 / 1; }
  .wpc-preview { position: static; padding: 20px 14px; border-radius: 22px; box-shadow:0 16px 42px rgba(var(--wpc-text-rgb), .07); }
  .wpc-preview canvas { max-width: 100%; }

  /* Reserve room for the floating purchase bar so it never covers the last controls. */
  .wpc-controls { gap: 27px; padding-bottom: 88px; }
  .wpc-section + .wpc-section { padding-top: 2px; }

  /* Anything tappable gets a finger-sized target */
  .wpc-choice { min-height: 48px; padding: 10px 14px; }
  /* …except colour swatches, which stay a fixed identical square. */
  .wpc-choice--swatch { min-height: 0; width: 44px; height: 44px; padding: 4px; }
  .wpc-choices--images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wpc-choice--option-image { min-width:0; padding:9px; }
  .wpc-choice__image-frame, .wpc-choice__image-fallback { height:64px; }
  .wpc-header__title { font-size: 24px; }
  .wpc-input--both { padding-right: 92px; }
  .wpc-choice--icon { min-width: 44px; min-height: 44px; justify-content: center; }
  .wpc-choice__swatch { width: 20px; height: 20px; }
  .wpc-linkbtn { min-height: 40px; padding: 8px 14px; font-size: 13px; }
  .wpc-mapresult { padding: 12px 10px; }
  .wpc-upload { padding: 25px 16px; }
  .wpc-cta { width:auto; min-width:0; flex:1; padding: 15px 14px; min-height: 54px; }

  /* Keep the zoom track thin (it read as a fat black bar before) but make the thumb big for touch. */
  .wpc-range { height: 6px; }
  .wpc-range::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -10px; }
  .wpc-range::-moz-range-thumb { width: 26px; height: 26px; }
  /* Inputs ≥16px so iOS Safari doesn't auto-zoom the page on focus (and then never zoom back out,
     which was pushing controls off-screen after picking a location). */
  .wpc-input, .wpc-timesel { font-size: 16px; }

  /* Floating purchase bar: hidden while the preview is in view at the top of the page, then slides /
     fades up once the customer scrolls past it (JS toggles .wpc-footer--floated). It sits out of flow
     so it never occupies space until needed; .wpc-controls reserves room so it can't cover content. */
  .wpc-footer {
    position: fixed;
    left: 10px; right: 10px; bottom: 10px;
    z-index: 30;
    flex-direction: row;
    align-items: center;
    background: rgba(var(--wpc-surface-rgb), .97);
    margin: 0;
    border-radius: 18px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 12px 32px rgba(var(--wpc-text-rgb), .18);
    backdrop-filter: blur(12px);
    transform: translateY(calc(100% + 22px));
    opacity: 0;
    pointer-events: none;
    transition: transform .3s cubic-bezier(.2, .8, .3, 1), opacity .24s ease;
  }
  .wpc-footer--floated { transform: none; opacity: 1; pointer-events: auto; }
  /* Stack "View design" directly above the Add-to-cart row inside the floating bar. */
  .wpc-footer--noprice { flex-direction: column; align-items: stretch; gap: 8px; }
  .wpc-viewdesign {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 8px 14px;
    border: 1px solid rgba(var(--wpc-accent-rgb), .4); border-radius: 13px;
    background: rgba(var(--wpc-accent-rgb), .06); color: var(--wpc-text);
    font: inherit; font-weight: 700; cursor: pointer;
  }
  /* Land the preview below a sticky site header when jumping to it. */
  .wpc-preview { scroll-margin-top: 84px; }
  .wpc-price { flex:none; font-size:23px; text-align:left; }
  .wpc-buy { flex: 1; min-width: 0; }
  .wpc-qty__btn { width: 30px; height: 46px; }
  .wpc-qty__value { min-width: 24px; font-size: 15px; }

  .wpc-samples__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

  /* Modals: use the screen, and keep the action buttons reachable */
  .wpc-modal__backdrop { padding: 10px; }
  .wpc-modal { width: 100%; }
  .wpc-modal__foot { padding: 12px; }
  .wpc-modal__foot .wpc-btn { flex: 1; min-height: 48px; }
  .wpc-modal__close { min-width: 44px; min-height: 44px; }
  .wpc-modal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }

  .wpc-lightbox { padding: 12px; }
  .wpc-lightbox__figure img { max-height: 70vh; }
  .wpc-lightbox__close { top: 10px; right: 10px; }
  .wpc-lightbox__nav { width: 44px; height: 44px; }
  .wpc-lightbox__nav--prev { left: 8px; }
  .wpc-lightbox__nav--next { right: 8px; }
}
/* Shared single/multiple photo control, intentionally separate from audio uploads. */
.wpc-root .wpc-photo-row{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:11px;border:1px solid #e1dfeb;border-radius:16px;background:#fff;text-align:left;box-sizing:border-box}
.wpc-root .wpc-photo-row__thumb{display:flex;align-items:center;justify-content:center;flex:0 0 52px;width:52px;height:52px;border-radius:10px;background:#ffeadc;color:#cc4700;font-size:26px;overflow:hidden}
.wpc-root .wpc-photo-row__thumb img{width:100%;height:100%;object-fit:cover}
.wpc-root .wpc-photo-row__info{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.wpc-root .wpc-photo-row__name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:750;color:var(--wpc-text)}
.wpc-root .wpc-photo-row__status{font-size:12px;line-height:1.4;color:#737083}
.wpc-root .wpc-photo-row__status.is-good{color:#087b50}
.wpc-root .wpc-photo-row__status.is-low{color:#a34909}
.wpc-root .wpc-photo-row__change,.wpc-root .wpc-photo-row__remove{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:44px;padding:0 14px;border:1px solid #9290a5;border-radius:999px;background:white;color:var(--wpc-text);font:inherit;font-size:13px;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
.wpc-root .wpc-photo-row__remove{width:40px;padding:0;border-color:transparent;color:#737083;font-size:23px}
.wpc-root .wpc-photo-row:hover .wpc-photo-row__change,.wpc-root .wpc-photo-row:focus-visible .wpc-photo-row__change,.wpc-root .wpc-photo-row:focus-within .wpc-photo-row__change{background:#ff6b1d;border-color:#ff6b1d;color:#fff}
.wpc-root .wpc-photo-row__remove:hover{background:#fff0e6;color:#b83d08}
.wpc-root .wpc-photo-row button:focus-visible{outline:2px solid #2462ee;outline-offset:2px}
.wpc-root .wpc-photo-row.is-loading{opacity:.6;pointer-events:none}
.wpc-root .wpc-photogroup__grid{grid-template-columns:minmax(0,1fr)}
.wpc-root .wpc-photo-row.wpc-photogroup__tile{aspect-ratio:auto;overflow:visible;flex-wrap:wrap;cursor:grab}
.wpc-root .wpc-photo-row .wpc-photogroup__num{position:static;order:5;background:#f1eaff;color:#6a3bdb;align-self:center}
.wpc-root .wpc-photo-row .wpc-photogroup__nav{position:static;order:6;opacity:1;margin-left:auto;padding:0;gap:6px}
.wpc-root .wpc-photo-row .wpc-photogroup__move{width:36px;height:32px;background:#f5f5f8;color:#5b596b;border:1px solid #e1dfeb;font-size:20px}
.wpc-root .wpc-photo-row .wpc-photogroup__move:not(:disabled):hover{background:#ffebdc;border-color:#ff6b1d}
.wpc-root .wpc-section--orientation .wpc-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}
.wpc-root .wpc-section--orientation .wpc-choice--orientation{width:100%;min-width:0;height:auto;min-height:50px;padding:10px 8px;gap:8px;justify-content:center}
.wpc-root .wpc-choice__orientation-label{font-size:14px;font-weight:700}
.wpc-root .wpc-section--orientation .wpc-choice svg{width:24px;height:24px;flex-shrink:0}
.wpc-root .wpc-photo-row{cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s}
.wpc-root .wpc-photo-row:hover{border-color:#ff6b1d}
.wpc-root .wpc-photo-row:focus-visible,.wpc-root .wpc-photo-row.is-file-drop{outline:2px solid #ff6b1d;outline-offset:3px;background:#fff3eb;box-shadow:0 0 0 5px #ff6b1d12}
@media(max-width:480px){
 .wpc-root .wpc-photo-row{gap:8px;padding:9px}
 .wpc-root .wpc-photo-row__thumb{flex-basis:42px;width:42px;height:48px}
 .wpc-root .wpc-photo-row__change{padding:0 10px}
 .wpc-root .wpc-photo-row__remove{width:28px}
 .wpc-root .wpc-photo-row__name{font-size:13px}
 .wpc-root .wpc-photo-row__status{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.wpc-root .wpc-photo-row button{transition:none}}


/* Line-art controls inherit the storefront field language. */
.wpc-lineart__upload { display:block;width:100%;padding:20px;text-align:left;border:1px dashed #88869e;border-radius:14px;background:#fff;color:#171622;cursor:pointer;overflow-wrap:anywhere; }
.wpc-lineart__upload:hover,.wpc-lineart__upload.is-dragover {border-color:#ff6b1d;background:#fff3eb;}
.wpc-lineart__upload:focus-visible,.wpc-lineart input:focus-visible {outline:2px solid #2563eb;outline-offset:3px;}
.wpc-lineart__setting {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:18px 0;font-weight:600;}
.wpc-lineart__setting input[type=range] {width:100%;accent-color:#ff6b1d;min-height:30px;}
.wpc-lineart__setting input[type=color] {width:58px;min-height:42px;padding:4px;cursor:pointer;}
.wpc-lineart [role=status] {margin:12px 0;}

.wpc-background {margin:12px 0;min-width:0;}
.wpc-background .wpc-field__hint {margin-top:6px;}
.wpc-photogroup__tile .wpc-background {grid-column:1 / -1;width:100%;cursor:default;}

.wpc-root .wpc-photo-guidance{flex-basis:100%;width:100%;margin-top:2px}

.wpc-root .wpc-bottom-fade{width:100%;flex-basis:100%;min-width:0}
/* Bundled Caveat includes Lithuanian glyphs. Keep the stored legacy family compatible. */
@font-face {
  font-family: 'Brush Script MT';
  src: url('../fonts/Caveat.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

