/* Contrast fixes (WCAG AA) for every theme: day, dusk, dawn, night and time-travelled.
   Night keeps its light text, so every surface that carries text goes dark with it (no cream panels under pale text). */

/* bag + favourites rows: the cream frame's fill painted over the night background */
html:root[data-dc-dark] body[data-page="favourites"] .saved-row,
html:root[data-dc-dark] body[data-page="bag"] .saved-row { border-image-source: url('./pixel/frame-wood-night.png'); background: #241e3c; color: #efe7f6; }
html:root[data-dc-dark] .saved-row h2 a { color: #efe7f6; }
html:root[data-dc-dark] .saved-row .eyebrow { color: #ffb48a; }
html:root[data-dc-dark] .saved-meta { color: #d9cfe8; }
html:root[data-dc-dark] .saved-row .quiet-button { color: #ffc9a8; }
/* the "5 items" bar */
html:root .saved-count { color: #221b20; }
html:root[data-dc-dark] .saved-count { border-image-source: url('./pixel/frame-wood-night.png'); background: #241e3c; color: #efe7f6; }
/* checkout panel and its lower-total prompt */
html:root[data-dc-dark] .checkout-panel { background: #241e3c; border-color: #8c7aa8; color: #efe7f6; }
html:root[data-dc-dark] .checkout-panel .co-note { opacity: 1; color: #d9cfe8; }
html:root[data-dc-dark] .checkout-panel select { background: #fff8eb; color: #221b20; }
.checkout-panel .co-note { opacity: 1; color: #5b4a40; }
html:root[data-dc-dark] .co-choice .co-skip:disabled { opacity: .7; }

/* product page details and breadcrumbs sit on the page, which is dark at night */
html:root[data-dc-dark] .breadcrumbs, html:root[data-dc-dark] .breadcrumbs a { color: #e6dcf0; }

/* London page: the gold button under the chalkboard keeps dark text; the cork board heading goes light */
.px-chalk a.button-gold, .px-chalk .button.button-gold, html:root a.button.button-gold { color: #221b20; }
.london-board h2 { color: #fff3e0; text-shadow: 1px 1px 0 #3b2414; }
html:root .px-caption, html:root .london-panorama figcaption { color: #3a2a24 !important; background: #e8d2ae !important; }
html:root[data-dc-dark] .px-caption, html:root[data-dc-dark] .london-panorama figcaption { color: #efe7f6 !important; background: #2a2438 !important; }
/* London spot buttons: cream wood by day, night wood after dark, text flips with them */
html:root .lw-spot span, html:root .lw-spot .lw-note { color: #221b20; }
html:root[data-dc-dark] .lw-spot { border-image-source: url('./pixel/frame-wood-night.png'); background: #241e3c; }
html:root[data-dc-dark] .lw-spot span, html:root[data-dc-dark] .lw-spot .lw-note { color: #efe7f6; }

/* brand + collection cards: text flips at the same moment as its panel (no half-way grey on grey) */
html:root .brand-card > span { background: #fff8eb !important; color: #221b20; }
html:root[data-dc-dark] .brand-card > span { background: #1d1830 !important; color: #efe7f6; }
html:root .brand-card small { color: #5b4a40; }
html:root[data-dc-dark] .brand-card small { color: #d9cfe8; }

/* the loud price buttons stay loud, with AA text */
.cheaper-btn { background: #c8284f; }
.cheaper-btn:hover { background: #d02f58; }
.cheaper-btn[data-level="1"] { background: #b8441f; }
.cheaper-btn.pricier-btn:not(:disabled) { background: #12774f; }
.cheaper-btn.pricier-btn:not(:disabled):hover { background: #0f6f49; }
.cheaper-btn:disabled { background: #6f6a75; color: #fff8e6; }

/* the quiet scene buttons: still small paper/plaque objects, but readable */
.grav-button { opacity: .8 !important; color: #1a0f08 !important; }
.grav-button:hover, .grav-button:focus-visible { opacity: 1 !important; }
html:root .tt-button { color: rgba(255, 225, 148, .68); }
html:root .tt-button[aria-pressed="true"] { color: rgba(214, 190, 255, .78); }
html:root .tt-button:hover, html:root .tt-button:focus-visible { color: #ffe194; }
html:root .tt-button[aria-pressed="true"]:hover { color: #d9c2ff; }
.grav-wrap { padding-right: 10px; max-width: 100%; box-sizing: border-box; overflow: visible; }
