.offer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 44px;
  align-items: start;
}
.offer-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.offer-gallery img:first-child {
  grid-column: 1/-1;
}
.offer-photo {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #f4f3ee;
  border-radius: 14px;
}
.offer-gallery img:first-child {
  height: 430px;
}
.offer-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.offer-actions,
.offer-categories {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0;
}
.offer-categories a {
  padding: 10px 16px;
  border: 1px solid #d4d9d3;
  border-radius: 30px;
}
.offer-categories a[aria-current] {
  background: #124c3c;
  color: white;
}
.offer-thumbnails {
  display: flex;
  gap: 10px;
}
.offer-thumbnails img {
  width: 100px;
  height: 100px;
}
.offer-layout .summary-box {
  position: static;
}
.offer-layout h1 {
  font-size: 36px;
}
.offer-layout form {
  display: grid;
  gap: 12px;
}
.offer-layout label,
.form-panel form label {
  display: grid;
  gap: 7px;
}
.offer-layout input {
  min-height: 44px;
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd4ce;
  border-radius: 8px;
}
.form-panel + .form-panel {
  margin-top: 24px;
}
.offer-layout .notice {
  padding: 16px;
}
.offer-layout .summary-total {
  font-size: 22px;
}
.offer-photo,
.account-card h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .offer-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .offer-gallery img:first-child {
    height: 300px;
  }
  .offer-layout h1 {
    font-size: 29px;
  }
  .offer-actions .button {
    flex: 1;
  }
  .offer-categories {
    flex-wrap: nowrap;
    overflow: auto;
  }
  .offer-categories a {
    white-space: nowrap;
  }
  .account-card {
    flex-wrap: wrap;
  }
  .offer-thumbnails {
    overflow: auto;
  }
}
.form-panel .notice {
  flex-wrap: wrap;
  align-items: center;
}
.form-panel form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-panel input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}
.profile-shortcuts {
  flex-wrap: wrap;
}
.account-body {
  min-width: 0;
}
.payout-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.payout-heading h2 {
  margin: 6px 0 0;
}
.payout-heading .badge {
  position: static;
}
.payout-panel p,
.payout-details p {
  line-height: 1.7;
}
.payout-panel .button {
  white-space: normal;
  text-align: start;
}
.payout-panel .button .icon {
  flex-shrink: 0;
}
.payout-notice,
.payout-details {
  max-width: 600px;
  margin-top: 24px;
}
.payout-notice p {
  margin: 0;
}
.payout-details h2 {
  font-size: 22px;
}

/* Structured device disclosure, shared across desktop and mobile. */
.device-editor { min-width:0; margin:12px 0; padding:24px; border:1px solid var(--line); border-radius:12px; background:#f8f9f6; }
.device-editor legend { padding:0 8px; font-size:20px; font-weight:650; }
.device-editor > .field-help { margin:0 0 20px; }
.device-editor .form-grid { min-width:0; }
.form-panel form .device-editor label:not(.device-confirm) { min-width:0; display:flex; flex-direction:column; align-items:stretch; gap:8px; }
.device-editor input,.device-editor select,.device-editor textarea { max-width:100%; box-sizing:border-box; }
.device-editor [hidden],.device-editor[hidden] { display:none!important; }
.device-editor .device-confirm { display:flex; align-items:flex-start; gap:12px; line-height:1.6; }
.device-confirm input { flex:0 0 18px; width:18px; height:18px; margin-top:4px; }
.seller-integrity { margin:24px 0; padding:24px; border-inline-start:3px solid var(--green); background:#f1f5ef; border-radius:0 10px 10px 0; }
.seller-integrity p { line-height:1.7; margin:0 0 10px; }
.seller-integrity-title { font-weight:650; }
.seller-integrity blockquote { margin:16px 0; }
.seller-integrity blockquote p { font-size:16px; }
.seller-integrity cite { font-size:13px; font-style:normal; }
.device-specifications dd { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:650px) {
 .device-editor { padding:18px 14px; margin-inline:0; }
 .device-editor legend { font-size:18px; }
 .seller-integrity { padding:20px 16px; }
 .device-editor .form-grid { grid-template-columns:minmax(0,1fr); }
 .device-specifications > div { grid-template-columns:minmax(0,1fr); gap:6px; }
}

.purchase-device-details { margin:16px 0; }
.purchase-device-details summary { cursor:pointer; font-weight:600; }
.purchase-device-details dl > div { padding:12px 0; border-bottom:1px solid var(--line); }
.purchase-device-details dd { margin:6px 0 0; }

/* Real seller cart and dedicated shipping step. */
.real-cart { max-width:1120px; }
.real-cart-lines { display:grid; gap:20px; margin:28px 0; }
.real-cart-line { display:grid; grid-template-columns:140px minmax(0,1fr) minmax(230px,.7fr); gap:24px; padding:24px; border:1px solid var(--line); border-radius:12px; background:white; }
.real-cart-image img { width:100%; height:150px; object-fit:contain; }
.real-cart-copy h2 { margin:0 0 8px; font-size:22px; overflow-wrap:anywhere; }
.real-cart-copy p { font-size:13px; line-height:1.6; }
.real-cart-copy .quantity { margin-top:16px; }
.real-cart-summary { display:flex; flex-direction:column; align-items:stretch; gap:10px; }
.real-cart-summary p { margin:0; }
.real-cart-summary .button { margin-top:10px; }
.real-cart-line > .text-link { grid-column:2; justify-self:start; }
.real-checkout { max-width:1080px; }
.real-checkout-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); gap:36px; align-items:start; margin-top:28px; }
.real-checkout .pdp-checkout { margin-top:0; }
.real-checkout .summary-box { position:static; min-width:0; }
.real-checkout .summary-box p { line-height:1.7; font-size:14px; }
.checkout-offer-image { width:100%; height:180px; object-fit:contain; background:white; border-radius:8px; }
.real-checkout .pdp-checkout > p { margin-bottom:16px; }
.pdp-purchase-action { display:grid; gap:10px; }
.pdp-offer-sticky .button.outline { display:none; }
@media(max-width:700px) {
 .real-cart-line { grid-template-columns:80px minmax(0,1fr); gap:16px; padding:18px; }
 .real-cart-image img { height:100px; }
 .real-cart-copy h2 { font-size:19px; }
 .real-cart-summary { grid-column:1/-1; border-top:1px solid var(--line); padding-top:16px; }
 .real-cart-line > .text-link { grid-column:1/-1; }
 .real-checkout-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
 .real-checkout h1 { font-size:30px; }
 .real-checkout .summary-box { grid-row:1; padding:20px; }
 .checkout-offer-image { height:110px; }
}
.pdp-live .pdp-offer-details { grid-template-columns:minmax(0,1fr); max-width:960px; }
.real-checkout .summary-box p { text-align:start; }
@media(max-width:700px) {
 .real-checkout .summary-box { display:grid; grid-template-columns:64px minmax(0,1fr); gap:8px 16px; }
 .real-checkout .checkout-offer-image { height:76px; grid-row:1 / span 3; }
 .real-checkout .summary-box h2 { font-size:18px; line-height:1.4; margin:0; }
 .real-checkout .summary-box p { grid-column:2; margin:0; font-size:12px; }
 .real-checkout .summary-box > .text-link,.real-checkout .summary-box > p:last-child { grid-column:1/-1; }
}
