.pd-sr-updates {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pd-lightbox {
  width: min(96vw, 1100px);
  max-width: none;
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
}

.pd-lightbox::backdrop {
  background: rgba(255, 255, 255, 0.92);
}

.pd-lightbox-ui {
  position: relative;
  background: #ffffff;
  color: #1f2937;
  border-radius: 14px;
  padding: 10px 10px 40px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.pd-lightbox-bar {
  display: flex;
  justify-content: flex-end;
}

.pd-lightbox-close {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid rgba(31, 41, 55, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.pd-lightbox-stage {
  margin: 8px auto 0;
  width: min(92vw, 980px);
  min-height: 52vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pd-lightbox-media {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  transform-origin: center center;
  transition: transform 160ms ease;
}

.pd-lightbox-img,
#pd-lightbox-img {
  max-height: 72vh;
  width: auto;
  object-fit: contain;
}

.pd-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(31, 41, 55, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  font-size: 1.35rem;
  cursor: pointer;
}

.pd-lightbox-prev {
  left: 8px;
}

.pd-lightbox-next {
  right: 8px;
}

.pd-lightbox-help {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.83rem;
  line-height: 1.4;
  color: rgba(31, 41, 55, 0.8);
}

.pd-lightbox.is-zoomed .pd-lightbox-stage {
  cursor: zoom-out;
}

@media (max-width: 890px) {
  .pd-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .pd-share-wrap {
    width: auto !important;
    justify-items: start !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .pd-header-actions {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 8px;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .pd-fav-btn,
  .pd-share-btn,
  .pd-price-alert-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .pd-fav-btn svg,
  .pd-share-btn svg,
  .pd-price-alert-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }

  .pd-fav-btn span,
  .pd-share-btn span,
  .pd-price-alert-btn span {
    display: none;
  }

  .pd-price-alert-dialog {
    width: min(100% - 18px, 420px);
    margin-top: 4vh;
    padding: 18px;
  }

  .pd-price-alert-option {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .pd-price-alert-target {
    grid-column: 2;
    margin-left: 0;
  }
}

@media (max-width: 890px) {
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pd-wrap {
    padding: 12px 10px 28px;
  }

  .pd-crosssell {
    margin-top: 24px;
    gap: 14px;
    padding: 0;
    border-radius: 0;
  }

  .pd-crosssell__grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .pd-crosssell__backdrop {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 22px;
  }

  .pd-crosssell__card,
  .pd-crosssell__product-link {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
  }

  .pd-crosssell__body {
    width: 100%;
  }

  .pd-crosssell__card--product,
  .pd-crosssell__card--addon {
    padding: 12px;
    min-height: 320px;
  }

  .pd-crosssell__summary {
    align-content: start;
    padding: 12px;
  }

  .pd-crosssell__media {
    width: 176px;
    min-width: 176px;
    padding: 8px;
    justify-self: start;
  }

  .pd-crosssell__plus,
  .pd-crosssell__equals {
    width: 44px;
    min-height: 44px;
    font-size: 1.3rem;
  }

  .pd-crosssell__summary {
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .pd-crosssell__summary .pd-sale-price {
    font-size: clamp(1.6rem, 1.34rem + 1vw, 2rem);
  }

  .pd-crosssell__cart-btn {
    width: auto;
  }

  .pd-benefits {
    gap: 12px;
  }

  .pd-benefits__title {
    max-width: 100%;
  }

  .pd-benefits__intro {
    max-width: 100%;
  }

  .pd-benefits__list {
    grid-template-columns: 1fr;
  }

  .pd-thumb img {
    width: 72px;
    height: 72px;
  }

  .pd-sticky {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .pd-lightbox {
    width: 100vw;
    border-radius: 0;
  }

  .pd-lightbox-ui {
    border-radius: 0;
    min-height: 100dvh;
    padding: 10px 8px 28px;
  }

  .pd-lightbox-stage {
    min-height: 64vh;
  }

  .pd-lightbox-nav {
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .pd-lightbox-prev {
    left: calc(50% - 54px);
  }

  .pd-lightbox-next {
    right: calc(50% - 54px);
  }
}

@media (min-width: 891px) {
  .pd-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .pd-share-wrap {
    width: auto;
    margin-left: auto;
  }

  .pd-header-actions {
    width: auto;
  }

  .pd-tab-overlay {
    display: none !important;
  }
}

@media (min-width: 981px) {
  .pd-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 50px;
    row-gap: 10px;
  }

  .pd-title {
    min-width: 0;
  }

  .pd-share-wrap {
    width: auto;
    margin-left: 0;
    justify-items: start;
  }

  .pd-header-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .pd-grid {
    grid-template-columns: minmax(0, calc((100% - 80px) * 0.3)) minmax(0, calc((100% - 80px) * 0.4)) minmax(0, calc((100% - 80px) * 0.3));
    align-items: start;
    gap: 40px;
  }

  .pd-col {
    min-width: 0;
  }

  .pd-sticky {
    position: sticky;
    top: var(--pd-sticky-top);
    align-self: start;
  }

  .pd-buybox {
    position: relative;
  }

  .pd-variant-row {
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
  }

  .pd-variants-title,
  .pd-legend {
    margin-bottom: 12px;
  }

}
