/* WR-SMART-SEQUENCE-20260921. One native-scroll scene with an ordered card reveal. */
body.cine .wr-mattress {
    --wr-header-height: 80px;
    --wr-bottom-inset: env(safe-area-inset-bottom, 0px);
    position: relative;
    isolation: isolate;
    color: var(--ink, #0A1626);
    background-color: var(--bone, #F4F0E9);
    scroll-margin-top: 90px;
}
body.cine .wr-mattress-track { position: relative; }
body.cine .wr-mattress-stage {
    position: relative;
    height: auto;
    min-height: calc(100vh - var(--wr-header-height) - var(--wr-bottom-inset));
    min-height: calc(100svh - var(--wr-header-height) - var(--wr-bottom-inset));
    display: grid;
    place-items: center;
    background-color: var(--bone, #F4F0E9);
}
body.cine .wr-mattress-ready .wr-mattress-track {
    height: 740vh;
    height: 740svh;
}
body.cine .wr-mattress-ready .wr-mattress-stage {
    position: sticky;
    top: var(--wr-header-height);
    height: calc(100vh - var(--wr-header-height) - var(--wr-bottom-inset));
    height: calc(100svh - var(--wr-header-height) - var(--wr-bottom-inset));
    min-height: 0;
}
body.cine .wr-mattress-canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    pointer-events: none;
}
body.cine .wr-mattress-canvas[hidden],
body.cine .wr-mattress-fallback[hidden] { display: none; }
body.cine .wr-mattress-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
body.cine .wr-mattress-fallback { width: 100%; text-align: center; padding: 30px 24px; }
body.cine .wr-mattress-fallback-kicker {
    margin: 0 0 10px;
    color: var(--brass-ink, #84682E);
    font: 700 clamp(10px, .9vw, 13px)/1.2 var(--sans, Arial, sans-serif);
    letter-spacing: .2em;
    text-transform: uppercase;
}
body.cine .wr-mattress-fallback-title {
    max-width: 18ch;
    margin: 0 auto 14px;
    font: 400 clamp(34px, 5vw, 76px)/.96 var(--serif, "Instrument Serif", Georgia, serif);
    color: var(--ink, #0A1626);
    letter-spacing: -.025em;
    text-transform: uppercase;
}
body.cine .wr-mattress-poster {
    width: min(82%, 920px, 115svh);
    aspect-ratio: 1325 / 512;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}
body.cine .wr-mattress-poster img {
    position: absolute;
    width: 102.7924528302%;
    max-width: none;
    height: auto;
    top: -100.9765625%;
    left: -1.4339622642%;
}
body.cine .wr-mattress-size { margin: 20px 0 0; color: var(--muted, #58626E); font-size: 14px; }
body.cine .wr-mattress-details { width: 100%; padding: 32px var(--pad, 5vw) 72px; }
body.cine .wr-mattress-ready .wr-mattress-details { position: absolute; inset: 0; padding: 0; pointer-events: none; }
body.cine .wr-mattress-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: clamp(20px, 2.2vw, 34px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    border: 1px solid rgba(10, 22, 38, .13);
    border-radius: 12px;
    background-color: rgba(250, 248, 244, .97);
    box-shadow: 0 18px 48px -30px rgba(10, 22, 38, .2);
    overflow-wrap: anywhere;
}
body.cine .wr-mattress-ready .wr-mattress-card {
    position: absolute;
    margin: 0;
    max-width: none;
    overflow: auto;
    scrollbar-width: thin;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
body.cine .wr-mattress-card > .cine-eyebrow { color: var(--brass-ink, #84682E); }
body.cine .wr-mattress-card > h2 { margin: 0; font: 400 clamp(30px, 2.8vw, 46px)/1.02 var(--serif, "Instrument Serif", Georgia, serif); letter-spacing: -.025em; }
body.cine .wr-mattress-table { width: 100%; margin: 2px 0 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.65; }
body.cine .wr-mattress-table caption { padding: 0 0 11px; text-align: left; border-bottom: 1px solid var(--line, rgba(22,32,44,.14)); color: var(--muted, #58626E); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
body.cine .wr-mattress-table th,
body.cine .wr-mattress-table td { padding: 16px 0 0; text-align: left; vertical-align: top; border: 0; overflow-wrap: anywhere; }
body.cine .wr-mattress-table th { width: 112px; padding-right: 22px; color: var(--brass-ink, #84682E); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
body.cine .wr-mattress-table td { color: var(--muted, #58626E); font-size: 15px; }
body.cine .wr-mattress-rich > :first-child { margin-top: 0; }
body.cine .wr-mattress-rich > :last-child { margin-bottom: 0; }
body.cine .wr-mattress-rich p { margin: 0 0 9px; line-height: 1.65; }
body.cine .wr-mattress-rich ul,
body.cine .wr-mattress-rich ol { margin: 0; padding-left: 18px; }
body.cine .wr-mattress-rich a { text-decoration: underline; }
body.cine .wr-mattress-rich .product-spec-line { padding: 7px 0; }
body.cine .wr-mattress-rich .product-spec-line + .product-spec-line { border-top: 1px solid var(--line, rgba(22,32,44,.14)); }
body.cine .wr-mattress-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
body.cine .wr-mattress-price b { font: 500 clamp(28px, 2.4vw, 38px)/1.1 var(--sans, Arial, sans-serif); color: var(--ink, #0A1626); }
body.cine .wr-mattress-price s { color: var(--muted, #58626E); font-size: 15px; }
body.cine .wr-mattress-actions { display: flex; flex-wrap: wrap; gap: 12px; }
body.cine .wr-mattress-actions .btn { flex: 1 1 130px; min-height: 44px; height: auto; padding: 12px 16px; text-align: center; }
body.cine .wr-mattress-visit { margin: 0; color: var(--muted, #58626E); font-size: 11px; letter-spacing: .06em; line-height: 1.5; text-transform: uppercase; }
@media (max-width: 820px) {
    body.cine .wr-mattress { --wr-bottom-inset: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 699px) {
    body.cine .wr-mattress-fallback { padding: 24px 16px; }
    body.cine .wr-mattress-poster { width: 100%; }
    body.cine .wr-mattress-details { padding: 24px 16px 40px; }
    body.cine .wr-mattress-card { padding: 18px; gap: 14px; font-size: 16px; }
    body.cine .wr-mattress-card > .cine-eyebrow { font-size: 12px; }
    body.cine .wr-mattress-table { font-size: 16px; line-height: 1.6; }
    body.cine .wr-mattress-table th,
    body.cine .wr-mattress-table td { display: block; width: auto; }
    body.cine .wr-mattress-table th { padding: 14px 0 7px; font-size: 10px; }
    body.cine .wr-mattress-table td { padding-top: 0; font-size: 16px; }
    body.cine .wr-mattress-visit { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    body.cine .wr-mattress-ready .wr-mattress-track { height: auto; }
    body.cine .wr-mattress-ready .wr-mattress-stage { position: relative; top: auto; height: auto; }
}

/* Card details, 28 Sep 2026: size range, headline specs, compact description. */
body.cine .wr-mattress-price { margin-top: -4px; }
body.cine .wr-mattress-price .pdp-from { color: var(--muted, #58626E); font: 500 13px/1 var(--sans, Arial, sans-serif); letter-spacing: .02em; }
body.cine .wr-mattress-sizes { margin: -12px 0 0; color: var(--muted, #58626E); font: 500 13px/1.4 var(--sans, Arial, sans-serif); font-variant-numeric: tabular-nums; }
body.cine .wr-mattress-rich { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.cine .wr-mattress-specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line, rgba(22,32,44,.14)); }
body.cine .wr-mattress-specs > div { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line, rgba(22,32,44,.14)); }
body.cine .wr-mattress-specs > div:nth-child(even) { padding: 12px 0 12px 14px; border-left: 1px solid var(--line, rgba(22,32,44,.14)); }
body.cine .wr-mattress-specs dt { margin: 0 0 4px; color: var(--brass-ink, #84682E); font: 700 10px/1.3 var(--sans, Arial, sans-serif); letter-spacing: .1em; text-transform: uppercase; }
body.cine .wr-mattress-specs dd { margin: 0; color: var(--ink, #0A1626); font: 500 14px/1.4 var(--sans, Arial, sans-serif); }
/* Phones: the card must fit one screen with its buttons, so the spec grid is
   left to the product page ("Full specifications"). */
@media (max-width: 820px) {
    body.cine .wr-mattress-specs { display: none; }
}
