/* Small presentation refinements; selection and checkout behavior stay shared. */
.salon-selection {
  margin: 14px 20px 16px;
  padding: 16px;
  border: 1px solid var(--primary-border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(18, 15, 13, 0.025);
}
.salon-selection__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.salon-selection__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.salon-selection__count,
.salon-selection__detail,
.salon-selection__included {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
}
.salon-selection__total { flex-shrink: 0; text-align: right; }
.salon-selection__total > span { display: block; color: var(--text-3); font-size: 11px; line-height: 1.4; }
.salon-selection__total strong { display: block; color: var(--primary); font-size: 20px; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.salon-selection__items { margin: 12px 0 0; padding: 0; list-style: none; }
.salon-selection__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
}
.salon-selection__item:last-child { padding-bottom: 0; }
.salon-selection__description { flex: 1; min-width: 0; }
.salon-selection__name { color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.salon-selection__included { color: var(--text-2); }
.salon-selection__item-end { flex-shrink: 0; text-align: right; }
.salon-selection__price { display: block; color: var(--text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.45; }
.salon-selection__remove {
  display: block;
  min-width: 56px;
  min-height: 44px;
  margin: 0 -8px -8px auto;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.salon-selection__remove:active { background: var(--primary-surface); }
.salon-selection__remove:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.salon-selection__saving { margin: 12px 0 0; color: var(--success); font-size: 12px; font-weight: 500; line-height: 1.45; }
/* Notices are a heads-up, not body copy: amber rather than red (nothing
   failed) and a small badge that arrives with motion so the eye lands on it. */
.salon-selection__notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 10px;
  background: var(--warning-50);
  color: var(--ink-800);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  animation: salonNoticeIn 0.3s var(--ease-out) both, salonNoticePulse 1.05s var(--ease-out) 0.18s;
}
.salon-selection__notice svg { flex: 0 0 14px; margin-top: 1px; }
.salon-selection__notice span { min-width: 0; }
@keyframes salonNoticeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes salonNoticePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
  40%      { box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16); }
}

/* Covered by a selected package: the price is replaced by why it is free. */
.service-row--covered .service-select { background: var(--surface-2); border-color: var(--border-subtle); }
.service-row--covered .svc-price-block,
.service-row--covered .service-select__check { display: none; }
.service-row--covered .service-select::after {
  content: 'Included';
  flex: 0 0 auto;
  align-self: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--plum-100);
  color: var(--plum-700);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
/* A tap that changed nothing answers on the row it happened on. */
.service-row--blocked .service-select {
  animation: serviceRowBlocked 0.42s var(--ease-out);
  border-color: rgba(245, 158, 11, 0.55);
}
@keyframes serviceRowBlocked {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-6px); }
  38% { transform: translateX(5px); }
  58% { transform: translateX(-3px); }
  78% { transform: translateX(2px); }
}
.salon-menu-tabs .tab { min-height: 48px; }
/* The tab being swiped towards lights up while the finger is down. */
.salon-menu-tabs .tab--peek { color: var(--primary); font-weight: 600; }
/* Horizontal drags on the strip are paging, not strip scrolling. */
.salon-menu-tabs { touch-action: pan-y; }
.salon-menu-service { min-height: 76px; gap: 12px; align-items: flex-start; padding-top: 13px; padding-bottom: 13px; }
.salon-menu-service .service-select__check { align-self: flex-start; margin-top: 1px; }
.salon-menu-service > div:last-child { align-self: flex-start; }
.salon-menu-service .svc-name { line-height: 1.4; }
.salon-menu-package { padding: 16px; }
.salon-menu-service .svc-chevron,
.salon-menu-package .svc-chevron { width: 44px; height: 44px; flex: 0 0 44px; }
.salon-menu-package .pkg-chip--tappable { min-height: 32px; display: inline-flex; align-items: center; }
.salon-menu-panel .service-select__disc-badge { font-size: 10px; padding: 2px 6px; font-weight: 500; }
.salon-book-top { min-height: 48px; line-height: 1.4; }
@media (max-width: 360px) {
  .salon-selection { margin-right: 16px; margin-left: 16px; padding: 14px; }
  .salon-selection__total strong { font-size: 18px; }
  .salon-menu-service { gap: 8px; padding-right: 10px; padding-left: 10px; }
  .salon-menu-service .svc-chevron { width: 36px; flex-basis: 36px; }
}

/* Salon metadata is actionable without introducing additional navigation rows. */
.salon-stat-button { display: flex; align-items: center; justify-content: flex-start; gap: 5px; flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.salon-stat-button:focus-visible, .salon-photo-tile:focus-visible, .salon-cover-photo:focus-visible, .salon-photo-count:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.salon-hours { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.salon-hours h3 { margin: 0 0 10px; font: 600 14px var(--font-body); color: var(--text); }
.salon-hours__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.salon-hours__row strong { color: var(--text); font-weight: 600; }
.salon-hours p { margin: 10px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.salon-cover-photo { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.salon-photo-count { position: absolute; bottom: 54px; right: 16px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 999px; background: rgba(18,15,13,.65); color: #fff; backdrop-filter: blur(4px); font: 500 12px var(--font-body); cursor: pointer; }
.salon-photo-tile { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; }
.salon-gallery { position: fixed; inset: 0; box-sizing: border-box; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); border: 0; background: #120f0d; color: #fff; overflow: hidden; }
.salon-gallery[open] { display: flex; flex-direction: column; }
.salon-gallery::backdrop { background: rgba(18,15,13,.9); }
.salon-gallery__heading { min-height: 48px; padding: 10px 56px 12px 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.salon-gallery__close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; }
.salon-gallery__close, .salon-gallery__arrow { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
/* Photo stage: the current photo and the swiped-in neighbour share one box. */
.salon-gallery__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y; }
.salon-gallery__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
.salon-gallery__image--peek { left: 100%; right: auto; pointer-events: none; }
.salon-gallery__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; }
.salon-gallery__counter { font-size: 13px; color: rgba(255,255,255,.8); }
.salon-gallery__arrow:disabled { opacity: .3; cursor: default; }
.salon-gallery button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* The row itself is the brief: one clamped line of description under the name.
   A full page is offered only where the salon actually published one. */
.svc-brief {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-detail-link { min-height: 32px; padding: 6px 0 0; }
.svc-detail-link--row { margin-top: 2px; }
.svc-detail-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* A row that just slid to its new rank keeps a soft ring for a moment. */
.salon-menu-item--moved .service-select,
.salon-menu-item--moved .pkg-card { animation: menuItemLanded 0.85s var(--ease-out); }
.salon-menu-item { scroll-margin-top: 96px; }
/* Tapping a line in the basket lands on its row with a clear locating ring. */
.salon-menu-item--locate .service-select,
.salon-menu-item--locate .pkg-card { animation: menuItemLocated 1.6s var(--ease-out); }
@keyframes menuItemLocated {
  0%   { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.34); }
  18%  { box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.28); }
  70%  { box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}
@keyframes menuItemLanded {
  0%   { box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.24); }
  60%  { box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12); }
  100% { box-shadow: 0 0 0 3px rgba(244, 63, 94, 0); }
}

/* ── Booking: a package is one product, so show it as one ── */
.booking-package {
  margin-bottom: 10px;
  padding: 13px 14px;
  border: 1.5px solid var(--primary-border);
  border-radius: 12px;
  background: var(--primary-surface);
}
.booking-package__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.booking-package__title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.booking-package__title > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.booking-package__price {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.booking-package__meta {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-dark);
}
.booking-package__services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.booking-package__svc {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--primary-border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
}
.booking-package__svc em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-3);
  font-size: 10.5px;
}
.booking-extra-label {
  margin: 12px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.booking-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
}
.booking-total__tag {
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--primary-surface);
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Notification permission card (mirrors the location card) ── */
.notify-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  margin: 14px 16px 0;
  padding: 14px;
  border: 1px solid var(--primary-border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(18, 15, 13, 0.025);
}
.notify-prompt__icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notify-prompt__copy { flex: 1; min-width: 0; }
.notify-prompt__title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.notify-prompt__body { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.notify-prompt__actions { display: flex; align-items: center; gap: 8px; width: 100%; }
.notify-prompt__later {
  margin-left: auto;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font: 600 12.5px var(--font-body);
  cursor: pointer;
}
.notify-prompt__later:active { background: var(--surface-2); }

/* Ticking a service answers on the pill itself, not by redrawing the screen. */
@keyframes searchPillPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}
.pill--pop { animation: searchPillPop 0.24s var(--ease-out); }
