/* Browser layouts share the storefront, listings and checkout routes. */
.website-header,
.home-showpiece,
.market-heading,
.orders-heading {
  display: none;
}

.listing-details {
  margin-block-start: 20px;
}
.goods .pic,
.listing-hero { background: #fff; }
.goods .cond-tag { background: var(--wash); }
.listing-base-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: .875rem;
}
.listing-base-price .price { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.listing-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: .8125rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.listing-heading > span {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--wash);
}
.listing-rent-fields { display: grid; gap: 12px; }
.listing-rent-fields .field { min-width: 0; margin: 0; }
.listing-rent-fields input { min-width: 0; }
#deliverySection label.field > span { display: block; margin-bottom: 8px; font-size: .875rem; }
.checkout-amounts {
  display: grid;
  gap: 10px;
  margin: 0;
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.45;
}
.checkout-amounts > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
.checkout-amounts > [hidden] { display: none; }
.checkout-amounts dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; text-align: end; }
.checkout-amounts .checkout-amount-total { border-top: 1px solid var(--hair); padding-top: 12px; color: var(--ink); font-weight: 650; }
.checkout-amount-total dd { font-size: 1.25rem; }
.website-filing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  color: var(--ink-2);
  font-size: .8125rem;
}
.website-filing a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-underline-offset: .18em;
}

@media (min-width: 561px) and (max-width: 899px) {
  body { padding: 0; align-items: stretch; background: var(--bg); }
  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .view { padding-inline: max(24px, calc((100% - 640px) / 2)); }
  .tabbar { width: min(600px, calc(100% - 24px)); margin-inline: auto; }
}

@media (min-width: 900px) {
  body {
    --website-width: 1240px;
    --website-gutter: clamp(28px, 4vw, 64px);
    display: block;
    padding: 0;
    background: var(--bg);
    overflow-x: visible;
  }
  .phone {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }
  .website-header {
    display: block;
    position: sticky;
    inset-block-start: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--hair);
  }
  .website-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    width: min(var(--website-width), 100% - var(--website-gutter) * 2);
    min-height: 72px;
    margin-inline: auto;
  }
  .website-brand,
  .website-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-radius: 10px;
    color: var(--ink-2);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
  }
  .website-brand .reprise-wordmark { width: 145px; height: 29px; }
  .website-nav { display: flex; align-items: center; gap: 5px; min-width: 0; }
  .website-nav a { padding-inline: clamp(9px, 1.2vw, 17px); white-space: nowrap; }
  .website-nav .website-orders { margin-inline-start: auto; }
  .website-nav a:hover { color: var(--ink); background: var(--wash); }
  .website-nav a[aria-current="page"] {
    color: #294b67;
    background: var(--accent-soft);
  }
  .website-header a:focus-visible,
  .home-showpiece:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
  }

  .appbar { display: none; }
  .tabbar { display: none !important; }
  .view {
    width: min(832px, 100% - var(--website-gutter) * 2);
    flex: 1 0 auto;
    overflow: visible;
    margin-inline: auto;
    padding: 40px 0 72px;
  }
  .view.view-wide { width: min(var(--website-width), 100% - var(--website-gutter) * 2); }
  body.home .view { padding-top: 32px; }
  .view :is([id], [tabindex="-1"]) { scroll-margin-block-start: 90px; }
  #actionBar:not([hidden]) {
    position: sticky;
    bottom: 0;
    z-index: 40;
    margin-bottom: 0;
    padding: 13px max(var(--website-gutter), calc((100% - 832px) / 2));
    border-top: 1px solid var(--hair);
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .view.view-wide + #actionBar:not([hidden]) {
    padding-inline: max(var(--website-gutter), calc((100% - var(--website-width)) / 2));
  }
  .mask { align-items: center; padding: 24px; }
  .sheet { width: min(510px, 100%); border-radius: 20px; padding: 24px; max-height: 86dvh; }
  .order-notice { width: min(570px, 100% - 48px); border-radius: 18px; max-height: min(84dvh, 760px); }
  #toast { bottom: 94px; max-width: min(650px, 80vw); font-size: .875rem; }

  .home-lead {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(30px, 5vw, 72px);
    margin-bottom: 52px;
    min-height: 370px;
  }
  .home-lead .home-hero { padding: 0 0 28px; }
  .home-hero h1 {
    font-size: clamp(2.85rem, 4.6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.09;
    letter-spacing: -.035em;
  }
  .home-hero h1 em { display: block; margin: 0; }
  .home-hero p { margin-block-start: 20px; font-size: 1.0625rem; }
  .home-primary-actions { max-width: 370px; margin-bottom: 0; }
  .home-primary-actions button {
    min-height: 54px;
    padding: 10px 15px;
    border: 1px solid var(--hair);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: none;
  }
  .home-primary-actions button:first-child {
    border-color: #262d35;
    background: #262d35;
    box-shadow: none;
  }
  .home-primary-actions button:hover { border-color: #9aabba; }
  .home-primary-actions button:first-child:hover { background: #374657; }
  .home-showpiece {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--photo-stage);
    color: var(--ink);
    text-decoration: none;
  }
  .home-showpiece-photo {
    height: clamp(275px, 29vw, 395px);
    padding: 26px 34px 34px;
  }
  .home-showpiece-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 23px 17px;
    background: var(--surface);
  }
  .home-showpiece-caption small { display: block; color: var(--ink-2); }
  .home-showpiece-caption strong { display: block; margin-top: 2px; font-size: 1.2rem; }
  .home-showpiece-caption svg { width: 22px; height: 22px; flex-shrink: 0; }
  .home-section-head { margin-bottom: 12px; }
  .home-section-head h2 { font-size: 1.65rem; }
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .product-card { border-radius: 15px; }
  .product-image { height: clamp(155px, 17vw, 226px); padding: 15px 22px; }
  .product-bottom { padding: 16px; }
  .home-service { margin: 34px 0; }
  .home-brands { margin-bottom: 32px; }
  :is(.home-brands, .view-wide) .brand-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    align-items: start;
  }

  .market-heading,
  .orders-heading {
    display: block;
    margin: 0 0 22px;
    font-size: clamp(1.9rem, 3.2vw, 2.65rem);
    line-height: 1.18;
    letter-spacing: -.025em;
  }
  .market-mode { max-width: 360px; }
  .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .goods .pic { height: clamp(165px, 16vw, 224px); }
  .goods .info { padding: 16px; }
  .goods .ttl { min-height: 0; font-size: 1.05rem; }
  .goods .prow .price { font-size: 1.25rem; }
  .goods:hover { border-color: #aebeca; }
  .market-directory { display: flex; gap: 24px; margin-top: 26px; }

  .listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    grid-template-areas: "gallery checkout" "details checkout";
    column-gap: clamp(24px, 4.5vw, 64px);
    align-items: start;
    grid-template-rows: auto 1fr;
  }
  .listing-gallery { grid-area: gallery; }
  .listing-checkout { grid-area: checkout; }
  .listing-details { grid-area: details; }
  .listing-gallery, .listing-checkout, .listing-details { min-width: 0; }
  .listing-rent-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-hero { height: clamp(300px, 33vw, 490px); border-radius: 16px; }
  .listing-detail-photo { padding: 28px; }
  .listing-offer { background: transparent; border: 0; padding: 0 0 16px; box-shadow: none; }
  .listing-heading h1 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); letter-spacing: -.025em; }
}

.refund-heading,
.web-link-heading {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -.025em;
}
.refund-subheading { margin: 25px 0 10px; font-size: 1.125rem; }
.web-link { max-width: 530px; margin: 12px auto; padding: clamp(0px, 2vw, 16px); }
.web-link p { color: var(--ink-2); line-height: 1.65; }
.web-link-token {
  display: grid;
  gap: 8px;
  margin: 22px 0 16px;
  padding: 20px;
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: .875rem;
}
.web-link-token strong {
  color: var(--ink);
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  letter-spacing: .065em;
  font-variant-numeric: tabular-nums;
}
.web-link-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.web-link [hidden] { display: none; }
.web-link-status { min-height: 1.6em; font-size: .9rem; }
.pay-check svg { width: 30px; height: 30px; stroke-width: 2; }
