/* Скидка «Для постоянных гостей» на витрине (loyal-guests, тикет 06): значки, всплывающая
   карточка, окно «Вернуть скидку постоянного гостя», прогресс окна «Бронь оформлена».
   Разметку строит site/shared/loyal.js; вид — утверждённый макет
   .planning/phases/261128-loyal-guests/mockups (mock.css, без оранжевых пометок макета).
   Никакого наведения: карточка открывается щелчком, медиа-запросов наведения здесь нет. */

/* Значок: одна строка; тесно — fit() прячет процент (hsl-tight), тесно и так — перенос. */
.hsl-chip { border: 0; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; }
.hsl-chip:focus-visible { outline: 2px solid #5b2ca0; outline-offset: 2px; }
.hsl-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hsl-chip .hsl-short { display: none; }
.hsl-chip.hsl-tight .hsl-full { display: none; }
.hsl-chip.hsl-tight .hsl-short { display: inline; }
.hsl-chip.hsl-wrap { white-space: normal; }
.hsl-chip.hsl-wrap > span { overflow: visible; }

/* Карточка — вне потока страницы (position: fixed), под липкой шапкой (z 50) и окнами (z 60). */
.hsl-pop { position: fixed; z-index: 45; margin: 0; background: #fff; border: 1px solid #e4d8f5; border-radius: 16px;
  padding: 12px 44px 12px 14px; box-shadow: 0 18px 44px -14px rgba(28,27,27,.38), 0 2px 6px rgba(28,27,27,.06);
  font: 400 12.5px/1.45 Inter, 'Inter Fallback', sans-serif; color: #444748; text-align: left; box-sizing: border-box; }
.hsl-pop[hidden] { display: none !important; }
.hsl-pop p { margin: 6px 0 0; }
.hsl-pop .hsl-pop-t { margin: 0 0 6px; font: 700 14px/1.3 Manrope, 'Manrope Fallback', sans-serif; color: #1c1b1b; }
.hsl-pop ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.hsl-pop li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 8px; border-radius: 8px; background: #f7f3fc; color: #1c1b1b; }
.hsl-pop li b { color: #5b2ca0; font-weight: 700; white-space: nowrap; }
.hsl-pop li.cur { background: #efe6fb; box-shadow: inset 0 0 0 1px #c9b3ec; font-weight: 600; }
.hsl-pop .hsl-pop-you { color: #5b2ca0; font-weight: 600; }
.hsl-pop-x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: none; border-radius: 999px; color: #444748;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.hsl-pop-x:focus-visible { outline: 2px solid #1c1b1b; }
.hsl-pop-link { margin-top: 8px; border: 0; background: none; padding: 0; font: 600 12.5px/1.4 Inter, 'Inter Fallback', sans-serif; color: #000;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }

/* Окно «Вернуть скидку»: на низком телефоне карточка прокручивается внутри себя. */
.hsl-dlg-card { max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.hsl-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.hsl-code input { width: 100%; height: 52px; border-radius: 0.75rem; background: #f6f3f2; border: 1px solid transparent; text-align: center; outline: none;
  font: 600 22px/1 Manrope, 'Manrope Fallback', sans-serif; color: #1c1b1b; font-variant-numeric: tabular-nums; padding: 0; }
.hsl-code input:focus { border-color: #000; background: #fff; }
.hsl-code.bad input { border-color: #ba1a1a; background: #fff; color: #ba1a1a; }
.hsl-code.off input { color: #a9acac; }
.hsl-steps { display: flex; align-items: center; gap: 6px; }
.hsl-steps i { width: 22px; height: 4px; border-radius: 999px; background: #e5e2e1; }
.hsl-steps i.on { background: #1c1b1b; }
.hsl-prog { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.hsl-prog i { height: 6px; border-radius: 999px; background: #e5e2e1; }
.hsl-prog i.on { background: #1c1b1b; }
.hsl-prog i.next { background: repeating-linear-gradient(90deg, #1c1b1b 0 4px, #e5e2e1 4px 8px); }
.hsl-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: #f6f3f2; }
.hsl-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 9px 4px; cursor: pointer;
  font: 600 13px/1.2 Inter, 'Inter Fallback', sans-serif; background: transparent; color: #444748; text-align: center; min-width: 0; }
.hsl-tabs button.on { background: #000; color: #fff; }

.hsl-toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -8px); opacity: 0; z-index: 400; pointer-events: none;
  background: #1c1b1b; color: #fff; font: 500 13px/1.35 Inter, 'Inter Fallback', sans-serif; padding: 9px 14px; border-radius: 12px;
  max-width: calc(100vw - 32px); text-align: center; transition: opacity .2s, transform .2s; }
.hsl-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .hsl-toast { transition: none; } }
