.product-detail-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.product-detail-back:hover { text-decoration: underline; }

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 345px);
  grid-template-areas: "heading checkout" "preview checkout";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: clamp(18px, 3vw, 32px);
  margin-top: 12px;
}

.product-detail-copy { grid-area: heading; }

.product-detail-platform {
  margin-bottom: 8px;
  color: var(--muted);
}

.product-detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(29px, 4.7vw, 55px);
  letter-spacing: -.04em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.product-detail-compatibility {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-detail-compatibility li {
  padding: 5px 10px;
  border: 1px solid #88869144;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
}

.product-checkout {
  grid-area: checkout;
  padding: clamp(18px, 2.8vw, 26px);
  scroll-margin-top: 122px;
}

.product-checkout h2 { margin: 0 0 18px; font-size: 22px; line-height: 1.25; }
.product-checkout fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.product-checkout .seg { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.product-checkout .seg button { min-height: 44px; height: auto; padding: 5px; }
.product-checkout .seg button:disabled { opacity: .55; cursor: default; }
.product-checkout .plan__total { padding-top: 14px; }
.product-checkout-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.product-checkout-total :is(.plan__label, .plan__price) { margin: 0; }
.product-checkout .plan__price { font-size: 31px; font-variant-numeric: tabular-nums; }
.product-checkout :is(.product-checkout-message, .plan__unavailable) { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.product-checkout .plan__unavailable { margin: 0 0 10px; }
.product-checkout-message:empty, .product-checkout-topup { display: none; }
.product-checkout [data-balance-shortage]:not([hidden]) + .product-checkout-topup {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-underline-offset: 3px;
}

html[data-theme=light] .product-detail :is(.product-detail-platform, .product-detail-compatibility li, .plan__label, .product-checkout-message, .plan__unavailable) { color: #56545e; }

.product-detail-preview {
  grid-area: preview;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #88869144;
  border-radius: 14px;
}

@media (max-width: 760px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "checkout" "preview";
    grid-template-rows: auto;
  }
}

/* A single, centred checkout replaces the removed product overview. */
.product-detail-layout {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "checkout";
  grid-template-rows: auto;
  width: min(100%, 432px);
  margin-inline: auto;
}
.product-detail-back { display: flex; width: min(100%, 432px); margin-inline: auto; }
