/* Sticker configurator — die-cut, printed, caliper */

.sticker-cfg {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 14px;
  color: var(--bs-body-color);
}

.sticker-cfg__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.sticker-cfg__badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 500;
  background: #f0f3f7;
  color: #333;
}

.sticker-cfg__badge--made { background: #E1F5EE; color: #0F6E56; }
.sticker-cfg__badge--vinyl { background: #E6F1FB; color: #185FA5; }
.sticker-cfg__badge--ink { background: #F2EAFB; color: #553B85; }

.sticker-cfg__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

.sticker-cfg__sku {
  font-size: 12px;
  color: var(--bs-secondary-color, #6c757d);
}

.sticker-cfg__rating {
  font-size: 13px;
  color: var(--bs-secondary-color, #6c757d);
}

.sticker-cfg__price-box {
  background: #fafbfc;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  padding: 14px 16px;
}

.sticker-cfg__price-main {
  font-size: 28px;
  font-weight: 600;
  color: #185FA5;
  line-height: 1;
}

.sticker-cfg__price-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: #475569;
}
.sticker-cfg__price-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.2;
  color: #334155;
}
.sticker-cfg__price-sub-pill strong {
  font-weight: 700;
  color: #185FA5;
}
.sticker-cfg__price-sub-pill--accent {
  background: #eafaf6;
  border-color: #b9ead8;
  color: #0f6e56;
}
.sticker-cfg__price-sub-pill--accent strong {
  color: #0f6e56;
}
.sticker-cfg__price-sub-note {
  font-style: italic;
  color: #94a3b8;
}

.sticker-cfg__price-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e6e8eb;
  font-size: 12px;
  color: #6c757d;
}

.sticker-cfg__price-breakdown span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sticker-cfg__price-breakdown strong {
  font-size: 13px;
  font-weight: 500;
  color: #222;
}

.sticker-cfg__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sticker-cfg__label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c757d;
}

.sticker-cfg__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Colour swatches */
.sticker-cfg__colours {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sticker-cfg__swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.sticker-cfg__swatch:hover {
  transform: scale(1.12);
}

.sticker-cfg__swatch.is-active {
  border-color: #185FA5;
  transform: scale(1.1);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 0 0 4px rgba(24, 95, 165, 0.2);
}

/* Finish chips */
.sticker-cfg__finishes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sticker-cfg__finish {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #d0d4d9;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: #333;
  transition: all 0.15s;
}

.sticker-cfg__finish:hover {
  background: #f5f7fa;
}

.sticker-cfg__finish.is-active {
  background: #E6F1FB;
  border-color: #185FA5;
  color: #185FA5;
}

/* Finish swatches: small dots showing the chosen colour rendered as glossy or matte */
.sticker-cfg__finish {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sticker-cfg__finish-swatch {
  --swatch-colour: #888;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
}

.sticker-cfg__finish-swatch--glossy {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0) 38%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 50%),
    var(--swatch-colour);
}

.sticker-cfg__finish-swatch--matte {
  background:
    radial-gradient(circle at 50% 50%, var(--swatch-colour) 0%, rgba(0,0,0,0.12) 100%);
}

/* Unit toggle */
.sticker-cfg__unit-toggle {
  display: inline-flex;
  background: #f0f2f5;
  border-radius: 6px;
  padding: 2px;
}

.sticker-cfg__unit {
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  color: #6c757d;
  cursor: pointer;
}

.sticker-cfg__unit.is-active {
  background: #fff;
  color: #185FA5;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Size inputs */
.sticker-cfg__size-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.sticker-cfg__size-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sticker-cfg__size-input small {
  font-size: 11px;
  color: #6c757d;
}

.sticker-cfg__size-input input {
  width: 80px;
  padding: 7px 10px;
  border: 1px solid #d0d4d9;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  background: #fff;
}

.sticker-cfg__size-x {
  font-size: 18px;
  color: #adb5bd;
  padding-bottom: 8px;
}

.sticker-cfg__lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6c757d;
  background: #f5f7fa;
  border: 1px solid #e6e8eb;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
}

/* Size chips grid: each cell shows size + computed price */
.sticker-cfg__size-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 8px;
}

.sticker-cfg__size-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid #d0d4d9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  text-align: center;
  line-height: 1.2;
}

.sticker-cfg__size-chip:hover {
  border-color: #9aa0a8;
  background: #f7f9fc;
}

.sticker-cfg__size-chip.is-active {
  border-color: #185FA5;
  background: #E6F1FB;
  box-shadow: 0 0 0 1px #185FA5;
}

.sticker-cfg__size-chip-size {
  font-size: 13px;
  font-weight: 500;
  color: #222;
}

.sticker-cfg__size-chip.is-active .sticker-cfg__size-chip-size {
  color: #185FA5;
}

.sticker-cfg__size-chip-price {
  font-size: 11px;
  color: #6c757d;
}

.sticker-cfg__size-chip.is-active .sticker-cfg__size-chip-price {
  color: #185FA5;
  font-weight: 500;
}

/* Size mode toggle: switches between preset chip grid and custom input */
.sticker-cfg__size-mode {
  display: inline-flex;
  background: #f0f2f5;
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
}

.sticker-cfg__size-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 7px;
  cursor: pointer;
  color: #6c757d;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.sticker-cfg__size-mode-btn svg {
  opacity: 0.75;
}

.sticker-cfg__size-mode-btn:hover:not(.is-active) {
  color: #222;
}
.sticker-cfg__size-mode-btn:hover:not(.is-active) svg {
  opacity: 1;
}

.sticker-cfg__size-mode-btn.is-active {
  background: #fff;
  color: #185FA5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.sticker-cfg__size-mode-btn.is-active svg {
  opacity: 1;
}

/* Inline "Need a different size? Enter custom size →" link, shown under the
   preset chips so the custom option is discoverable without reading tabs. */
.sticker-cfg__custom-size-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  background: #f7faf8;
  border: 1px dashed #c9dccf;
  border-radius: 10px;
  color: #5a6b73;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.sticker-cfg__custom-size-link:hover,
.sticker-cfg__custom-size-link:focus {
  background: #eef6f1;
  border-color: #9bcdb0;
  color: #1a3a2e;
  outline: none;
}

.sticker-cfg__custom-size-link strong {
  margin-left: auto;
  color: #0f6e56;
  font-weight: 600;
  white-space: nowrap;
}

.sticker-cfg__custom-size-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #e1f1e8;
  color: #0f6e56;
  flex: 0 0 26px;
}

/* Custom size input pane */
.sticker-cfg__custom-size {
  padding: 16px;
  border: 1px solid #d0d4d9;
  border-radius: 10px;
  background: #fafbfc;
}

.sticker-cfg__custom-size.is-active {
  border-color: #185FA5;
  background: #f4f9fd;
}

/* Side-by-side labeled fields */
.sticker-cfg__custom-size-fields {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.sticker-cfg__custom-size-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: text;
}

.sticker-cfg__custom-size-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #1a3a2e;
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.sticker-cfg__custom-size-field-label small {
  font-weight: 400;
  color: #6c757d;
  font-size: 11px;
  letter-spacing: 0;
}

.sticker-cfg__custom-size-field--primary .sticker-cfg__custom-size-field-label {
  color: #0a2616;
}

.sticker-cfg__custom-size-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #d0d4d9;
  border-radius: 7px;
  padding: 0 10px;
  transition: border-color .12s ease, box-shadow .12s ease;
}

.sticker-cfg__custom-size-input-wrap:focus-within {
  border-color: #185FA5;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

.sticker-cfg__custom-size-field--primary .sticker-cfg__custom-size-input-wrap {
  border-color: #b6cfe1;
}

.sticker-cfg__custom-size-input-wrap input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 9px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a3a2e;
  -moz-appearance: textfield;
  text-align: left;
}

.sticker-cfg__custom-size-input-wrap input:focus {
  outline: none;
}

.sticker-cfg__custom-size-input-wrap input::-webkit-outer-spin-button,
.sticker-cfg__custom-size-input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sticker-cfg__custom-size-input-unit {
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
}

.sticker-cfg__custom-size-x {
  flex: 0 0 auto;
  font-size: 18px;
  color: #adb5bd;
  user-select: none;
  padding-bottom: 9px;
}

.sticker-cfg__custom-size-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e1e6ea;
  border-radius: 8px;
  font-size: 13px;
  color: #5a6b73;
}

.sticker-cfg__custom-size-summary strong {
  font-size: 16px;
  font-weight: 600;
  color: #185FA5;
}

.sticker-cfg__custom-size-help {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #5a6b73;
  line-height: 1.45;
}

.sticker-cfg__custom-size-help strong {
  color: #1a3a2e;
  font-weight: 600;
}

.sticker-cfg__custom-size-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #c0392b;
  font-weight: 500;
  line-height: 1.4;
}

.sticker-cfg__custom-size-hint:empty {
  display: none;
}

.sticker-cfg__preset-link {
  display: inline-block;
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #185FA5;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.sticker-cfg__preset-link:hover,
.sticker-cfg__preset-link:focus {
  color: #0d3d6b;
  text-decoration: underline;
  outline: none;
}

@media (max-width: 480px) {
  .sticker-cfg__custom-size-fields {
    flex-wrap: wrap;
  }
  .sticker-cfg__custom-size-x {
    flex-basis: 100%;
    text-align: center;
    padding: 0;
  }
}

/* Quantity */
.sticker-cfg__qty-row {
  display: inline-flex;
  align-items: stretch;
}

.sticker-cfg__qty-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #d0d4d9;
  background: #f5f7fa;
  font-size: 18px;
  cursor: pointer;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sticker-cfg__qty-btn:first-child { border-radius: 6px 0 0 6px; }
.sticker-cfg__qty-btn:last-child { border-radius: 0 6px 6px 0; }

.sticker-cfg__qty-val {
  width: 56px;
  height: 38px;
  border: 1px solid #d0d4d9;
  border-left: 0;
  border-right: 0;
  text-align: center;
  font-size: 15px;
  background: #fff;
  -moz-appearance: textfield;
}

.sticker-cfg__qty-val::-webkit-outer-spin-button,
.sticker-cfg__qty-val::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* CTA */
.sticker-cfg__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sticker-cfg__atc {
  width: 100%;
  padding: 14px;
  background: #007BFF;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.sticker-cfg__atc:hover { background: #0056b3; color: #fff; }

.sticker-cfg__wishlist {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #007BFF;
  border: 2px solid #007BFF;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sticker-cfg__wishlist:hover {
  background: #E6F1FB;
  color: #0056b3;
  border-color: #0056b3;
}

.sticker-cfg__wishlist-icon {
  font-size: 18px;
  line-height: 1;
}

.sticker-cfg__hidden-actions {
  display: none !important;
}

/* Tabs */
.sticker-cfg__tabs {
  margin-top: 8px;
}

.sticker-cfg__tab-headers {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e6e8eb;
}

.sticker-cfg__tab {
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  border: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  color: #6c757d;
  transition: all 0.15s;
}

.sticker-cfg__tab.is-active {
  border-bottom-color: #185FA5;
  color: #222;
  font-weight: 500;
}

.sticker-cfg__tab-body {
  padding: 14px 0;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
}

.sticker-cfg__tab-body ol,
.sticker-cfg__tab-body ul {
  padding-left: 18px;
  margin: 0;
}

.sticker-cfg__tab-body li + li {
  margin-top: 6px;
}

/* Live recolour preview — applied to .product__carousel only, never thumbnails */
.sticker-cfg-cover {
  position: relative;
  isolation: isolate;
  --cfg-vinyl-colour: transparent;
  background: var(--cfg-vinyl-colour);
}

/* Uploaded transparent artwork (PNG/SVG): substrate is white, the chosen
   vinyl colour is painted only inside the design via a CSS mask overlay.
   This avoids the lighten-blend bug where a black-on-transparent upload
   ends up rendering as a solid colour rectangle. */
.sticker-cfg-cover--has-upload-mask {
  background: #ffffff !important;
}
.sticker-cfg-cover--has-upload-mask .carousel-inner .carousel-item:first-child img,
.sticker-cfg-cover--has-upload-mask.product__no-image img {
  mix-blend-mode: normal !important;
}

/* Static catalog covers with transparent PNG backgrounds use the same
   mask-based recolour approach (set up in JS by maybeSwitchCoverToMaskMode).
   Suppress the lighten/difference blend modes so we don't double-paint. */
.sticker-cfg-cover--static-mask {
  background: #ffffff !important;
}
.sticker-cfg-cover--static-mask .carousel-inner .carousel-item img,
.sticker-cfg-cover--static-mask.product__no-image img,
.sticker-cfg-cover--static-mask .product__no-image img {
  mix-blend-mode: normal !important;
  opacity: 0 !important;
}

.sticker-cfg-art-overlay {
  position: absolute;
  inset: 0;
  background: var(--cfg-vinyl-colour, #000);
  -webkit-mask-image: var(--art-url);
          mask-image: var(--art-url);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  pointer-events: none;
  z-index: 2;
}

.sticker-cfg-cover .carousel-inner .carousel-item:first-child img,
.sticker-cfg-cover.product__no-image img {
  mix-blend-mode: lighten;
  background: transparent !important;
}

/* Pale vinyls (white/silver/beige): switch from "lighten" to "difference" blend.
   Difference inverts the image relative to the chosen colour:
     - black design + chosen colour → chosen colour (design recolours correctly)
     - white surround + chosen colour → colour's complement (dark for pale colours)
   Result for white vinyl: white sticker on black surface — looks like a sticker
   applied to a dark car. */
.sticker-cfg-cover--pale .carousel-inner .carousel-item:first-child img,
.sticker-cfg-cover--pale.product__no-image img {
  mix-blend-mode: difference;
}

/* Glossy finish: subtle diagonal sheen overlaid on the cover image */
.sticker-cfg-cover--glossy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.04) 30%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,0.06) 80%,
    rgba(255,255,255,0.18) 100%
  );
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
  mix-blend-mode: screen;
}

/* Hide PS-default product info we're replacing */
.product--has-cfg .product__name,
.product--has-cfg .product__manufacturer,
.product--has-cfg .product__description-short,
.product--has-cfg .product__customization,
.product--has-cfg .product__actions > form > .product-variants,
.product--has-cfg .product-prices,
.product--has-cfg .product-add-to-cart,
.product--has-cfg .product-additional-info {
  display: none !important;
}

/* .product__bottom is a sibling of .product__container — sibling selector needed */
.product--has-cfg ~ .product__bottom {
  display: none !important;
}

/* Tabs: allow wrap on narrow widths now that there are up to 4 of them */
.sticker-cfg__tab-headers {
  flex-wrap: wrap;
}

/* Bulk pricing tab */
.sticker-cfg__bulk-intro {
  font-size: 13px;
  color: #6c757d;
  margin: 0 0 10px;
}

.sticker-cfg__bulk-rows {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #9dd9d2;
}

.sticker-cfg__bulk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #e6f5f3;
  background: #fff;
}

.sticker-cfg__bulk-row:last-child {
  border-bottom: 0;
}

.sticker-cfg__bulk-row--head {
  background: #2a9d8f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-bottom: 0;
}

.sticker-cfg__bulk-badge {
  font-size: 12px;
  font-weight: 700;
  color: #2a9d8f;
  background: #d0eeea;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.sticker-cfg__bulk-row--best {
  background: #f0faf9;
  font-weight: 600;
}

.sticker-cfg__bulk-best-tag {
  display: inline-block;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #2a9d8f;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.sticker-cfg__bulk-badge--best {
  color: #fff;
  background: #2a9d8f;
  font-size: 13px;
  padding: 3px 11px;
}

/* Custom artwork upload */
.sticker-cfg__req {
  color: #d33;
  font-weight: 700;
}

.sticker-cfg__upload-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sticker-cfg__upload {
  display: block;
  position: relative;
  border: 2px dashed #c8d2db;
  border-radius: 12px;
  background: #f7fafc;
  padding: 18px 16px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.sticker-cfg__upload:hover,
.sticker-cfg__upload.is-dragover {
  border-color: #185fa5;
  background: #eff5fb;
}

.sticker-cfg__upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: #5a6b73;
}

.sticker-cfg__upload-empty strong {
  color: #1a3a2e;
  font-weight: 600;
  font-size: 14px;
}

.sticker-cfg__upload-empty small {
  font-size: 12px;
  color: #6c757d;
}

.sticker-cfg__upload-filled {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticker-cfg__upload-filled img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e1e6ea;
  border-radius: 8px;
  flex: 0 0 56px;
}

.sticker-cfg__upload-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sticker-cfg__upload-meta strong {
  font-size: 13px;
  font-weight: 600;
  color: #1a3a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticker-cfg__upload-meta small {
  font-size: 11px;
  color: #6c757d;
}

.sticker-cfg__upload-remove {
  border: 0;
  background: #f0f3f7;
  color: #5a6b73;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 28px;
  transition: background .15s ease, color .15s ease;
}

.sticker-cfg__upload-remove:hover {
  background: #fde2e2;
  color: #c0392b;
}

.sticker-cfg__upload-hint {
  display: block;
  font-size: 12px;
  color: #5a6b73;
  line-height: 1.45;
}

.sticker-cfg__upload-notes {
  width: 100%;
  resize: vertical;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid #d8dee3;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}

.sticker-cfg__upload-notes:focus {
  outline: none;
  border-color: #185fa5;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

.sticker-cfg__atc--needs-upload {
  background: #c8d2db !important;
  cursor: not-allowed;
}

/* Cross-link to custom-artwork product (shown on catalog sticker pages,
   hidden on the Custom products themselves) */
.sticker-cfg__custom-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #d8ecdf;
  background: linear-gradient(135deg, #f4faf6 0%, #eef5fb 100%);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sticker-cfg__custom-cta:hover,
.sticker-cfg__custom-cta:focus {
  border-color: #9bcdb0;
  box-shadow: 0 6px 18px -10px rgba(15, 110, 86, 0.35);
  text-decoration: none;
  color: inherit;
  transform: translateY(-1px);
}

.sticker-cfg__custom-cta-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e1f1e8;
  color: #0f6e56;
}

.sticker-cfg__custom-cta--printed .sticker-cfg__custom-cta-icon {
  background: #e1ecf6;
  color: #185fa5;
}

.sticker-cfg__custom-cta-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.sticker-cfg__custom-cta-body strong {
  font-size: 14px;
  font-weight: 600;
  color: #1a3a2e;
}

.sticker-cfg__custom-cta-body small {
  font-size: 12px;
  color: #5a6b73;
}

.sticker-cfg__custom-cta-cta {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: #0f6e56;
  white-space: nowrap;
}

.sticker-cfg__custom-cta--printed .sticker-cfg__custom-cta-cta {
  color: #185fa5;
}

@media (max-width: 480px) {
  .sticker-cfg__custom-cta {
    flex-wrap: wrap;
  }
  .sticker-cfg__custom-cta-cta {
    flex-basis: 100%;
    text-align: right;
    padding-left: 48px;
  }
}

/* Lateral type-switch on Custom products (between Custom Die-Cut <-> Custom Printed) */
.sticker-cfg__type-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  background: #f4f7fa;
  border: 1px solid #e1e7ec;
  color: #5a6b73;
  transition: background .15s ease, border-color .15s ease;
}

.sticker-cfg__type-switch:hover,
.sticker-cfg__type-switch:focus {
  background: #ecf2f7;
  border-color: #c9d6df;
  text-decoration: none;
}

.sticker-cfg__type-switch--diecut:hover,
.sticker-cfg__type-switch--diecut:focus {
  border-color: #9bcdb0;
}
.sticker-cfg__type-switch--printed:hover,
.sticker-cfg__type-switch--printed:focus {
  border-color: #a4c5e3;
}

.sticker-cfg__type-switch-text {
  flex: 1;
  min-width: 0;
}
.sticker-cfg__type-switch-text strong {
  color: #1a3a2e;
  font-weight: 600;
}

.sticker-cfg__type-switch-cta {
  flex: 0 0 auto;
  font-weight: 600;
  white-space: nowrap;
}
.sticker-cfg__type-switch--diecut .sticker-cfg__type-switch-cta { color: #0f6e56; }
.sticker-cfg__type-switch--printed .sticker-cfg__type-switch-cta { color: #185fa5; }

@media (max-width: 480px) {
  .sticker-cfg__type-switch {
    flex-wrap: wrap;
  }
  .sticker-cfg__type-switch-cta {
    flex-basis: 100%;
    text-align: right;
  }
}

/* How to apply — icon step-by-step guide (replaces plain <ol>) */
.sticker-cfg__howto {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sticker-cfg__howto-intro {
  margin: 0;
  padding: 12px 14px;
  background: #f7faf8;
  border: 1px solid #e1ece4;
  border-radius: 10px;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.55;
}

.sticker-cfg__howto--printed .sticker-cfg__howto-intro {
  background: #f4f9fd;
  border-color: #dbe9f5;
}

.sticker-cfg__howto-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 540px) {
  .sticker-cfg__howto-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sticker-cfg__howto-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas:
    "icon title"
    "icon text";
  column-gap: 12px;
  row-gap: 2px;
  padding: 14px 14px 14px 12px;
  background: #ffffff;
  border: 1px solid #e6eaee;
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.sticker-cfg__howto-step:hover {
  border-color: #c9d6df;
  box-shadow: 0 4px 14px -8px rgba(15, 30, 40, .18);
}

.sticker-cfg__howto-icon {
  grid-area: icon;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  background: #eef5fb;
  color: #185fa5;
}

.sticker-cfg__howto--diecut .sticker-cfg__howto-icon {
  background: #e7f6ee;
  color: #0f6e56;
}

.sticker-cfg__howto-num {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a3a2e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.sticker-cfg__howto--printed .sticker-cfg__howto-num {
  background: #185fa5;
}

.sticker-cfg__howto-title {
  grid-area: title;
  font-size: 14px;
  font-weight: 600;
  color: #1a3a2e;
  line-height: 1.2;
}

.sticker-cfg__howto-text {
  grid-area: text;
  font-size: 12.5px;
  color: #5a6b73;
  line-height: 1.5;
}

/* Type-chooser modal */
.sticker-cfg-chooser {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sticker-cfg-chooser[hidden] {
  display: none;
}

.sticker-cfg-chooser__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 40, 0.55);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.sticker-cfg-chooser__dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 760px;
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.35);
  animation: stickerChooserIn 180ms ease-out;
}

@keyframes stickerChooserIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sticker-cfg-chooser__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: #f0f3f7;
  color: #5a6b73;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  z-index: 2;
}
.sticker-cfg-chooser__close:hover {
  background: #e1e7ec;
  color: #1a3a2e;
}

.sticker-cfg-chooser__head {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-right: 36px;
}

.sticker-cfg-chooser__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a3a2e;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.sticker-cfg-chooser__sub {
  margin: 0;
  color: #5a6b73;
  font-size: 0.95rem;
}

.sticker-cfg-chooser__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .sticker-cfg-chooser__grid { grid-template-columns: 1fr; }
  .sticker-cfg-chooser__dialog { padding: 1.25rem; }
}

.sticker-cfg-chooser__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: #fff;
  border: 2px solid #e6ecef;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sticker-cfg-chooser__card:focus,
.sticker-cfg-chooser__card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
}
.sticker-cfg-chooser__card--diecut:focus,
.sticker-cfg-chooser__card--diecut:hover {
  border-color: #9bcdb0;
  box-shadow: 0 14px 28px -16px rgba(15, 110, 86, 0.4);
}
.sticker-cfg-chooser__card--printed:focus,
.sticker-cfg-chooser__card--printed:hover {
  border-color: #a4c5e3;
  box-shadow: 0 14px 28px -16px rgba(24, 95, 165, 0.4);
}

.sticker-cfg-chooser__card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticker-cfg-chooser__card--diecut .sticker-cfg-chooser__card-icon {
  background: #e7f6ee;
  color: #0f6e56;
}
.sticker-cfg-chooser__card--printed .sticker-cfg-chooser__card-icon {
  background: #e6f1fb;
  color: #185fa5;
}

.sticker-cfg-chooser__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
}
.sticker-cfg-chooser__card--diecut .sticker-cfg-chooser__tag {
  background: #d8efe2; color: #0f6e56;
}
.sticker-cfg-chooser__card--printed .sticker-cfg-chooser__tag {
  background: #d6e6f6; color: #185fa5;
}

.sticker-cfg-chooser__card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: #1a3a2e;
}

.sticker-cfg-chooser__card-copy {
  margin: 0;
  font-size: 0.9rem;
  color: #5a6b73;
  line-height: 1.45;
}

.sticker-cfg-chooser__features {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: #4a5568;
}

.sticker-cfg-chooser__features li {
  position: relative;
  padding-left: 18px;
  line-height: 1.4;
}

.sticker-cfg-chooser__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
}
.sticker-cfg-chooser__card--diecut .sticker-cfg-chooser__features li::before { color: #0f6e56; }
.sticker-cfg-chooser__card--printed .sticker-cfg-chooser__features li::before { color: #185fa5; }

.sticker-cfg-chooser__card-cta {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.sticker-cfg-chooser__card--diecut .sticker-cfg-chooser__card-cta { color: #0f6e56; }
.sticker-cfg-chooser__card--printed .sticker-cfg-chooser__card-cta { color: #185fa5; }

.sticker-cfg-chooser__hint {
  margin: 0;
  padding: 12px 14px;
  background: #f7fafc;
  border: 1px solid #e1e7ec;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #4a5568;
  line-height: 1.5;
}
.sticker-cfg-chooser__hint strong {
  color: #1a3a2e;
}
.sticker-cfg-chooser__hint em {
  font-style: normal;
  font-weight: 600;
  color: #1a3a2e;
}

/* ============================================================
   Custom-artwork products: upload zone lives in the main image
   area on the left; thumbnails + zoom are hidden.
   ============================================================ */
.product--custom-cover .product__thumbnails,
.product--custom-cover .product__zoom,
.product--custom-cover .carousel-control-prev,
.product--custom-cover .carousel-control-next {
  display: none !important;
}

/* Hide the original cover entirely when no upload has happened — the upload
   zone replaces it. Once an upload arrives, applyArtworkToCover adds the
   .has-upload / .has-upload-mask class to the cover, and we re-show it. */
.product--custom-cover .product__carousel,
.product--custom-cover .product__no-image {
  display: none;
}
.product--custom-cover .product__carousel.sticker-cfg-cover--has-upload,
.product--custom-cover .product__carousel.sticker-cfg-cover--has-upload-mask,
.product--custom-cover .product__no-image.sticker-cfg-cover--has-upload,
.product--custom-cover .product__no-image.sticker-cfg-cover--has-upload-mask {
  display: block;
}

.sticker-cfg-cover-upload {
  position: relative;
  z-index: 3;
  margin-bottom: 12px;
}

/* The upload zone, when relocated into the cover area, becomes the hero
   call-to-action that fills the image slot. */
.sticker-cfg__upload--in-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 14px;
  border: 2px dashed #c8d2db;
  background: #f7fafc;
  position: relative;
  overflow: hidden;
}

.sticker-cfg__upload--in-cover:hover,
.sticker-cfg__upload--in-cover.is-dragover {
  border-color: #185fa5;
  background: #eff5fb;
}

.sticker-cfg__upload--in-cover .sticker-cfg__upload-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  color: #5a6b73;
}

.sticker-cfg__upload--in-cover .sticker-cfg__upload-empty svg {
  width: 56px;
  height: 56px;
  color: #185fa5;
  opacity: 0.85;
}

.sticker-cfg__upload--in-cover .sticker-cfg__upload-empty strong {
  font-size: 20px;
  font-weight: 700;
  color: #1a3a2e;
  letter-spacing: 0.2px;
}

.sticker-cfg__upload--in-cover .sticker-cfg__upload-empty small {
  font-size: 13px;
  color: #6c757d;
}

/* Filled state: when the upload is relocated, the cover image already shows
   the artwork. We collapse the in-cover container so the cover image (which
   sits underneath) is fully visible, and float a small "Choose another
   image" button at the top-right. */
.sticker-cfg__upload--in-cover:has([data-cfg-upload-filled]:not([hidden])) {
  border-color: transparent;
  background: transparent;
  aspect-ratio: auto;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.sticker-cfg__upload--in-cover .sticker-cfg__upload-filled {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  width: auto;
  gap: 8px;
  pointer-events: auto;
  z-index: 4;
}

/* Hide the thumb + filename meta in the cover overlay — the cover image
   already shows the artwork at full size. */
.sticker-cfg__upload--in-cover .sticker-cfg__upload-filled img,
.sticker-cfg__upload--in-cover .sticker-cfg__upload-meta {
  display: none;
}

.sticker-cfg__upload-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8dee3;
  background: #fff;
  color: #1a3a2e;
  padding: 8px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background .15s ease, border-color .15s ease;
}

.sticker-cfg__upload-change:hover {
  background: #f0f5fa;
  border-color: #185fa5;
}

.sticker-cfg__upload-change svg {
  flex: 0 0 auto;
}

/* Show the change button only when the zone is relocated to the cover */
.sticker-cfg__upload:not(.sticker-cfg__upload--in-cover) .sticker-cfg__upload-change {
  display: none;
}

.sticker-cfg__upload--in-cover .sticker-cfg__upload-remove {
  background: #fff;
  border: 1px solid #d8dee3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
  .sticker-cfg__upload--in-cover .sticker-cfg__upload-empty strong {
    font-size: 17px;
  }
  .sticker-cfg__upload--in-cover .sticker-cfg__upload-empty svg {
    width: 44px;
    height: 44px;
  }
}
