/* Tester box (owner 2026-11-15): a white presentation box with 8 places; clear 5 ml vials, gold cap for her, silver for
   him / both (the real testers), the liquid in the house red. Phones: a bottom sheet; wider: a centred card. */
.rn-red{color:var(--rn-accent,#b4232c);font-style:normal;font-weight:700}
.rn-tbox{width:min(40rem,100%);max-width:100%;max-height:100dvh;margin:auto;padding:0;border:0;background:transparent;color:var(--rui-text,#141311)}
.rn-tbox::backdrop{background:rgb(20 19 17 / .55)}
.rn-tbox__sheet{display:grid;gap:1rem;max-height:min(92dvh,52rem);overflow:auto;padding:1.25rem;background:var(--rui-surface,#fff);border-radius:var(--rn-size-radius,0)}
@media (max-width:40rem){.rn-tbox{margin:auto 0 0;width:100%}.rn-tbox__sheet{max-height:92dvh;border-radius:14px 14px 0 0;padding:1rem}}
.rn-tbox[open] .rn-tbox__sheet{animation:rn-tbox-in .35s cubic-bezier(.22,1,.36,1)}
@keyframes rn-tbox-in{from{transform:translateY(24px);opacity:0}}
.rn-tbox__head{display:flex;align-items:start;justify-content:space-between;gap:1rem}
.rn-tbox__head h2{margin:0;font-size:1.25rem;font-weight:700}
.rn-tbox__head p{margin:.2rem 0 0;font-size:.875rem;color:var(--rui-text-muted,#6b6b6b)}
.rn-tbox__close{display:grid;place-items:center;width:2.5rem;height:2.5rem;border:0;background:none;color:inherit;cursor:pointer}
/* the box (2026-11-15): the real RONELLE box, photographed from the front (docs/content/tester-box). Layers per place:
   tray photo → oil (the vial-liquid mask, tinted with the perfume's own oil) → empty vial (gold her / silver him+both)
   → the real labelled tester photo, faded in once the oil has filled. The lid photo closes the box when 8 are in. */
.rn-tbox__stage{position:relative;width:min(100%,calc(44dvh * 1024 / 1140));aspect-ratio:1024/1140;margin-inline:auto;direction:ltr;isolation:isolate}
.rn-tbox__img,.rn-tbox__lid{position:absolute;inset:0;width:100%;height:100%;max-width:none;pointer-events:none;user-select:none}
.rn-tbox__img,.rn-tbox__tray{transition:opacity .45s ease}
.rn-tbox__tray{position:absolute;inset:0;margin:0;padding:0;list-style:none}
.rn-tbox__slot{position:absolute} /* left/top/width/height from slots.json, in % of the 1024 × 1140 photo */
.rn-tbox__slot>button{display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:pointer}
.rn-tbox__slot>button:focus-visible{outline:2px solid var(--rui-ring,currentColor);outline-offset:2px}
.rn-v{position:absolute;inset:0;display:block;transition:transform .35s cubic-bezier(.22,1,.36,1),opacity .35s ease}
.rn-v>*{position:absolute;inset:0;display:block}
.rn-v__oil{background:var(--oil,#b9a020);-webkit-mask:var(--vial-liquid) 0 0/100% 100% no-repeat;mask:var(--vial-liquid) 0 0/100% 100% no-repeat;transform-origin:50% 95.625%;opacity:.9} /* the liquid's floor is y 612 of 640 */
.rn-v__glass{background:var(--vial-silver) 0 0/100% 100% no-repeat}
.rn-v--gold .rn-v__glass{background-image:var(--vial-gold)}
.rn-v>img.rn-v__photo{inset:auto;left:-6.43%;top:-8.16%;width:112.86%;height:117.56%;max-width:none;opacity:0;transition:opacity .5s ease} /* the real photo: vial 1680 px tall, base y 1840, centre x 300 → the 632 px vial of the layer */
.rn-v.is-real .rn-v__photo{opacity:1}
.rn-tbox__slot>button:hover .rn-v{transform:translateY(-3%)}
.rn-tbox__slot.is-leaving .rn-v{transform:translateY(-22%);opacity:0;transition-duration:.25s}
.rn-tbox__ghost{position:fixed;z-index:3;pointer-events:none;transform-origin:50% 50%;transition:transform .8s cubic-bezier(.22,1,.36,1),opacity .25s ease;will-change:transform}
.rn-tbox__ghost .is-real>i{display:none} /* only the real labelled tester flies */
/* closing: the lid photo covers the box for a moment when the 8th tester goes in (tap to open) */
.rn-tbox__lid{opacity:0;transform:translateY(-4%);transition:opacity .45s ease,transform .55s cubic-bezier(.22,1,.36,1)}
.rn-tbox__box{display:grid;justify-items:center;gap:.75rem;min-width:0}
.rn-tbox__lidbtn{min-width:10rem}
.rn-tbox__stage.is-closed .rn-tbox__lid{opacity:1;transform:none}
.rn-tbox__stage.is-closed .rn-tbox__img,.rn-tbox__stage.is-closed .rn-tbox__tray{opacity:0}
/* status */
.rn-tbox__status{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;font-size:.875rem}
.rn-tbox__status strong{font-size:1rem}
.rn-tbox__bar{height:4px;overflow:hidden;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent)}
.rn-tbox__bar span{display:block;height:100%;width:0;background:var(--rn-accent,#b4232c);transition:width .45s cubic-bezier(.22,1,.36,1)}
/* pick */
.rn-tbox__label{margin:0 0 .5rem;font-size:.8125rem;color:var(--rui-text-muted,#6b6b6b)}
.rn-tbox__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:.5rem;margin:0;padding:0;list-style:none;max-height:16rem;overflow:auto}
.rn-tbox__item{display:flex;align-items:center;gap:.6rem;padding:.4rem;border:1px solid var(--rui-border,#e6e6e6);background:var(--rui-surface,#fff)}
.rn-tbox__item img{flex:none;width:44px;height:44px;object-fit:cover}
.rn-tbox__name{display:grid;flex:1;min-width:0;font-size:.875rem}
.rn-tbox__name b{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.rn-tbox__name small{color:var(--rui-text-muted,#6b6b6b)}
.rn-tbox__in{flex:none;padding:.1rem .4rem;background:var(--rui-text,#141311);color:var(--rui-bg,#fff);font-size:.7rem;font-weight:700}
.rn-tbox__add{flex:none;display:grid;place-items:center;width:2.25rem;height:2.25rem;border:1px solid currentColor;background:none;color:inherit;font-size:1.2rem;line-height:1;cursor:pointer}
.rn-tbox__add:hover{background:var(--rui-text,#141311);color:var(--rui-bg,#fff)}
/* foot */
.rn-tbox__foot{position:sticky;bottom:-1.25rem;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:.6rem;margin:0 -1.25rem -1.25rem;padding:.85rem 1.25rem;border-top:1px solid var(--rui-border,#e6e6e6);background:var(--rui-surface,#fff)}
@media (max-width:40rem){.rn-tbox__foot{margin:0 -1rem -1rem;padding:.75rem 1rem;bottom:-1rem}}
.rn-tbox__total{display:flex;align-items:baseline;gap:.5rem}
.rn-tbox__total span{color:var(--rui-text-muted,#6b6b6b);text-decoration:line-through;font-size:.875rem}
.rn-tbox__total strong{font-size:1.25rem}
/* the size option + try-it-first block */
.rn-variant-options .rn-size-row--tester{grid-column:1/-1;border-style:dashed}
.rn-variant-options .rn-size-row--tester[aria-pressed=true]{border-style:solid}
.rn-size-row__note{font-size:.75rem;color:var(--rui-text-muted,#6b6b6b);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.rn-tbox[open] .rn-tbox__sheet{animation:none}.rn-tbox__bar span,.rn-tbox__lid,.rn-v{transition:none}.rn-tbox__slot.is-new .rn-v{animation:rn-v-fade .3s}}
@keyframes rn-v-fade{from{opacity:0}}
.rn-tbox__name b{font-weight:600;font-size:.8125rem;line-height:1.35;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.rn-tbox__house{font-style:normal;font-weight:800;color:color-mix(in srgb,var(--g,currentColor) 78%,#000)} /* the house name in its type colour (card tag colours), deepened to read on white */
.rn-red{white-space:nowrap}
/* 2026-11-15: hover shows the second photo (like the product cards); wider on desktop so full names stay on one line */
.rn-tbox__thumb{position:relative;flex:none;width:52px;height:52px;overflow:hidden}
.rn-tbox__thumb img{width:100%;height:100%;object-fit:cover;transition:opacity .3s}
.rn-tbox__item .rn-tbox__thumb img{width:52px;height:52px}
.rn-tbox__alt{position:absolute;inset:0;opacity:0}
.rn-tbox__item:hover .rn-tbox__alt{opacity:1}
@media (min-width:56rem){
  .rn-tbox{width:min(60rem,94vw)}
  .rn-tbox__list{grid-template-columns:repeat(auto-fill,minmax(25rem,1fr));max-height:20rem}
  .rn-tbox__name b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.875rem}
  /* the box on the left, the status and the list beside it */
  .rn-tbox__sheet{grid-template-columns:minmax(0,23rem) minmax(0,1fr);grid-template-areas:"head head" "stage status" "stage bar" "stage pick" "foot foot";grid-template-rows:auto auto auto 1fr auto;column-gap:1.5rem}
  .rn-tbox__head{grid-area:head}.rn-tbox__box{grid-area:stage;align-self:start}.rn-tbox__stage{width:100%}.rn-tbox__status{grid-area:status}.rn-tbox__bar{grid-area:bar}.rn-tbox__pick{grid-area:pick;min-height:0}.rn-tbox__foot{grid-area:foot}
  .rn-tbox__list{grid-template-columns:repeat(auto-fill,minmax(20rem,1fr));max-height:24rem}
}
@media (prefers-reduced-motion:reduce){.rn-tbox__thumb img{transition:none}}
/* phones + tablets (owner 2026-11-15): the box always in view, only the perfume list scrolls under it, so every + shows the
   tester flying in; the total and both buttons on one slim line */
@media (max-width:55.99rem){
  .rn-tbox__sheet{display:flex;flex-direction:column;gap:.6rem;overflow:hidden}
  .rn-tbox__head h2{font-size:1.05rem}.rn-tbox__head p{font-size:.8125rem}.rn-tbox__close{width:2.25rem;height:2.25rem}
  .rn-tbox__box{flex:none;gap:.5rem}
  .rn-tbox__stage{width:min(100%,calc(32dvh * 1024 / 1140))}
  .rn-tbox__lidbtn{min-height:2rem;padding:.3rem .9rem;font-size:.8125rem;min-width:0}
  .rn-tbox__status{flex:none;font-size:.8125rem}.rn-tbox__bar{flex:none}
  .rn-tbox__pick{display:flex;flex-direction:column;flex:1 1 auto;min-height:7rem}
  .rn-tbox__label{margin:0 0 .4rem}
  .rn-tbox__list{flex:1 1 auto;min-height:0;max-height:none;overscroll-behavior:contain}
  .rn-tbox__foot{position:static;flex:none;grid-template-columns:1fr auto auto;gap:.4rem;padding:.6rem 1rem;margin:0 -1rem -1rem}
  .rn-tbox__total{flex-direction:column;align-items:flex-start;gap:0;line-height:1.15}
  .rn-tbox__total strong{font-size:1rem}.rn-tbox__total span{font-size:.75rem}
  .rn-tbox__foot .rui-btn{min-height:2.25rem;padding:.35rem .8rem;font-size:.75rem;white-space:nowrap}
}
.rn-v.is-photo>img.rn-v__photo{opacity:1;transition:none} /* the photo alone, shown as soon as it is there (owner 2026-11-18) */
.rn-tbox__stage.is-closed{cursor:pointer}.rn-tbox__stage.is-closed .rn-tbox__tray{pointer-events:none} /* closed: the testers under the lid cannot be tapped; a tap opens the box */
