/* Saved-page preview: release page locks when no dialog or menu is visible. */
html.local-preview-scrollable {
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
}
html.local-preview-scrollable body {
  overflow-y: visible !important;
  position: static !important;
  top: auto !important;
  height: auto !important;
  max-height: none !important;
}

/* Give the saved rating its own container, outside the remote review renderer. */
html.local-review-summary #review-rating-wrap {
  display: none !important;
}
html.local-review-summary #local-review-rating-wrap {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Keep the saved Trade-In information visible when live eligibility fails. */
#trade-in.local-trade-in-section,
#trade-in .product__tradein_option.local-trade-in-section {
  display: block !important;
}

html.local-trade-in-ready #trade-in {
  display: none !important;
}
#local-trade-in,
#local-trade-in > .s-option-trade {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* A still-image video thumbnail; the play mark is decorative. */
.bc-gallery .local-video-thumbnail {
  position: relative;
}
.bc-gallery .local-video-thumbnail__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(52px, 6vw, 76px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.bc-gallery .local-video-thumbnail__play svg {
  width: 55%;
  height: 55%;
  fill: #fff;
}

/* Game categories do not display the original device prices. */
.s-option-storage .s-rdo-price-wrap,
.s-option-storage .s-rdo-price {
  display: none !important;
}

/* Promo choices use the Supraslot mark instead of device color swatches. */
.s-option-color-special .s-box-color {
  background: #fff url("../images/logo-supraslot.png") center / contain no-repeat !important;
}
.s-option-color-special .s-box-color img {
  visibility: hidden;
}

/* Informational links do not invoke the original trade-in popup. */
#local-trade-in .local-supraslot-info-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
#local-trade-in .local-supraslot-info-link:focus-visible {
  outline: 2px solid #006bea;
  outline-offset: 4px;
}
#supraslot-promos {
  scroll-margin-top: 160px;
}

/* Present a site overview while keeping the legacy summary hooks available. */
.hubble-product__summary > :not(.local-supraslot-summary):not(.hubble-product__summary-feature) {
  display: none !important;
}
.local-supraslot-summary h2 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
}
.local-supraslot-summary h3 {
  margin: 32px 0 16px;
  font-size: 22px;
  font-weight: 700;
}
.local-supraslot-summary p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
}
.local-supraslot-summary .cta {
  display: block;
  margin-top: 32px;
  text-align: center;
}
.local-supraslot-summary__help {
  display: block;
  margin-top: 24px;
  color: inherit;
  text-align: center;
  text-decoration: underline;
}

.local-mobile-auth {
  display: none;
}
.local-desktop-auth {
  display: none;
}
@media only screen and (min-width: 768px) {
  .hubble-price-bar > .hubble-price-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .hubble-price-bar__inner > .hubble-price-bar__price {
    display: none !important;
  }
  .local-desktop-auth {
    display: flex;
    flex: 0 1 588px;
    gap: 16px;
    margin: 0 0 0 auto;
    width: 44%;
  }
  .local-desktop-auth > a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px;
    box-sizing: border-box;
    border: 2px solid #006bea;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
  }
  .local-desktop-auth__login {
    color: #006bea;
    background: #fff;
  }
  .local-desktop-auth__register {
    color: #fff;
    background: #006bea;
  }
  .local-desktop-auth > a:hover {
    filter: brightness(0.9);
  }
  .local-desktop-auth > a:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
  }
}
@media only screen and (max-width: 767px) {
  .hubble-price-bar > .hubble-price-bar__inner {
    display: none !important;
  }
  .hubble-price-bar > .local-mobile-auth {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
  }
  .local-mobile-auth > a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 2px solid #006bea;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
  }
  .local-mobile-auth__login {
    color: #006bea;
    background: #fff;
  }
  .local-mobile-auth__register {
    color: #fff;
    background: #006bea;
  }
  .local-mobile-auth > a:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
  }
}

/* Match the original summary: artwork on the left, details on the right. */
.hubble-product__summary.local-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.local-summary-layout > .hubble-product__summary-feature {
  grid-column: 1;
  grid-row: 1;
  float: none;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.local-summary-layout > .local-supraslot-summary {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
@media only screen and (max-width: 767px) {
  .hubble-product__summary.local-summary-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .local-summary-layout > .local-supraslot-summary {
    grid-column: 1;
    grid-row: 2;
  }
}
