.cart-page-heading { margin-block: clamp(18px, 3.8vw, 40px) 18px; }
.cart-page-heading h1 { font-size: clamp(2rem, 5.4vw, 3.5rem); }
.cart-page-heading > p { margin-top: 9px; }
.cart-preview-notice {
  max-width: 68ch;
  padding: 10px 14px;
  border-inline-start: 3px solid var(--brand);
  background: var(--soft);
  color: var(--muted);
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(275px, 1fr);
  align-items: start;
  gap: clamp(18px, 4vw, 42px);
  margin-top: clamp(20px, 3.5vw, 36px);
}
.cart-layout:has(> [data-cart-filled][hidden]) { grid-template-columns: 1fr; }
.cart-main, .cart-summary { min-width: 0; }
.cart-main > h2, .cart-summary h2, .checkout-step h2, .cart-page-empty h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}
.cart-main > h2 { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.cart-summary {
  padding: clamp(16px, 3vw, 27px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.cart-page-empty {
  margin-top: 18px;
  padding: clamp(18px, 4vw, 32px);
  border: 1px dashed #a9c4cc;
  border-radius: var(--radius);
}
.cart-page-empty p { margin-block: 5px 12px; color: var(--muted); }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 17px; }
.cart-actions .button, .cart-page-empty .button { font-size: 1rem; }
.cart-actions .button:not(.button--secondary), .cart-page-empty .button:not(.button--secondary) { background: var(--brand-text); }
.cart-actions .button:not(.button--secondary):hover, .cart-page-empty .button:not(.button--secondary):hover { background: var(--brand-hover); }
.cart-summary .cart-actions > * { width: 100%; text-align: center; }
.cart-summary .cart-actions .text-link { min-height: 44px; align-content: center; }
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #cbdee4;
  font-weight: 700;
}
.cart-subtotal-row dd { margin: 0; }
.cart-page-items { margin: 0; padding: 0; list-style: none; }
.cart-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cart-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  grid-template-areas: "image copy total" "image quantity remove";
  align-items: start;
  gap: 8px 13px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-item-image {
  grid-area: image;
  width: 100%;
  aspect-ratio: 1;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  object-fit: contain;
}
.cart-item:not(:has(.cart-item-image)) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy total" "quantity remove"; }
.cart-item-copy { grid-area: copy; line-height: 1.3; overflow-wrap: anywhere; }
.cart-item-copy small, .cart-item-copy > span { display: block; color: var(--muted); font-size: .86rem; }
.cart-item-copy > span:empty { display: none; }
.cart-item-copy a, .cart-item-copy strong { display: block; margin-block: 3px; font-weight: 720; }
.cart-item-copy a { text-underline-offset: 3px; }
.cart-item-copy a:hover { color: var(--brand-text); }
.cart-item-total { grid-area: total; font-variant-numeric: tabular-nums; }
.cart-item-quantity {
  grid-area: quantity;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  border: 1px solid #a9c4cc;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.cart-item-quantity span { min-width: 2ch; text-align: center; }
.cart-item-quantity button {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--brand-text);
  font-weight: 750;
}
.cart-item-quantity button:hover:not(:disabled) { background: var(--soft); }
.cart-item-quantity button:disabled { color: var(--muted); opacity: .55; cursor: default; }
.cart-item-remove {
  grid-area: remove;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--brand-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.checkout-step {
  padding: clamp(15px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.checkout-step + .checkout-step { margin-top: 12px; }
.checkout-sample-address, .checkout-method, .checkout-summary-note { margin-top: 9px; color: var(--muted); }
.checkout-summary-note { font-size: .9rem; }
.checkout-summary-totals { margin-block: 0; }
.checkout-items .cart-item { grid-template-areas: "image copy total"; grid-template-columns: 52px minmax(0, 1fr) auto; }
.checkout-items .cart-item:not(:has(.cart-item-image)) { grid-template-areas: "copy total"; grid-template-columns: minmax(0, 1fr) auto; }
.checkout-items .cart-item:last-child { border-bottom: 0; }
.checkout-items .cart-item-quantity { margin-top: 4px; border: 0; color: var(--muted); font-size: .85rem; }

.service-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4.8vw, 64px);
  padding: clamp(20px, 4.5vw, 56px);
  border-radius: var(--radius);
  background: var(--section-dark);
  color: var(--white);
}
.service-intro:has(> .service-media) { padding-inline-end: clamp(20px, 3.6vw, 46px); }
.service-intro:not(:has(> .service-media)) { grid-template-columns: minmax(0, 1fr); }
.service-intro h1 { max-width: 15ch; font-size: clamp(2.2rem, 5.2vw, 4.1rem); }
.service-intro p { max-width: 54ch; margin-top: 12px; color: #e3f1f3; }
.service-intro .text-link { color: #d9f2f6; }
.service-intro :focus-visible { outline-color: #94e6ef; }
.service-media { overflow: hidden; border-radius: 12px; }
.service-media img, img.service-media { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
  margin-top: clamp(18px, 3.6vw, 42px);
}
.service-grid:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(17px, 2.7vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.service-card:has(> .service-media) { overflow: hidden; padding: 0; }
.service-card > .service-media { width: 100%; border-radius: 0; }
.service-card-body { display: flex; flex: 1; flex-direction: column; width: 100%; padding: clamp(17px, 2.6vw, 26px); }
.service-card-body > .text-link { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; min-height: 44px; margin-top: auto; }
.service-card-body > p { margin-bottom: 8px; }
.service-card h2, .service-legacy h2 { font-size: clamp(1.22rem, 2.1vw, 1.65rem); }
.service-card p, .service-legacy p, .service-guides p { margin-top: 8px; color: var(--muted); }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 15px; }
.service-card .service-actions { margin-top: auto; }
.service-actions .button { font-size: 1rem; }
.service-card .button:not(.button--secondary) { background: var(--brand-text); }
.service-card .button:not(.button--secondary):hover { background: var(--brand-hover); }
.service-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 4px; }
.service-guides, .service-legacy { margin-top: clamp(26px, 5vw, 56px); }
.service-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.service-models a { display: flex; align-items: center; min-height: 46px; height: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--brand-text); font-weight: 700; }
.service-models a:hover { background: var(--soft); }
.service-legacy { padding: clamp(16px, 3vw, 26px); border-radius: var(--radius); background: var(--soft); }

.refurbished-intro { position: relative; isolation: isolate; background: #0c262d; color: var(--white); }
.refurbished-intro::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #091e25e8 0%, #091e25d9 28%, #091e2570 49%, transparent 67%);
  content: "";
}
.refurbished-intro-media { position: absolute; z-index: -2; inset: 0; display: block; }
.refurbished-intro-media img { width: 100%; height: 100%; object-fit: cover; object-position: right 54%; }
.refurbished-intro-inner { display: flex; align-items: center; min-height: clamp(390px, 39vw, 580px); padding-block: 36px; }
.refurbished-intro-copy { width: min(49%, 540px); }
.refurbished-intro h1 { max-width: 15ch; font-size: clamp(2.35rem, 5.2vw, 4.6rem); line-height: 1.02; }
.refurbished-intro h1 span { display: block; margin-top: 7px; color: #c7eaf0; font-size: .72em; }
.refurbished-intro p { max-width: 37ch; margin-top: 19px; color: #e3f1f3; }
.refurbished-intro p strong { display: block; margin-bottom: 4px; color: #f5dfac; }
.refurbished-intro .service-actions { padding-top: 20px; }
.refurbished-intro .button:not(.button--secondary) { background: #d9f2f6; color: #123d49; }
.refurbished-intro .button:not(.button--secondary):hover { background: #effafd; }
.refurbished-intro .button--secondary { border-color: #b6d1d9; background: #102d36; color: var(--white); }
.refurbished-intro .button--secondary:hover { background: #204954; }
.refurbished-intro :focus-visible { outline-color: #94e6ef; }
.refurbishment-process {
  margin-block-start: clamp(26px, 4vw, 48px);
  color: var(--white);
  scroll-margin-top: 16px;
}
.refurbishment-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 4px 20px; }
.refurbishment-heading p { max-width: 62ch; margin-top: 8px; color: #e3f1f3; }
.refurbishment-heading a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: #d9f2f6; }
.refurbishment-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); margin: 16px 0 0; padding: 0; list-style: none; }
.refurbishment-step { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.refurbishment-step img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.refurbishment-step > div { padding: clamp(12px, 1.6vw, 18px); }
.refurbishment-step-number { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-text); color: var(--white); font-size: .9rem; font-weight: 750; }
.refurbishment-step h3 { margin-top: 8px; font-size: clamp(1.02rem, 1.5vw, 1.25rem); }
.refurbishment-step p { margin-top: 7px; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.refurbishment-image-note { margin-top: 12px; color: #d9f2f6; font-size: .85rem; }
.refurbished-page .refurbished-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 20px); margin-top: 18px; }
.refurbished-card > img.service-media { aspect-ratio: 1.35; object-fit: contain; padding: 8px; background: var(--white); }
.refurbished-card:target { outline: 3px solid var(--brand-text); outline-offset: 3px; }
.refurbished-card--linked { position: relative; }
.refurbished-card--linked:hover { border-color: var(--brand-text); }
.refurbished-card--linked:focus-within { outline: 3px solid var(--brand-text); outline-offset: 3px; }
.refurbished-product-link::after { position: absolute; inset: 0; content: ""; }
.refurbished-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.refurbished-card-actions .refurbished-product-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.refurbished-card-actions .wishlist-save { position: relative; z-index: 1; }
.refurbished-card h3 { font-size: 1.45rem; }
.refurbished-card-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; }
.refurbished-stock { font-size: .83rem; font-weight: 760; }
.refurbished-stock--available { color: #206447; }
.refurbished-stock--unavailable { color: var(--muted); }
.refurbished-card .refurbished-sku { margin-bottom: 6px; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.refurbished-card .refurbished-condition, .refurbished-savings {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f6e8c8;
  color: #5d3f0a;
  font-size: .83rem;
  font-weight: 760;
}
.refurbished-card .refurbished-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: 6px; font-size: .85rem; }
.refurbished-price strong { color: var(--brand-text); font-size: clamp(1.3rem, 2.3vw, 1.7rem); }
.refurbished-price > span:not(.refurbished-savings) { white-space: nowrap; }
.refurbished-snapshot { max-width: 76ch; font-size: .9rem; }
.refurbished-policy { padding: clamp(16px, 3.4vw, 30px); border-radius: var(--radius); background: var(--soft); }
.refurbished-policy h2 { font-size: clamp(1.4rem, 2.9vw, 2rem); }
.refurbished-policy .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.refurbished-faq-list { margin-top: 14px; border-top: 1px solid var(--line); }
.refurbished-faq-list details { padding-block: 8px; border-bottom: 1px solid var(--line); }
.refurbished-faq-list summary { min-height: 44px; padding-block: 9px; cursor: pointer; font-weight: 720; }
.refurbished-faq-list p { max-width: 72ch; margin: 0 0 10px 15px; }

@media (max-width: 880px) {
  .refurbishment-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refurbished-page .refurbished-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .refurbished-intro::before { content: none; }
  .refurbished-intro-media { position: static; }
  .refurbished-intro-media img { height: auto; max-height: 340px; aspect-ratio: 768 / 506; object-position: center 58%; }
  .refurbished-intro-inner { min-height: 0; padding-block: 24px 30px; }
  .refurbished-intro-copy { width: 100%; }
  .refurbished-intro h1 { font-size: clamp(2.05rem, 7.8vw, 3.25rem); }
  .refurbished-intro p { margin-top: 14px; }
  .refurbished-intro .service-actions { padding-top: 14px; }
}

@media (max-width: 720px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; }
  .service-intro, .service-grid, .service-grid:has(> :nth-child(3)) { grid-template-columns: minmax(0, 1fr); }
  .service-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .cart-item { grid-template-areas: "image copy total" "quantity quantity remove"; }
  .refurbished-card > img.service-media { max-height: 190px; }
  .refurbished-card .service-card-body { padding: 11px; }
}

@media (max-width: 560px) {
  .refurbishment-steps { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
}
