/* Optional local proof presentation unit. No canvas blend, opacity or asset edits. */
body.rt-focused-product .e8e8-mockup-preview {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  padding: 12px !important;
  min-width: 0;
  box-sizing: border-box;
}

body.rt-focused-product .e8e8-mockup-preview__stage {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 20px !important;
  min-width: 0;
  box-sizing: border-box;
}

body.rt-focused-product .e8e8-mockup-preview__header {
  border: 0 !important;
  background: transparent !important;
  padding: 0 0 8px !important;
}

body.rt-focused-product #page-container #et-boc .et-l .e8e8-mockup-preview__header h4 {
  margin: 0 !important;
  font-family: var(--e8e8-font-body) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

body.rt-focused-product .e8e8-mockup-preview__note {
  padding: 16px 0 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #626262 !important;
}

body.rt-focused-product .rt-proof-view-nav {
  border: 0 !important;
  background: #f5f5f7 !important;
}

body.rt-focused-product .rt-proof-overlay-stage {
  position: relative;
}

body.rt-focused-product .rt-upload-overlay-layer {
  position: absolute;
  pointer-events: none;
  z-index: 4;
}

body.rt-focused-product #page-container #et-boc .et-l .e8e8-mockup-preview .rt-artwork-overlay-action {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: min(180px, 100%);
  min-height: 44px !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fffffff2 !important;
  color: #dd1e01 !important;
  font: 500 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-align: center;
  white-space: normal;
  pointer-events: auto;
  cursor: pointer;
  box-sizing: border-box;
}

body.rt-focused-product .rt-artwork-overlay-symbol {
  flex: none;
  width: 16px;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

body.rt-focused-product .rt-artwork-overlay-action:focus-visible {
  outline: 2px solid #dd1e01;
  outline-offset: 3px;
}

/* Old top links disappear only when valid real overlay controls are mounted. */
body.rt-focused-product .e8e8-mockup-preview:has([data-rt-upload-overlays]) .rt-proof-actions {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.rt-focused-product #page-container #et-boc .et-l .e8e8-mockup-preview .rt-artwork-overlay-action {
    transition: none !important;
    animation: none !important;
  }
}
/* Empty placement controls live at the stage edge, never over artwork. */
body.rt-focused-product .e8e8-mockup-preview[data-rt-overlay-controls] .rt-proof-actions {
  display: none !important;
}

body.rt-focused-product #page-container #et-boc .et-l .e8e8-mockup-preview .rt-artwork-overlay-action {
  transform: translate(-50%, calc(-100% - 8px));
  padding: 4px 8px !important;
  gap: 4px !important;
  background: transparent !important;
  isolation: isolate;
  box-shadow: none !important;
}

body.rt-focused-product .rt-artwork-overlay-action::before {
  content: "";
  position: absolute;
  inset: 4px 0;
  border-radius: 10px;
  background-color: #e8e8ed;
  z-index: -1;
  pointer-events: none;
}

@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  body.rt-focused-product .rt-artwork-overlay-action::before {
    background-color: rgba(232, 232, 237, 0.72);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
}
body.rt-focused-product .rt-artwork-overlay-action > span {
  opacity: 1;
}

/* The page owns vertical scrolling; retain every native canvas tile uncut. */
@media (min-width: 981px) {
  body.rt-progressive-product #page-container #et-boc .et-l .product-gallery-column[data-rt-proof-view-count] {
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
  }
  body.rt-progressive-product #page-container #et-boc .et-l .product-gallery-column[data-rt-proof-view-count] {
    position: sticky !important;
  }
}
@media (min-width: 981px) {
  body.rt-progressive-product .rt-proof-view-nav {
    top: var(--rt-proof-top, 110px) !important;
  }
}
/* The same live proof remains available when crossing into mobile layout. */
body.rt-progressive-product .rt-live-preview-slot:has(.e8e8-mockup-preview:not([hidden])) {
  display: block !important;
}

body.rt-progressive-product .product-gallery-column:has(.e8e8-mockup-preview:not([hidden])) :is(.e8e8-variation-gallery, .rt-gallery-label, .rt-gallery-navigation) {
  display: none !important;
}

/* Equal compact sleeve actions: text may wrap without shrinking one side. */
body.rt-focused-product .rt-artwork-overlay-action > span:first-child {
  min-width: 0;
  flex: 1 1 auto;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

/* Ordinary photo gallery: fit its viewport; never scroll a second page inside the column. */
@media (min-width: 981px) {
  body.rt-progressive-product #page-container #et-boc .et-l .product-gallery-column:not([data-rt-proof-view-count]) {
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    padding-bottom: 0 !important;
  }
  body.rt-focused-product #page-container #et-boc .et-l .e8e8-variation-gallery__stage {
    padding: 12px !important;
    border: 0 !important;
    background: #f5f5f7 !important;
    box-shadow: none !important;
  }
  body.rt-focused-product #page-container #et-boc .et-l .e8e8-variation-gallery__image-button {
    height: auto !important;
    padding: 12px !important;
  }
  body.rt-focused-product #page-container #et-boc .et-l .e8e8-variation-gallery img {
    height: auto !important;
    max-height: max(220px,calc(100dvh - var(--rt-proof-top,122px) - 180px)) !important;
    object-fit: contain !important;
  }
}
/* Native checked value owns the common selected state, including Standard-only products. */
body.rt-focused-product #page-container #et-boc .et-l .rt-turnaround-selector .e8e8-turnaround-option:has(input[name=e8e8_turnaround]:checked) {
  border: 2px solid #dd1e01 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.rt-focused-product #page-container #et-boc .et-l .rt-turnaround-selector .e8e8-turnaround-option:not(:has(input[name=e8e8_turnaround]:checked)) {
  border: 2px solid #d2d2d7 !important;
  background: #f5f5f7 !important;
  box-shadow: none !important;
}

body.rt-focused-product #page-container #et-boc .et-l .rt-turnaround-selector .e8e8-turnaround-option:has(input[name=e8e8_turnaround]:focus-visible) {
  outline: 2px solid #dd1e01 !important;
  outline-offset: 3px !important;
}

body.rt-focused-product #page-container #et-boc .et-l .rt-turnaround-selector .e8e8-turnaround-options__grid:has(> .e8e8-turnaround-option:only-child) {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Local coordinated focus candidate v91 */
/* LOCAL ONLY. Undo the shared storefront-control card override inside opt-in source disclosure.
 * No input IDs/names, events, upload bindings, native validation or Coveralls geometry changes. */
html body.rt-focused-product #page-container #et-boc .et-l details.rt-source > .af_addon_field_class.rt-source-upload {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

html body.rt-focused-product #page-container #et-boc .et-l details.rt-source {
  padding-block: 0;
}

/* Keep oversized proofs in normal page flow; no internal gallery scroll or crop.
   Active-view canvas crop remains owned by proof-fit, preserving export pixels. */
@media (min-width: 981px) {
  html body.rt-progressive-product #page-container #et-boc .et-l .product-gallery-column[data-rt-proof-flow=page] {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
  html body.rt-progressive-product #page-container #et-boc .et-l .product-gallery-column[data-rt-proof-flow=sticky] {
    position: sticky !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
