/* The Color System look viewer (components/store/look-viewer.blade.php, js/scs-viewer.js). */
.lv { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.lv__shots { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.lv__shot { font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--ink-2, var(--ink));
  border-radius: 999px; padding: .45rem .95rem; transition: border-color .2s, color .2s; }
.lv__shot:hover { color: var(--ink); border-color: var(--line-2, var(--line)); }
.lv__shot[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }

/* the bar: the heading on the left, the look picker on the right, on one line */
.lv__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .75rem; }
.lv__title { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .03em; line-height: 1.1; }
.lv__pick { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.lv__step { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink); transition: border-color .2s; }
.lv__step:hover { border-color: var(--line-2, var(--ink-2)); }
.lv__select { position: relative; display: block; min-width: 0; }
.lv__select::after { content: ""; position: absolute; right: .9rem; top: 50%; width: 7px; height: 7px; margin-top: -5px; pointer-events: none;
  border-right: 1.5px solid var(--ink-2, var(--ink)); border-bottom: 1.5px solid var(--ink-2, var(--ink)); transform: rotate(45deg); }
.lv__select select { -webkit-appearance: none; appearance: none; font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink);
  background: var(--bg-2, transparent); border: 1px solid var(--line); border-radius: 10px; height: 40px; padding: 0 2.4rem 0 .9rem;
  min-width: 15rem; max-width: 100%; cursor: pointer; }
.lv__select select:hover { border-color: var(--line-2, var(--ink-2)); }
.lv__select select option, .lv__select select optgroup { color: #111; background: #fff; }
.lv__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lv__shot:focus-visible, .lv__step:focus-visible, .lv__select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lv__stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--line);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.lv__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.lv__divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.lv__knob { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14,15,16,.72); color: #fff; border: 2px solid rgba(255,255,255,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lv__tag { position: absolute; top: .9rem; padding: .3rem .6rem; border-radius: 6px; font-size: .8rem; font-weight: 500;
  background: rgba(14,15,16,.66); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.lv__tag--l { left: .9rem; }
.lv__tag--r { right: .9rem; }
.lv__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.lv__stage:has(.lv__range:focus-visible) .lv__knob { outline: 2px solid var(--accent); outline-offset: 3px; }

.lv__note { margin: 1rem 0 0; font-size: .82rem; color: var(--muted); max-width: 72ch; }
@media (max-width: 560px) {
  .lv__stage { aspect-ratio: 4 / 3; }
  .lv__bar { flex-wrap: wrap; gap: .6rem; }
  .lv__title { flex: 1 0 100%; }                /* heading on its own line, the picker gets the full row under it */
  .lv__pick { flex: 1; }
  .lv__select { flex: 1; }
  .lv__select select { min-width: 0; width: 100%; }
}
