/* Preserve Prism V3 and Photo story, including their own responsive rules. */
.purchase-recovery{max-width:760px;margin:clamp(28px,6vw,80px) auto;padding:clamp(24px,4vw,48px);background:#f5f3eb;border-radius:28px}
.purchase-recovery h1{font-size:clamp(26px,3vw,36px);line-height:1.2}.purchase-recovery p{font-size:16px;line-height:1.55;margin:20px 0}.purchase-recovery .button{min-height:44px}
.ps-tiers{grid-template-columns:repeat(var(--tier-count,3),minmax(0,1fr))}
.ps-hero .ps-photo{object-fit:cover}.ps-description{overflow-wrap:break-word}
.approved-feedback-shell .button{min-height:44px}.approved-feedback-shell textarea{color:#293936}
@media(max-width:600px){.purchase-recovery{margin:24px 16px}.ps-tiers strong{overflow-wrap:break-word}}
@media(prefers-reduced-motion:reduce){.motion-in{animation:none!important}}

.replacement-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:28px}.replacement-options article{background:white;border-radius:24px;padding:24px}.replacement-options h2{font-size:23px}.replacement-options .button{border:1px solid #dde5df}@media(max-width:600px){.replacement-options{grid-template-columns:1fr}}

.ps-tiers::after { width: calc((100% + 8px) / var(--tier-count, 3) - 8px); }
.ps-selection:has(.ps-tiers > button:only-child) :is(.ps-label, .ps-tiers) { display: none; }
.ps-page .ps-browser:has(.ps-categories[hidden]) { grid-template-columns: minmax(0, 1fr); }
.ps-page :is(.ps-categories, [data-ps-all])[hidden] { display: none; }
.ps-page #ps-search-count:not(.sr-only) { margin: 0 0 16px; }
.ps-page .pc-detail .pc-full-label { display: inline; }
.ps-page .pc-detail .pc-short-label { display: none; }
.ps-page .ps-map-close-short { display: none; }

@media (max-width: 380px) {
  .ps-page .ps-tiers button { padding-inline: 4px; }
}

@media (max-width: 700px) {
  .ps-page .ps-marker-tools { flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
  .ps-page .ps-marker-tools .ps-search { flex: 1 1 15rem; max-width: none; }
  .ps-page .ps-marker-tools [data-ps-all] { flex: none; max-width: 100%; margin-left: 0; }
  .ps-page .ps-location-card.is-expanded .ps-inline-header {
    align-items: flex-start;
    gap: 8px 12px;
    flex-wrap: wrap;
  }
  .ps-page .ps-inline-header > div { flex: 1 1 9rem; min-width: 0; }
  .ps-page .ps-inline-header h3 { overflow-wrap: break-word; }
  .ps-page .ps-map-close-short { display: inline; }
  .ps-page .ps-map-close-full { display: none; }
  /* Keep the version buttons above the copy that changes when they are tapped. */
  .ps-page .ps-summary:has(.ps-tiers > button:nth-child(2)) {
    display: flex;
    flex-direction: column;
  }
  .ps-page .ps-summary:has(.ps-tiers > button:nth-child(2)) .ps-selection { margin-top: 0; }
  .ps-page .ps-summary:has(.ps-tiers > button:nth-child(2)) .ps-description { order: 1; margin-top: 12px; }
  .ps-page .ps-summary .ps-purchase { order: 2; margin-top: 16px; }
  .ps-page :is(.ps-description, .ps-tier-note, .ps-purchase, .ps-about) [data-ps-content][aria-hidden=true] {
    display: none;
  }
  .ps-page .ps-description { min-height: 0; }
  .ps-page .ps-selection:has(.ps-tiers > button:only-child) { margin-top: 0; }
  .ps-page .pc-detail { --report-inset: clamp(14px, 4vw, 22px); }
  .ps-page .pc-detail .pc-full-label { display: none; }
  .ps-page .pc-detail .pc-short-label { display: inline; }
  .ps-page .pc-detail-header {
    align-items: flex-start;
    gap: 12px;
    padding: var(--report-inset);
  }
  .ps-page .pc-detail-header .button { flex: none; min-height: 44px; padding: 8px 15px; }
  .ps-page .pc-detail-photo > div:first-child { padding: var(--report-inset); }
  .ps-page .pc-detail-photo .pc-photo-visual { height: clamp(112px, 34vw, 180px); }
  .ps-page .pc-photo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
  }
  .ps-page .pc-photo-tabs button {
    flex: 1 0 auto;
    min-height: 44px;
    padding: 8px 6px;
    white-space: nowrap;
  }
  .ps-page .pc-detail-photo > div:last-child { padding: 20px var(--report-inset); }
  .ps-page .pc-stage-report > .pc-layer[aria-hidden=true] { display: none; }
  .ps-page .pc-review-report > h3 { margin: 14px 0 8px; }
  .ps-page .pc-review-checks { gap: 10px; margin-top: 16px; }
  .ps-page .pc-stage-report .pc-report-note { margin: 16px 0 0; }
  .ps-page .ps-purchase { flex-wrap: wrap; }
  .ps-page .ps-purchase > .button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

body:has(.eh-review-nav) #compare-tray{bottom:calc(var(--review-bar-height,96px) + 18px)!important}
#main:has(>.loading),#checkout:has(>.loading){min-height:75vh;padding:40px 6%}

.purchase-recovery .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 20px;border-radius:999px;text-decoration:none;font:inherit;font-weight:600;border:1px solid #e3e7df;background:white;color:#293936}.purchase-recovery .button.pink{background:#f73669;color:white;border-color:#f73669}

.purchase-state-notice{max-width:var(--page-max,1280px);margin:24px auto;padding:20px 24px;border:1px solid #dce4df;border-radius:24px;background:#f5f3eb}.purchase-state-notice h2{font:var(--ui-type-section-title,600 20px/1.3 sans-serif);margin:0 0 8px}.purchase-state-notice p{margin:0 0 16px}.purchase-state-notice .button{min-height:44px}
@media(max-width:600px){.purchase-state-notice{margin:16px;padding:20px}}

/* A tier can change the card height. Keep the browser from anchoring the
   document to its replaced description or price while the user is tapping. */
.catalogue :is(.featured-card, .discovery-card) {
  overflow-anchor: none;
}

@media (max-width: 650px) {
  body.with-tray:has(> .approved-feedback-shell):not(:has(.eh-review-nav)) #compare-tray {
    bottom: calc(68px + env(safe-area-inset-bottom));
  }

  #detail .dialog-bar {
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  #detail .dialog-bar .popup-area { display: none; }
  #detail .dialog-bar .full-test-page { order: 0; }
  #detail .review-product-preview {
    display: flex;
    flex-direction: column;
    overflow-anchor: none;
  }
  #detail .review-product-photo {
    flex: none;
    aspect-ratio: 5 / 2;
    border-radius: 16px;
  }
  #detail .review-product-photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  #detail .review-product-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  #detail .review-product-copy > :is(p, .review-product-price, .button) { order: 1; }
  #detail .review-product-copy p + p { margin-top: 12px; }
  #detail .review-product-copy .model-options + p { margin-top: 12px; }
  #detail .review-product-copy .model-options { margin: 0 0 14px; }

  #comparison:not(.family-comparison) .compare-columns { gap: 10px; }
  #comparison:not(.family-comparison) .compare-columns > article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    grid-template-areas: "photo title remove" "photo meta meta" ". action action";
    align-items: center;
    gap: 4px 8px;
    padding: 12px;
  }
  #comparison .compare-stage {
    grid-area: photo;
    align-self: start;
    height: 58px;
    margin: 0;
    border-radius: 10px;
  }
  #comparison:not(.family-comparison) .compare-columns h2 {
    grid-area: title;
    margin: 0;
    overflow-wrap: anywhere;
  }
  #comparison .compare-meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
  }
  #comparison .compare-meta p { margin: 0; }
  #comparison .remove { grid-area: remove; position: static; }
  #comparison:not(.family-comparison) .compare-columns .button {
    grid-area: action;
    justify-self: start;
    margin: 4px 0 0;
  }
  #comparison .matrix {
    table-layout: fixed;
    min-width: calc(100px + var(--test-count) * 75px);
  }
  #comparison .matrix :is(th, td) {
    padding: 10px 6px;
    overflow-wrap: anywhere;
  }
  #comparison .matrix th:first-child {
    position: sticky;
    left: 0;
    width: 100px;
    background: white;
  }
  #comparison .matrix thead th:first-child { background: #f4f6f8; }
}

/* November feedback: a calmer catalogue, with room around variant descriptions. */
body[data-connected="true"]:has(.catalogue-intro) #main{width:100%;min-width:0;max-width:1180px;margin-inline:auto}
body[data-connected="true"] .catalogue-intro{padding-block:20px 24px;align-items:center}
body[data-connected="true"] .catalogue-intro h1{font-size:28px}
body[data-connected="true"] .featured-copy{padding-top:50px}
body[data-connected="true"] .featured-description-group p{margin-top:18px;margin-bottom:8px}
body[data-connected="true"] .featured-description-group{padding-bottom:20px}
body[data-connected="true"] .catalogue .compare-toggle{min-height:44px;padding:6px 10px;gap:6px;font-size:13px;background:transparent;border-color:transparent;box-shadow:none;isolation:isolate}
body[data-connected="true"] .catalogue .compare-toggle::before{content:"";position:absolute;inset:6px 0;border:1px solid #dce4df;border-radius:999px;background:white;z-index:-1}
body[data-connected="true"] .catalogue .compare-toggle[aria-pressed="true"]::before{border-color:currentColor;background:#e6f2eb}
@media (max-width: 650px) {
  body[data-connected="true"] .featured-card.approved-centered .featured-description-group > p { padding: 8px 22px 0; margin: 0; }
  body[data-connected="true"] .featured-card.approved-centered .featured-footer { padding-top: 14px; }
  body[data-connected="true"] .catalogue-intro h1 { font-size: 26px; }
}
@media(min-width:1100px) and (max-height:800px){body[data-connected="true"] .featured-copy{padding-top:18px}}

@media(min-width:1100px){body[data-connected="true"] .catalogue .focus-rail{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:0;overflow:visible}body[data-connected="true"] .catalogue .focus-item{min-width:0;width:auto;padding-inline:3px;font-size:13px}}

@media(min-width:1100px){body[data-connected="true"] .catalogue .focus-item>span:last-child{white-space:normal;max-width:100%;text-align:center}body[data-connected="true"] .catalogue .focus-item{padding-inline:8px}}

.purchase-recovery .replacement-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.purchase-recovery .replacement-options article{background:#f7f2df;border:0;border-radius:26px;padding:28px;text-align:center}.purchase-recovery .replacement-options article:nth-child(even){background:#f3e9ee}.purchase-recovery .replacement-options img{display:block;width:140px;height:140px;object-fit:contain;margin:24px auto}.purchase-recovery .replacement-options .button{display:flex;width:100%;margin-top:20px}@media(max-width:760px){.purchase-recovery .replacement-options{grid-template-columns:1fr}}

/* Gift card line under the price on the product documents (approved gift card screen 1). */
.ps-summary .voucher-line{margin:18px 0 0}
/* The page's own ink, as the price and title above it, rather than the muted paragraph grey. */
.ps-summary .voucher-line a{color:var(--ink,#292b2e);font-weight:600;text-decoration:underline;text-underline-offset:3px}

@media (max-width: 760px) {
  #checkout:has(.photo-layout) { overflow-anchor: none; }
}
@media (max-width: 480px) {
  .checkout-top:has(.preview-tag) { align-items: flex-start; flex-direction: column; gap: 2px; padding-bottom: 12px; }
  .checkout-top:has(.preview-tag) a { min-height: 44px; }
}
