/* Console picker and quantity table. Self-contained, with fallbacks, so it survives a theme change. */

.rs-picker { border: 0; margin: 0 0 1rem; padding: 0; min-inline-size: 0; }
.rs-picker__legend { padding: 0; margin-bottom: 0.5rem; font: 700 0.75rem/1.2 Silkscreen, "Courier New", monospace; text-transform: uppercase; letter-spacing: 0.02em; }
.rs-picker__current { color: var(--rs-accent, #267a3d); }
.rs-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.5rem; }
.rs-picker__option { position: relative; display: block; }

/* The real radio sits on top, invisible, so it keeps keyboard and screen reader behaviour and a full-size tap area. */
.rs-picker__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.rs-picker__input:disabled { cursor: not-allowed; }
.rs-picker__face {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
	min-height: 3rem; padding: 0.5rem; text-align: center;
	background: var(--rs-surface, #fff); color: var(--rs-ink, #101010); border: 2px solid var(--rs-ink, #101010);
	font: 700 0.875rem/1.2 Lato, system-ui, sans-serif;
}
.rs-picker__img { display: block; width: 3rem; height: 3rem; object-fit: contain; }
.rs-picker__input:hover + .rs-picker__face { border-color: var(--rs-accent, #267a3d); }
.rs-picker__input:checked + .rs-picker__face { background: var(--rs-inv-bg, #070604); border-color: var(--rs-inv-bg, #070604); color: var(--rs-inv-fg, #fff); }
.rs-picker__input:focus-visible + .rs-picker__face { outline: 3px solid var(--rs-ink, #101010); outline-offset: 2px; box-shadow: 0 0 0 5px var(--rs-mint, #79dc8c); }
.rs-picker__input:disabled + .rs-picker__face { opacity: 0.45; text-decoration: line-through; }
.rs-picker__fit { margin: 0.5rem 0 0; min-height: 1.5rem; color: var(--rs-accent, #267a3d); font-weight: 700; }

/* The dropdown stays in the page (it is the source of truth) but is taken out of sight. */
.rs-picker-active .rs-picker__select { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Quantity price table */
.rs-qty { margin: 1rem 0; }
.rs-qty__title { margin: 0 0 0.5rem; font: 400 0.75rem/1.2 Silkscreen, "Courier New", monospace; text-transform: uppercase; }
.rs-qty__table { width: 100%; border-collapse: collapse; background: var(--rs-surface, #fff); color: var(--rs-ink, #101010); }
.rs-qty__table th, .rs-qty__table td { padding: 0.5rem 0.75rem; border: 1px solid var(--rs-grey, #9fa19e); text-align: left; }
.rs-qty__table td:last-child { font-weight: 900; }

/* Delivery and returns lines */
.rs-trustlines { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.9375rem; }
.rs-trustlines li { padding-left: 1.25rem; position: relative; }
.rs-trustlines li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; background: var(--rs-accent, #267a3d); }
