/* ---------- Our seat map in the ticket modal (static/js/event/our-seats.js) ----------
 *
 * Only what sits on the map: the chips, zoom controls, legend, picker, area sheet
 * and alert. Price rows, steppers and buttons are the modal's own (.tm-ticket-row,
 * .tm-qty-control, .tm-checkout-btn). Colors come from the --seat-* variables (templates/seating/includes/buyer_seat_theme.html);
 * each falls back to the light value.
 */
#modalChartContainer.os-host { position: relative; overflow: hidden; background: var(--seat-map-bg, #E9EDF2); }
.os-canvas { position: absolute; inset: 0; }
.os-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}

.os-chip {
  position: absolute; top: 16px; left: 16px; z-index: 3; max-width: calc(100% - 32px);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--seat-surface, #fff); border-radius: 999px; padding: 6px 14px 6px 10px;
  box-shadow: 0 2px 8px rgba(26, 26, 46, .12); font-size: .85rem; color: var(--seat-text, #1A1A2E);
}
.os-hint i { color: var(--seat-accent, #0D6EFD); }
.os-crumb { padding: 4px 14px 4px 4px; }
.os-full {
  display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer;
  background: var(--seat-surface-2, #EEF4FF); color: var(--seat-accent, #3A6BD1); font-weight: 600; font-size: .85rem;
  border-radius: 999px; padding: 4px 10px;
}
.os-sep { font-size: .65rem; color: var(--seat-text-3, #9AA2AD); }
.os-sec { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.os-zoom {
  position: absolute; right: 16px; bottom: 16px; z-index: 3; display: flex;
  background: var(--seat-surface, #fff); border-radius: 12px; box-shadow: 0 2px 8px rgba(26, 26, 46, .12);
}
.os-zoom button {
  width: 38px; height: 40px; border: none; background: none; color: var(--seat-text, #1A1A2E); cursor: pointer;
}
.os-zoom button:hover { background: var(--seat-surface-2, #F0F2F6); }
.os-zoom button:first-child { border-radius: 12px 0 0 12px; }
.os-zoom button:last-child { border-radius: 0 12px 12px 0; }

.os-legend {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; max-width: calc(100% - 170px);
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  background: var(--seat-surface, #fff); border-radius: 8px; padding: 6px 12px; font-size: .8rem; color: var(--seat-text-2, #5F6773);
}
.os-li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.os-sw {
  width: 14px; height: 14px; border-radius: 3px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 8px; color: var(--seat-text, #1A1A2E);
}
.os-sw-taken { background: var(--seat-taken, #D3D8DF); }
.os-sw-dot { background: var(--seat-taken, #D3D8DF); width: 8px; height: 8px; margin: 3px; border-radius: 2px; }
.os-sw-mine { background: var(--seat-mine, #1A1A2E); color: var(--seat-on-mine, #fff); }
.os-sw-limited { background: #FFD21F; }

.os-alert {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 6; margin: 0;
  display: flex; align-items: flex-start; gap: 10px; border-radius: 12px; font-size: .9rem;
}
.os-alert-icon { margin-top: 3px; }
.os-alert-text { flex: 1; }
.os-alert .btn-close { font-size: .7rem; margin-top: 4px; }

/* The picker: a popover next to the seat (desktop) or a bottom sheet (phone). */
.os-popover, .os-sheet { background: var(--seat-surface, #fff); z-index: 8; display: flex; flex-direction: column; gap: 12px; }
.os-popover {
  position: absolute; width: 300px; padding: 16px; border-radius: 16px;
  box-shadow: 0 8px 28px rgba(26, 26, 46, .18); max-height: calc(100% - 16px); overflow-y: auto;
}
.os-sheet {
  position: absolute; z-index: 26; left: 0; right: 0; bottom: 0; padding: 20px 16px 16px;
  border-radius: 16px 16px 0 0; box-shadow: 0 -8px 28px rgba(26, 26, 46, .18);
  max-height: 85%; overflow-y: auto;
}
.os-backdrop { position: absolute; inset: 0; z-index: 25; background: rgba(26, 26, 46, .35); border-radius: inherit; }
.os-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.os-title { font-size: 1.1rem; font-weight: 600; color: var(--seat-text, #1A1A2E); }
.os-sub { font-size: .85rem; color: var(--seat-text-2, #5F6773); margin-top: 2px; }
.os-x { border: none; background: none; color: var(--seat-text-2, #5F6773); font-size: 1.1rem; padding: 0 2px; cursor: pointer; }
.os-note {
  display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; line-height: 1.4;
  background: var(--seat-note-bg, #FFF4CC); color: var(--seat-note-text, #6B5300); border-radius: 10px; padding: 10px 12px;
}
.os-note i { margin-top: 3px; }
.os-note-info { background: var(--seat-note-info-bg, #EEF4FF); color: var(--seat-note-info-text, #1E3A8A); }
.os-label { font-size: .85rem; font-weight: 600; color: var(--seat-text, #1A1A2E); }
.os-prices { display: flex; flex-direction: column; gap: 8px; }
.os-prices .tm-ticket-row { margin: 0; }
/* Each price is a button: one tap adds the seat at that price. */
.os-price {
  width: 100%; cursor: pointer; padding: .75rem 1rem; gap: .75rem;
  font: inherit; color: inherit; text-align: left;
  transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}
@media (hover: hover) { .os-price:hover { border-color: var(--seat-accent, #0D6EFD); background: var(--seat-surface-2, #F7FAFF); } }
.os-price:active { background: var(--seat-surface-2, #EEF4FF); }
.os-price:focus { outline: 0; }
.os-price:focus-visible {
  border-color: var(--seat-accent, #0D6EFD);
  box-shadow: 0 0 0 2px rgba(13,110,253,.35);   /* without color-mix() (iOS < 16.2) */
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--seat-accent, #0D6EFD) 35%, transparent);
}
.os-price-name { flex: 1; font-size: .95rem; }
.os-price-amt { margin: 0; }
/* The only row of a picker (a seat with a warning): it says it adds, like the modal's button. */
.os-price-add {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: var(--seat-accent, #0D6EFD); color: var(--seat-on-accent, #fff); border-radius: 999px; padding: 4px 12px;
  font-size: .85rem; font-weight: 600;
}
.os-price-add i { font-size: .75rem; }
.os-add { margin-top: 0; }
.os-left { display: flex; justify-content: space-between; font-size: .9rem; }
.os-left-n { font-weight: 600; color: var(--seat-text, #1A1A2E); }
.os-left-of { color: var(--seat-text-2, #5F6773); }
.os-bar { height: 6px; background: var(--seat-border, #E9ECEF); border-radius: 3px; overflow: hidden; margin-top: -6px; }
.os-bar span { display: block; height: 100%; background: var(--bat-green, #9ED13C); }
.os-foot { font-size: .82rem; color: var(--seat-text-2, #5F6773); }

/* Your seats in the cart panel: the trash button lets one go. */
.tm-cart-item .os-remove {
  border: none; background: none; color: var(--bat-text-secondary, #5F6773); padding: 0 2px; cursor: pointer;
}
.tm-cart-item .os-remove:hover { color: #dc3545; }

@media (max-width: 991.98px) {
  .os-chip { top: 12px; left: 12px; }
  .os-zoom { right: 12px; bottom: 12px; flex-direction: column; }
  .os-zoom button:first-child { border-radius: 12px 12px 0 0; }
  .os-zoom button:last-child { border-radius: 0 0 12px 12px; }
  .os-legend { left: 12px; bottom: 12px; max-width: calc(100% - 76px); }
}
