/* Product page: rating, What's Included, express checkout width, information tabs.
   Scoped so the rest of the site is unchanged. */

body.page-product-detail .product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  line-height: 1;
}

body.page-product-detail .product-rating__stars {
  display: inline-flex;
  gap: 2px;
  color: #f5b400;
  font-size: 15px;
  letter-spacing: 0;
}

body.page-product-detail .product-rating__score {
  color: #222;
  font-size: 15px;
  font-weight: 600;
}

body.page-product-detail .product-whats-included {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #f4f5f7;
  border: 1px solid #eceef2;
  border-radius: 12px;
}

body.page-product-detail .product-whats-included__summary {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  cursor: pointer;
}

body.page-product-detail .product-whats-included__summary::-webkit-details-marker {
  display: none;
}

body.page-product-detail .product-whats-included__summary::marker {
  content: "";
}

body.page-product-detail .product-whats-included__icon {
  display: flex;
  color: #222;
}

body.page-product-detail .product-whats-included__label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #1a1a1a;
}

body.page-product-detail .product-whats-included__chevron {
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid #666;
  border-bottom: 1.5px solid #666;
  transform: rotate(-135deg);
  transition: transform 0.15s ease;
}

body.page-product-detail .product-whats-included[open] .product-whats-included__chevron {
  transform: rotate(45deg);
}

body.page-product-detail .product-whats-included__text {
  margin: 6px 22px 0 38px;
  color: #5c6370;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

body.page-product-detail .product-purchase-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  column-gap: 12px;
  row-gap: 8px;
}

body.page-product-detail .product-purchase-line > .desktop-only-section,
body.page-product-detail .product-purchase-line > .mobile-only-section {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

body.page-product-detail .product-purchase-line .product-buy-row {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "price qty"
    "cart cart";
  width: max-content;
  max-width: 100%;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 0;
}

body.page-product-detail .product-purchase-line .product-price {
  grid-area: price;
}

body.page-product-detail .product-purchase-line .product-qty {
  grid-area: qty;
  flex: none;
  width: auto;
}

body.page-product-detail .product-purchase-line .product-cart-actions {
  grid-area: cart;
  display: block;
  width: auto;
  flex: none;
  grid-template-columns: none;
}

body.page-product-detail .product-purchase-line .product-cart-button,
body.page-product-detail .product-purchase-line .product-cart-button .btn {
  width: 100%;
}

body.page-product-detail .stripe-express-checkout {
  display: contents;
}

body.page-product-detail .stripe-express-checkout[hidden] {
  display: none;
}

body.page-product-detail .stripe-express-checkout__frame {
  flex: 0 0 120px;
  width: 120px;
  max-width: 120px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  align-self: flex-end;
}

@media (min-width: 1200px) {
  body.page-product-detail .stripe-express-checkout__frame {
    margin-left: 36px;
  }
}

body.page-product-detail .stripe-express-checkout__frame-label {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  display: block;
  width: 120px;
  margin: 0 0 6px;
  padding: 0;
  background: transparent;
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

body.page-product-detail .stripe-express-checkout__frame-label::before,
body.page-product-detail .stripe-express-checkout__frame-label::after {
  content: none;
}

body.page-product-detail .stripe-express-checkout__mount {
  width: 120px;
  max-width: 120px;
  min-height: 40px;
  height: auto;
  transform: none;
  margin: 0;
}

body.page-product-detail .stripe-express-checkout__ship-note {
  flex: 1 0 100%;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Information tabs under the buying area */
body.page-product-detail .product-info {
  margin: 8px 0 36px;
}

body.page-product-detail .product-info__tabs {
  display: flex;
  gap: 8px 28px;
  margin: 0 0 28px;
  padding: 0;
  overflow-x: auto;
  border-bottom: 1px solid #e6e6e6;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

body.page-product-detail .product-info__tab {
  flex: 0 0 auto;
  margin: 0 0 -1px;
  padding: 12px 2px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

body.page-product-detail .product-info__tab:hover {
  color: #222;
}

body.page-product-detail .product-info__tab[aria-selected="true"] {
  color: #111;
  border-bottom-color: var(--dd-orange, #ff6600);
}

body.page-product-detail .product-info__tab:focus-visible {
  outline: 2px solid var(--dd-orange, #ff6600);
  outline-offset: 2px;
}

body.page-product-detail .product-info__panel {
  padding: 4px 0 8px;
}

body.page-product-detail .product-info__heading {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
}

body.page-product-detail .product-info__lead,
body.page-product-detail .product-info__note {
  max-width: 860px;
  margin: 0 0 22px;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

body.page-product-detail .product-info a {
  color: var(--dd-orange, #ff6600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.page-product-detail .product-info a:hover {
  color: #111;
}

body.page-product-detail .product-info__prose > p,
body.page-product-detail .product-info__prose > ul,
body.page-product-detail .product-info__prose > ol,
body.page-product-detail .product-info__prose > h2,
body.page-product-detail .product-info__prose > h3,
body.page-product-detail .product-info__prose > h4,
body.page-product-detail .product-info__prose > blockquote {
  max-width: 860px;
}

body.page-product-detail .product-info__prose > p:has(img),
body.page-product-detail .product-info__prose > p:has(table) {
  max-width: none;
}

body.page-product-detail .product-info__prose img {
  max-width: 100%;
  height: auto;
}

body.page-product-detail .product-info__prose {
  overflow-x: auto;
}

body.page-product-detail .product-info__prose table {
  max-width: 100%;
}

body.page-product-detail .product-features {
  display: grid;
  gap: 12px 40px;
  max-width: 920px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-product-detail .product-features--cols {
  grid-template-columns: 1fr 1fr;
}

body.page-product-detail .product-features li {
  position: relative;
  margin: 0;
  padding-left: 26px;
  color: #222;
  line-height: 1.45;
}

body.page-product-detail .product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 8px;
  border-left: 2px solid #222;
  border-bottom: 2px solid #222;
  transform: rotate(-45deg);
}

body.page-product-detail .product-info__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  max-width: 920px;
  margin-bottom: 28px;
}

body.page-product-detail .product-info__actions--single {
  grid-template-columns: minmax(0, 420px);
}

body.page-product-detail .product-info__action h3,
body.page-product-detail .product-info__guidance h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

body.page-product-detail .product-info__action p {
  margin: 0 0 14px;
  color: #444;
  line-height: 1.55;
}

body.page-product-detail .product-info__file-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

body.page-product-detail .product-info__btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #222;
  border-radius: 4px;
  background: #fff;
  color: #222 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
}

body.page-product-detail .product-info__btn:hover {
  border-color: var(--dd-orange, #ff6600);
  color: var(--dd-orange, #ff6600) !important;
}

body.page-product-detail .product-info__btn--primary {
  border-color: var(--dd-orange, #ff6600);
  background: var(--dd-orange, #ff6600);
  color: #fff !important;
}

body.page-product-detail .product-info__btn--primary:hover {
  background: #111;
  border-color: #111;
  color: #fff !important;
}

body.page-product-detail .product-info__guidance {
  max-width: 860px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

body.page-product-detail .product-info__guidance ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #333;
  line-height: 1.55;
}

body.page-product-detail .product-info__guidance li {
  margin: 0 0 6px;
}

body.page-product-detail .product-info__facts {
  max-width: 720px;
  margin: 0 0 18px;
}

body.page-product-detail .product-info__facts > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px 24px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

body.page-product-detail .product-info__facts dt {
  margin: 0;
  font-weight: 700;
  color: #1a1a1a;
}

body.page-product-detail .product-info__facts dd {
  margin: 0;
  color: #333;
  line-height: 1.5;
}

body.page-product-detail .product-info__delivery-date {
  font-weight: 700;
}

@media (max-width: 700px) {
  body.page-product-detail .product-features--cols,
  body.page-product-detail .product-info__actions,
  body.page-product-detail .product-info__actions--single {
    grid-template-columns: 1fr;
  }

  body.page-product-detail .product-info__facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

body.page-product-detail .delivery-est__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0 0 22px;
}

body.page-product-detail .delivery-est__field {
  flex: 1 1 240px;
  max-width: 420px;
}

body.page-product-detail .delivery-est__field label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

body.page-product-detail .delivery-est__select {
  width: 100%;
  max-width: 360px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 15px;
}

body.page-product-detail .delivery-est__select:focus {
  outline: 2px solid var(--dd-orange, #ff6600);
  outline-offset: 1px;
}

body.page-product-detail .delivery-est__hint,
body.page-product-detail .delivery-est__calendar-note,
body.page-product-detail .delivery-est__artwork {
  margin: 8px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

body.page-product-detail .delivery-est__artwork {
  margin-top: 22px;
}

body.page-product-detail .delivery-est__summary {
  margin: 0 0 28px;
  padding: 22px 24px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fafafa;
}

body.page-product-detail .delivery-est__kicker {
  margin: 0 0 6px;
  color: #666;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.page-product-detail .delivery-est__date {
  margin: 0;
  color: #1a1a1a;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
}

body.page-product-detail .delivery-est__meta,
body.page-product-detail .delivery-est__cutoff {
  margin: 8px 0 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.45;
}

body.page-product-detail .delivery-est__cutoff strong {
  font-weight: 700;
}

body.page-product-detail .delivery-est__timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 14px;
  padding: 8px 0 0;
  list-style: none;
}

body.page-product-detail .delivery-est__timeline li {
  position: relative;
  margin: 0;
  padding: 0 12px 8px;
  text-align: center;
}

body.page-product-detail .delivery-est__timeline li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e5e5;
}

body.page-product-detail .delivery-est__timeline li:first-child::before {
  left: 50%;
}

body.page-product-detail .delivery-est__timeline li:last-child::before {
  right: 50%;
}

body.page-product-detail .delivery-est__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 0 10px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #333;
}

body.page-product-detail .delivery-est__timeline li.is-delivery .delivery-est__icon {
  border-color: var(--dd-orange, #ff6600);
  color: var(--dd-orange, #ff6600);
}

body.page-product-detail .delivery-est__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.page-product-detail .delivery-est__timeline h3,
body.page-product-detail .delivery-est__subhead,
body.page-product-detail .delivery-est__secondary h3,
body.page-product-detail .delivery-est__closed h3 {
  margin: 0 0 4px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
}

body.page-product-detail .delivery-est__when {
  margin: 0 0 6px;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

body.page-product-detail .delivery-est__detail,
body.page-product-detail .delivery-est__secondary p,
body.page-product-detail .delivery-est__closed p {
  margin: 0;
  color: #444;
  font-size: 13px;
  line-height: 1.45;
}

body.page-product-detail .delivery-est__closed {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fafafa;
}

body.page-product-detail .delivery-est__closed ul {
  margin: 8px 0 10px;
  padding: 0;
  list-style: none;
}

body.page-product-detail .delivery-est__closed li {
  margin: 0 0 4px;
  color: #222;
  font-size: 14px;
}

body.page-product-detail .delivery-est__subhead {
  margin: 26px 0 10px;
  font-size: 1.05rem;
}

body.page-product-detail .delivery-est__breakdown,
body.page-product-detail .delivery-est__options table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

body.page-product-detail .delivery-est__breakdown th,
body.page-product-detail .delivery-est__breakdown td,
body.page-product-detail .delivery-est__options th,
body.page-product-detail .delivery-est__options td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
  color: #333;
  font-weight: 400;
}

body.page-product-detail .delivery-est__breakdown thead th,
body.page-product-detail .delivery-est__options thead th {
  color: #666;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.page-product-detail .delivery-est__breakdown tbody th,
body.page-product-detail .delivery-est__options tbody th {
  color: #1a1a1a;
  font-weight: 700;
}

body.page-product-detail .delivery-est__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-product-detail .delivery-est__secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  margin-top: 26px;
}

body.page-product-detail .delivery-est__price {
  margin: 0 0 6px;
  color: #1a1a1a;
  font-size: 1.35rem;
  font-weight: 700;
}

body.page-product-detail .delivery-est__options {
  margin-top: 26px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

body.page-product-detail .delivery-est__options summary {
  cursor: pointer;
  color: #1a1a1a;
  font-weight: 700;
}

body.page-product-detail .delivery-est__options summary:focus-visible {
  outline: 2px solid var(--dd-orange, #ff6600);
  outline-offset: 2px;
}

body.page-product-detail .delivery-est__options-scroll {
  max-width: 100%;
  margin-top: 12px;
  overflow-x: auto;
}

@media (max-width: 800px) {
  body.page-product-detail .delivery-est__timeline {
    display: block;
    margin-left: 4px;
  }

  body.page-product-detail .delivery-est__timeline li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 14px;
    padding: 0 0 18px;
    text-align: left;
  }

  body.page-product-detail .delivery-est__timeline li::before {
    top: 0;
    bottom: 0;
    left: 17px;
    right: auto;
    width: 1px;
    height: auto;
  }

  body.page-product-detail .delivery-est__timeline li:first-child::before {
    top: 18px;
    left: 17px;
  }

  body.page-product-detail .delivery-est__timeline li:last-child::before {
    bottom: auto;
    height: 18px;
    right: auto;
  }

  body.page-product-detail .delivery-est__icon {
    grid-row: 1 / span 3;
    margin: 0;
  }

  body.page-product-detail .delivery-est__timeline h3,
  body.page-product-detail .delivery-est__when,
  body.page-product-detail .delivery-est__detail {
    grid-column: 2;
  }

  body.page-product-detail .delivery-est__date {
    font-size: 1.6rem;
  }

  body.page-product-detail .delivery-est__secondary {
    grid-template-columns: 1fr;
  }

  body.page-product-detail .delivery-est__summary {
    padding: 18px 16px;
  }
}

/* iPad portrait sits under the 1200px desktop gallery lock. A fixed 700px
   photo (dd-styles, min-width 992px) plus padding-left: 0 puts the image on
   the screen edge and crushes the buy column. Scale the photo and keep a
   side inset until both columns fit. */
@media (min-width: 769px) and (max-width: 1199.98px) {
  body.page-product-detail .container.padding-bottom-2x.dd-wide-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  body.page-product-detail .product-row {
    margin-left: 0;
    margin-right: 0;
  }

  body.page-product-detail .product-row > .product-details-col,
  body.page-product-detail .product-row > .col-md-7 {
    padding-right: 0;
  }

  /* Keep the wallets beside Add to Cart. The 36px desktop gap plus a
     full-width button is wider than this column, so the express block
     was wrapping underneath. */
  body.page-product-detail .product-purchase-line > .desktop-only-section {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    max-width: calc(100% - 140px);
  }

  body.page-product-detail .product-purchase-line .product-buy-row {
    width: 100%;
  }

  body.page-product-detail .stripe-express-checkout__frame {
    flex: 0 0 120px;
    margin-left: 0;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  body.page-product-detail .product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    column-gap: 28px;
    align-items: start;
  }

  body.page-product-detail .product-row > .product-gallery-col,
  body.page-product-detail .product-row > [class*="col-"]:first-child,
  body.page-product-detail .product-row > .product-details-col,
  body.page-product-detail .product-row > .col-md-7 {
    flex: none;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  body.page-product-detail .product-gallery,
  body.page-product-detail .product-gallery .product-carousel,
  body.page-product-detail .product-gallery .product-carousel .owl-stage-outer,
  body.page-product-detail .product-gallery .product-carousel .owl-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  body.page-product-detail .product-gallery .product-carousel img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}
