/* A small launcher; media is attached only after the visitor opens the viewer. */
.showroom-launcher {
    position: absolute; z-index: 3; top: -44px; left: 20px; right: auto; bottom: auto;
    display: flex; flex-direction: row; align-items: center; gap: 8px;
    width: auto; min-height: 0; padding: 0;
    border: 0; border-radius: 999px; cursor: pointer; color: var(--brand-accent);
    isolation: isolate; background: none;
    font: 700 17px/1.25 var(--shop-block-font-family); text-align: center;
}
.showroom-launcher > span:last-child { white-space: nowrap; }
.showroom-launcher__circle { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; border: 6px solid var(--brand-bg); border-radius: 50%; background: var(--brand-accent); transition: transform 200ms ease, background 200ms ease; }
.showroom-launcher svg { width: 25px; height: 25px; fill: var(--shop-block-light-text); }
.showroom-launcher:hover .showroom-launcher__circle { transform: scale(1.04); background: var(--brand-navy); }
.showroom-launcher:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: -3px; }
.showroom-stories { position: fixed; inset: 0; width: min(990px, 94%); max-width: 94%; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1.5px solid var(--brand-lavender); border-radius: 26px; color: var(--brand-ink); background: var(--shop-block-light-text); overflow: auto; overscroll-behavior: contain; font-family: var(--shop-block-font-family); }
.showroom-stories, .showroom-stories * { box-sizing: border-box; }
.showroom-stories::backdrop { background: color-mix(in srgb, var(--brand-ink) 82%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.showroom-stories[open] { animation: showroom-appear 260ms cubic-bezier(.2,.7,.2,1) both; }
.showroom-stories__shell { width: 100%; padding: 20px 0 14px; }
.showroom-stories__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px 16px; }
.showroom-stories__header p { margin: 0 0 5px; color: var(--brand-accent); font-size: 10px; letter-spacing: .12em; font-weight: 700; }
.showroom-stories__header h2 { margin: 0; color: inherit; font-size: clamp(17px, 3vw, 24px); line-height: 1.25; }
.showroom-stories__close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--brand-mist); color: inherit; font: 32px/1 var(--shop-block-font-family); cursor: pointer; }
.showroom-stories__track { display: flex; align-items: center; gap: 12px; overflow-x: auto; padding: 0 10%; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x; }
.showroom-stories__track::-webkit-scrollbar { display: none; }
.showroom-stories__card { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; opacity: .5; transition: opacity 220ms ease; }
.showroom-stories__card.is-active { opacity: 1; }
.showroom-stories__media { position: relative; height: min(68.2dvh, 660px); width: 100%; border-radius: 18px; overflow: hidden; background: var(--shop-block-light-text); }
.showroom-stories__media img, .showroom-stories__video { display: block; width: 100%; height: 100%; object-fit: contain; }
.showroom-stories__media img { position: absolute; inset: 0; object-fit: cover; }
.showroom-stories__video { position: relative; z-index: 1; background: var(--shop-block-light-text); }
.showroom-stories__shell > .showroom-stories__video { display: none; }
.showroom-stories__preview { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; border: 0; background: none; cursor: pointer; }
.showroom-stories__preview svg { width: 45px; height: 45px; padding: 9px; border-radius: 50%; fill: var(--shop-block-light-text); background: color-mix(in srgb, var(--brand-ink) 60%, transparent); }
.showroom-stories__card.is-active .showroom-stories__preview { display: none; }
.showroom-stories__card > p { margin: 10px 0 0; font-size: 13px; font-weight: 600; text-align: center; }
.showroom-stories__footer { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 12px; }
.showroom-stories__footer button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--brand-lavender); border-radius: 50%; background: none; color: inherit; font-size: 23px; cursor: pointer; }
.showroom-stories__footer button:disabled { opacity: .3; cursor: default; }
.showroom-stories__footer p { margin: 0; font-size: 13px; }
.showroom-stories__hint { margin: 12px 18px 0; color: var(--brand-navy); font-size: 11px; text-align: center; }
.showroom-stories__error { margin: 16px 24px 0; font-size: 14px; text-align: center; }
.showroom-stories__error a { color: var(--brand-accent); text-decoration: underline; }
.showroom-stories button:focus-visible, .showroom-stories__track:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: -3px; }
.showroom-stories.is-single { width: min(484px, 94%); }
.showroom-stories.is-single .showroom-stories__track { padding: 0 18px; }
.showroom-stories.is-single .showroom-stories__card { flex-basis: 100%; }
.showroom-stories.is-single .showroom-stories__footer, .showroom-stories.is-single .showroom-stories__hint { display: none; }
@keyframes showroom-appear { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) { .showroom-stories, .showroom-stories.is-single { width: 90%; max-width: 90%; } .showroom-stories.is-single { width: min(484px, 90%); } }
@media (max-width: 640px) {
    .showroom-launcher { top: -38px; left: 10px; font-size: 16px; }
    .showroom-launcher__circle { flex-basis: 56px; width: 56px; height: 56px; }
    .showroom-stories, .showroom-stories.is-single { width: 95%; max-width: 95%; border-radius: 22px; }
    .showroom-stories__header { padding: 0 18px 14px; }
    .showroom-stories__media { height: min(72.6dvh, 682px); }
}
@media (prefers-reduced-motion: reduce) { .showroom-stories[open] { animation: none; } .showroom-launcher__circle, .showroom-stories__card { transition: none; } }
