/* ══════════════════════════════════════════════════════════════════════
   Листы снизу, корзина, вызов официанта, оценка звёздами.

   Правила: сетка 8pt, мишени от 44px, пружины 200–350 мс, только transform
   и opacity, safe-area. Цвета — токены палитры (--ink, --surface, --accent,
   --on-bg, --pill-bg): Луна, Какао и Графит читаются без отдельных правил.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* Пока открыт лист, страница под ним не прокручивается. */
html[data-sheet-lock] {
  overflow: hidden;
}
html[data-sheet-lock] body {
  overflow: hidden;
}

/* ─── Лист ───────────────────────────────────────────────────────────── */

.isheet {
  --step-bg: var(--surface-2);
  --step-fg: var(--ink);
  display: none;
  flex-direction: column;
  width: min(520px, 100vw);
  max-width: 100vw;
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 380ms var(--ease-drawer);
  overscroll-behavior: contain;
}
.isheet[open] {
  display: flex;
}
.isheet[data-open="true"] {
  transform: translateY(var(--drag, 0px));
}
.isheet[data-dragging] {
  transition: none;
}
.isheet::backdrop {
  background: rgba(20, 16, 12, 0.46);
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
}
.isheet[data-open="true"]::backdrop {
  opacity: 1;
}
.isheet--full {
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
}
@media (min-width: 720px) {
  .isheet:not(.isheet--full) {
    margin: auto;
    max-height: 86dvh;
    border-radius: 28px;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition:
      transform 320ms var(--ease-drawer),
      opacity 220ms var(--ease-out);
  }
  .isheet:not(.isheet--full)[data-open="true"] {
    opacity: 1;
    transform: none;
  }
  .isheet__grab,
  .sheet__grab {
    display: none;
  }
}

.isheet__grab,
.sheet__grab {
  display: grid;
  flex: none;
  place-items: center;
  height: 24px;
  padding-top: 4px;
  touch-action: none;
}
.sheet__grab {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
}
.isheet__handle {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--ink) 24%, transparent);
}
.sheet__grab .isheet__handle {
  background: rgba(0, 0, 0, 0.24);
}

.isheet__head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 0 12px 4px 20px;
  touch-action: none;
}
.isheet__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.isheet__title[hidden] {
  display: none;
}
.isheet__head::after {
  content: none;
}
.isheet__actions {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}
.isheet__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}
.isheet__close svg {
  width: 20px;
  height: 20px;
}
.isheet__close:active {
  transform: scale(0.92);
}
.isheet__textbtn {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.isheet__textbtn[data-armed="true"] {
  background: var(--danger-soft);
  color: var(--danger);
}
.isheet__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.isheet__body {
  display: grid;
  gap: 16px;
  padding: 8px 20px calc(24px + var(--safe-b));
}
.isheet__foot {
  display: grid;
  flex: none;
  gap: 10px;
  padding: 12px 20px calc(16px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.isheet__foot[hidden] {
  display: none;
}
.isheet__lead {
  margin: 0;
  color: var(--ink-soft);
}
.isheet__btn {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 600;
}
.btn__icon {
  width: 20px;
  height: 20px;
}

/* Список строк в духе iOS: сгруппированный, со значками и стрелками. */
.igroup {
  display: grid;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-2);
}
.irow {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: default;
}
a.irow,
button.irow {
  cursor: pointer;
}
.irow + .irow {
  border-top: 1px solid var(--line);
}
.irow__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
}
.irow__icon svg {
  width: 18px;
  height: 18px;
}
.irow__text {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
}
.irow__title {
  overflow-wrap: anywhere;
  font-weight: 600;
}
.irow__value {
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.irow__chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
}
[dir="rtl"] .irow__chevron,
[dir="rtl"] .place-link svg {
  transform: scaleX(-1);
}
.irow--lang .irow__check {
  width: 22px;
  height: 22px;
  color: var(--accent-strong);
  opacity: 0;
}
.irow--lang[aria-checked="true"] .irow__check {
  opacity: 1;
}
.irow--lang[aria-checked="true"] .irow__title {
  color: var(--accent-strong);
}
@media (hover: hover) {
  a.irow:hover,
  button.irow:hover {
    background: color-mix(in srgb, var(--ink) 5%, transparent);
  }
}
.irow:active {
  background: color-mix(in srgb, var(--ink) 9%, transparent);
}

/* ─── Поля ───────────────────────────────────────────────────────────── */

.field-row {
  display: grid;
  gap: 6px;
}
.field-row__label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}
.field-row__input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-raised);
  color: var(--ink);
  /* 16px: меньше — и iOS приближает страницу при фокусе. */
  font-size: 16px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
textarea.field-row__input {
  min-height: 72px;
  padding: 12px 14px;
  resize: none;
  line-height: 1.4;
}
.field-row__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field-row__input[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-row .field-error,
.isheet .field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.82rem;
}
.field-error[hidden] {
  display: none;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.check-row input {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

/* Режим: «В зале / С собой / Доставка». Выбранный залит цветом текста. */
.segmented {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}
.segmented[hidden] {
  display: none;
}
.segmented__btn {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 220ms var(--ease-out),
    color 220ms var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.segmented__btn[aria-checked="true"] {
  background: var(--ink);
  color: var(--surface);
}
.segmented__btn:active {
  transform: scale(0.96);
}

/* ─── «+ 280 ₽» и степпер ────────────────────────────────────────────── */

.buy {
  --step-bg: var(--pill-bg);
  --step-fg: var(--on-bg);
  display: inline-flex;
  min-width: 0;
}
.buy[data-qty="0"] .step,
.buy:not([data-qty="0"]) .buy__add {
  display: none;
}
.buy__add {
  cursor: pointer;
  font-weight: 700;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.buy__add:active {
  transform: scale(0.94);
}
.buy__plus {
  flex: none;
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}
.buy__add .card__price-was {
  color: color-mix(in srgb, currentColor 55%, transparent);
  font-size: 0.78rem;
  font-weight: 500;
}
.step {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--step-bg);
  color: var(--step-fg);
}
.step__btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.step__btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}
.step__btn:active {
  transform: scale(0.88);
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.step__qty {
  min-width: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.card__foot .buy,
.card__foot .card__pill {
  max-width: 100%;
}

/* Крупная кнопка в подробностях блюда. */
.sheet__bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 12px var(--page-gutter) calc(12px + var(--safe-b));
  background: linear-gradient(to top, var(--surface) 72%, transparent);
}
.sheet {
  --step-bg: var(--surface-2);
  --step-fg: var(--ink);
}
.sheet[data-open="true"] {
  transform: translateY(var(--drag, 0px));
}
.sheet[data-dragging] {
  transition: none;
}
.buy--large {
  display: flex;
  width: 100%;
}
.buy--large .buy__add {
  width: 100%;
  min-height: 56px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.buy--large .buy__add .card__price {
  font-size: 1.05rem;
}
.buy--large .step {
  width: 100%;
  justify-content: space-between;
  padding: 6px;
}
.buy--large .step__btn {
  width: 52px;
  height: 52px;
}
.buy--large .step__qty {
  font-size: 1.2rem;
}

/* ─── Нижний ряд: колокольчик, «наверх», корзина ─────────────────────── */

.fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + var(--safe-b));
  z-index: 35;
  pointer-events: none;
}
.fab__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 22px 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--on-bg);
  color: var(--bg);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  transform: translateY(calc(100% + 40px)) scale(0.9);
  transition:
    transform 440ms var(--spring),
    opacity 200ms var(--ease-out);
}
.fab[data-visible="true"] .fab__btn {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}
.fab__btn:active {
  transform: scale(0.95);
}
.fab__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}
.fab__icon svg {
  width: 26px;
  height: 26px;
}
.fab__badge {
  position: absolute;
  top: -9px;
  inset-inline-start: -9px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--on-bg);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}
.roll {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.roll > span {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.bell {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + var(--safe-b));
  z-index: 35;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--line-bg-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 86%, var(--on-bg));
  color: var(--on-bg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 300ms var(--spring);
}
.bell svg {
  width: 24px;
  height: 24px;
}
.bell:active {
  transform: scale(0.92);
}

/* «Наверх» не перекрывается корзиной: когда она есть, встаёт над ней. */
.to-top {
  width: 48px;
  height: 48px;
  right: max(20px, env(safe-area-inset-right, 0px));
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    bottom 320ms var(--ease-drawer);
}
html[data-cart="on"] .to-top {
  bottom: calc(16px + 56px + 12px + var(--safe-b));
}
html[data-cart="on"] body,
html[data-bell="on"] body {
  padding-bottom: calc(84px + var(--safe-b));
}
html[data-cart="on"] .refresh-toast,
html[data-bell="on"] .refresh-toast {
  bottom: calc(88px + var(--safe-b));
}

/* Блюдо «летит» в корзину: три слоя — по горизонтали, по вертикали и размер. */
.fly {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: var(--fly-size, 64px);
  height: var(--fly-size, 64px);
  pointer-events: none;
}
.fly__y,
.fly__body {
  width: 100%;
  height: 100%;
}
.fly__body {
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.fly__body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Лист корзины ───────────────────────────────────────────────────── */

.cart-lines {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cart-lines[hidden],
.cart-empty[hidden],
.cart-group[hidden] {
  display: none;
}
.cart-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}
.cart-line + .cart-line {
  border-top: 1px solid var(--line);
}
.cart-line[data-unavailable="true"] .cart-line__name,
.cart-line[data-unavailable="true"] .cart-line__thumb {
  opacity: 0.55;
}
.cart-line__thumb {
  position: relative;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
}
.cart-line__thumb img,
.cart-line__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-line__name {
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.cart-line__price {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}
.cart-line[data-unavailable="true"] .cart-line__price {
  color: var(--danger);
}
.cart-line__side {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.cart-line__sum {
  margin: 0;
  padding-inline-end: 4px;
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-group {
  display: grid;
  gap: 12px;
}
.cart-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 32px 0 8px;
  text-align: center;
}
.cart-empty__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.cart-empty__text {
  margin: 0 0 8px;
  color: var(--ink-soft);
}
.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
}
.cart-total__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.cart-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: center;
}
.cart-after {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-2);
}
.cart-after[hidden] {
  display: none;
}
.cart-after__title {
  margin: 0;
  font-weight: 700;
}
.cart-after__text {
  margin: 0;
  color: var(--ink-soft);
}
.cart-after__row {
  display: flex;
  gap: 8px;
}
.cart-after__row .btn {
  flex: 1;
}

/* ─── Экран для официанта ────────────────────────────────────────────── */

.isheet--waiter .isheet__head {
  padding-top: 4px;
}
.isheet--waiter .isheet__body {
  padding-top: 0;
}
.waiter {
  display: grid;
  gap: 20px;
  padding-bottom: 8px;
}
.waiter__where {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 21vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.waiter__who {
  margin: -8px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.waiter__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.waiter__list li {
  display: grid;
  grid-template-columns: 3ch minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.2rem;
}
.waiter__qty {
  color: var(--accent-strong);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.waiter__name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.waiter__sum {
  color: var(--ink-soft);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.waiter__comment {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink-soft);
}
.waiter__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}
.waiter__total span:last-child {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-variant-numeric: tabular-nums;
}
.waiter__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  font-weight: 600;
}
.waiter__status[data-state="ok"] {
  background: var(--success-soft);
  color: var(--success);
  animation: moon-pop 420ms var(--spring);
}
.waiter__status[data-state="warn"] {
  background: var(--danger-soft);
  color: var(--danger);
}
.waiter__check {
  flex: none;
  width: 22px;
  height: 22px;
}
.waiter__caption {
  margin: 0;
  color: var(--ink-soft);
  text-align: center;
}
@keyframes moon-pop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ─── Вызов официанта ────────────────────────────────────────────────── */

.svc-table__chip {
  display: inline-block;
  margin: 0;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--surface);
  font-size: 1.1rem;
  font-weight: 700;
}
.svc-list {
  display: grid;
  gap: 10px;
}
.svc-option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 72px;
  padding: 12px 16px;
  border: 0;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.svc-option:active:not(:disabled) {
  transform: scale(0.97);
}
.svc-option:disabled {
  opacity: 0.45;
  cursor: default;
}
.svc-option__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
}
.svc-option__icon svg {
  width: 24px;
  height: 24px;
}
.svc-option__text {
  display: grid;
  gap: 2px;
}
.svc-option__title {
  font-size: 1.05rem;
  font-weight: 700;
}
.svc-option__sub {
  color: var(--ink-soft);
  font-size: 0.86rem;
}
.svc-wait {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}
.svc-wait[hidden] {
  display: none;
}
.svc-done {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px 0 0;
  text-align: center;
}
.svc-done__mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  animation: moon-pop 520ms var(--spring);
}
.svc-done__check {
  width: 44px;
  height: 44px;
  stroke-width: 2.4;
}
.svc-done__title {
  margin: 8px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}
.svc-done__where {
  margin: 0;
  color: var(--ink-soft);
}
.svc-done__actions {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

/* ─── Оценка звёздами и карты ────────────────────────────────────────── */

.rating {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.rating__title {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}
.rating__stars {
  display: flex;
  gap: 0;
  margin-inline-start: -6px;
}
.rating__star {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rating__star svg {
  width: 34px;
  height: 34px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: fill 160ms var(--ease-out), color 160ms var(--ease-out);
}
.rating__star[data-on="true"] {
  color: var(--accent-strong);
}
.rating__star[data-on="true"] svg {
  fill: currentColor;
}
.rating__label {
  margin: 0;
  min-height: 1.4em;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.rating-maps {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.rating-maps[hidden] {
  display: none;
}
.rating-maps__title {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}
.rating-maps__links {
  display: grid;
  gap: 8px;
}
.rating-maps__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.rating-maps__link:active {
  transform: scale(0.98);
}
.rating-maps__link .irow__chevron {
  width: 18px;
  height: 18px;
}
