body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f7f7f7; color: #222; }
.topbar { display: flex; gap: 16px; align-items: center; padding: 12px 16px; background: linear-gradient(90deg, #84277A 0%, #6d1f64 100%); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,0.18); }
.brand { font-weight: 700; letter-spacing: 0.5px; }
.container { max-width: 980px; margin: 0 auto; padding: 18px 16px 60px; }
.container.container-wide { max-width: 1380px; }
.card { background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.col { flex: 1 1 240px; }
h1,h2,h3 { margin: 0 0 12px; }
label { display: block; font-size: 13px; margin-bottom: 6px; }
input, select, button, textarea { font: inherit; padding: 10px; border-radius: 8px; border: 1px solid #ccc; width: 100%; box-sizing: border-box; }
button { cursor: pointer; border: none; background: #111; color: #fff; }
button.secondary { background: #444; }
button.ghost { background: transparent; color: #111; border: 1px solid #ccc; }
button.danger { background: #a31621; }
.inline { display: inline-block; width: auto; }
.admin-store-view-tabs {
  align-items: center;
}

.admin-store-view-tabs button {
  width: auto;
  min-width: 120px;
  border: 1px solid #ccc;
  background: #fff;
  color: #111;
}

.admin-store-view-tabs button.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.admin-store-action-col {
  flex: 0 0 auto;
  min-width: auto;
  width: auto;
}

.admin-store-action-col button {
  width: auto;
  min-width: 120px;
}

#spArea .row > button.small,
#spArea .row > button.inline,
#spArea .list-item button,
#spArea .gift-card-form-actions button {
  width: auto;
}
.pill { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #eee; font-size: 12px; margin-left: 6px; }
.pill-warning { background: #fff1f1; color: #8f1f1f; border: 1px solid #efb3b3; }
button.pill { width: auto; }
button.dl-billing-pill {
  margin-left: 8px;
  cursor: pointer;
  vertical-align: middle;
}
button.dl-billing-pill:hover,
button.dl-billing-pill:focus-visible {
  background: #ffe8e8;
  color: #7a1919;
  border-color: #d98e8e;
}
.board-billing-pill {
  margin-left: 8px;
  vertical-align: middle;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid #eee; text-align: left; padding: 10px 6px; font-size: 14px; }
.table-scroll { max-height: 70vh; overflow: auto; }
.table-sticky thead th { position: sticky; top: 0; background: #fff; z-index: 2; }
.muted { color: #666; font-size: 13px; }
.alert { padding: 10px 12px; border-radius: 8px; background: #fff2cc; border: 1px solid #ffe599; margin-bottom: 12px; }
.error { padding: 10px 12px; border-radius: 8px; background: #ffe6e6; border: 1px solid #ffb3b3; margin-bottom: 12px; }
.success { padding: 10px 12px; border-radius: 8px; background: #e7f7e7; border: 1px solid #b6e7b6; margin-bottom: 12px; }
.footer { padding: 16px; text-align: center; color: #777; }
.signature-pad { border: 1px dashed #bbb; border-radius: 10px; width: 100%; height: 180px; touch-action: none; background: #fff; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 12px; padding: 14px; max-width: 720px; width: 100%; }
.modal h3 { margin-bottom: 10px; }
.small { font-size: 12px; }


/* Phase 2 UI helpers */
.nav-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; }
.nav-inner .spacer { flex: 1; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,0.22); color: #fff; font-size: 12px; opacity: 0.95; }
.cart-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 12px; font-weight: 800; line-height: 18px; }
.mt { margin-top: 12px; }
.list-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #eee; background: #fafafa; color: #50435D; border-radius: 10px; padding: 10px; margin-top: 10px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0; }
.checkbox input { width: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.slotBtn { width: auto; margin: 4px 4px 0 0; }
.slotBtn.selected { outline: 2px solid #111; }
.button-link { display: inline-block; padding: 10px 12px; background: #111; color: #fff; border-radius: 8px; text-decoration: none; }
textarea.noteBox { width: 100%; min-height: 90px; }

/* Hotfix: list-item action buttons should not stretch full width */
.list-item button { width: auto; }


#nav { flex: 1; }

.nav-inner { display: flex; align-items: center; width: 100%; gap: 10px; }

.nav-left, .nav-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.nav-right { margin-left: auto; }

.nav-link { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 10px; opacity: 0.95; }

.nav-link:hover { background: rgba(255,255,255,0.12); opacity: 1; text-decoration: none; }

.nav-link.active { background: rgba(255,255,255,0.22); }



/* ============================================================
   Staff Daily Lessons UI polish
   ============================================================ */

.dl-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.dl-toolbar-right { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }


.dl-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.dl-field label {
  display: block;
  margin-bottom: 4px;
}

.dl-field input,
.dl-field select {
  width: 100%;
}

@media (max-width: 1100px) {
  .dl-filters { grid-template-columns: 1fr 1fr; }
  .dl-field-search { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .dl-filters { grid-template-columns: 1fr; }
}

.dl-datebox { display: flex; flex-direction: column; gap: 10px; }
.dl-navline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dl-navline button { width: auto; }
.dl-navline input[type="date"] { width: auto; min-width: 170px; }

.dl-subgrid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px);
  gap: 12px;
  align-items: end;
}

.dl-subgrid label { margin-bottom: 4px; display: block; }
.dl-subgrid select { width: 100%; }

@media (max-width: 700px) {
  .dl-subgrid { grid-template-columns: 1fr; }
}

button.outline { background: #fff; color: #111; border: 1px solid #666; }
button.outline:hover { background: #f3f3f3; }

.dl-legend-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dl-legend-title { font-size: 12px; color: #666; font-weight: 600; }
.dl-legend-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.dl-lesson-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.lt-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; border: 1px solid #ddd; font-size: 12px; font-weight: 800; line-height: 18px; white-space: nowrap; }

.dl-instructor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .dl-instructor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .dl-instructor-grid { grid-template-columns: 1fr; } }

.dl-instructor-card { border: 1px solid #eee; background: #fff; border-radius: 12px; padding: 12px; }
.dl-instructor-head { margin-bottom: 8px; }

.dl-compact-list .list-item { margin-top: 8px; }
.dl-compact-list .list-item:first-child { margin-top: 0; }


/* Lessons daily view: clickable lesson cells + modal actions */
.dl-schedule-item { border-left: 4px solid transparent; }
.dl-schedule-item--lesson { cursor: pointer; }
.dl-schedule-item--lesson:hover { background: #f3f3f3; }
.dl-schedule-item--class { background: #faf7ff; border-left-color: #8c6bd3; }
.dl-schedule-item--open { background: #f5fbf7; border-left-color: #2f8f57; border-left-style: dashed; }

.dl-kind-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  background: #f3f3f3;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.dl-kind-pill.kind-class {
  background: #efe8ff;
  border-color: #c2afea;
  color: #4f3586;
}

.dl-kind-pill.kind-open {
  background: #e8f7ee;
  border-color: #9fd2af;
  color: #24623c;
}

.dl-open-note {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.dl-time-row[data-lesson-id] { cursor: pointer; }
.dl-time-row[data-lesson-id]:hover { background: #f7f7f7; }
.dl-time-row.is-class { background: #fcf9ff; }
.dl-time-row.is-open { background: #f7fcf9; }

.dl-time-title { font-weight: 700; }
.dl-time-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}

.dl-lesson-time { line-height: 1.15; }
.dl-lesson-name { margin-top: 2px; }

.dl-lesson-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 10px;
}

@media (max-width: 520px) {
  .dl-lesson-modal-grid { grid-template-columns: 1fr; }
}

button.danger-outline { background: #fff; color: #a31621; border: 1px solid #a31621; }
button.danger-outline:hover { background: #fff5f5; }

.rc-cancel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.rc-info-card {
  border: 1px solid #e8e8e8;
  background: #fafafa;
  border-radius: 10px;
  padding: 12px;
}

.rc-decision .alert { margin-bottom: 0; }

@media (max-width: 700px) {
  .rc-cancel-grid { grid-template-columns: 1fr; }
}



/* Staff lesson booking: kid-search match indicator */
.slb-match-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #9a9a9a;
  background: #fff;
  color: #444;
  font-size: 12px;
  margin-left: 8px;
  vertical-align: middle;
}
/* ============================================================
   Store
   ============================================================ */
.store-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.store-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.store-toolbar-actions button {
  width: auto;
}

.store-gift-card-modal {
  max-width: 760px;
}

.gift-card-modal-body {
  display: grid;
  gap: 12px;
}

.gift-card-purchase-note {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e7dff3;
  background: #faf7ff;
}

.gift-card-quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gift-card-quick-amounts button {
  width: 100%;
}

.gift-card-quick-amounts button.is-selected {
  box-shadow: inset 0 0 0 2px #111;
}

.gift-card-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gift-card-form-actions button {
  width: auto;
}

.gift-card-list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: auto;
}

.gift-card-list-actions button {
  width: auto;
}

.store-grid { align-items: stretch; }

.store-card { display: flex; gap: 12px; margin-bottom: 0; }

.store-img {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-img img { width: 100%; height: 100%; object-fit: cover; }

.store-img-placeholder { font-size: 12px; padding: 6px; text-align: center; }



/* Product image crop preview (Admin) */
.crop-preview {
  display: inline-block;
  padding: 8px;
  border: 1px dashed #ddd;
  border-radius: 10px;
  background: #fafafa;
}

.crop-canvas {
  display: block;
  margin-top: 6px;
  border: 1px solid #eee;
  border-radius: 10px;
}
.store-meta { flex: 1; min-width: 0; }

.product-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #eee;
  border-radius: 10px;
}

@media (max-width: 520px) {
  .store-card { flex-direction: column; }
  .store-img { width: 100%; height: 160px; flex: 0 0 auto; }
}

@media (max-width: 640px) {
  .gift-card-quick-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Admin submenu tabs */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-tabs .admin-tab { padding: 6px 10px; }
.admin-tabs .admin-tab.active { background: #111; color: #fff; border: none; }

.receipt-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.receipt-actions .inline {
  width: auto;
}

@media print {
  .topbar,
  .footer,
  .print-hide {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .card {
    box-shadow: none;
    border-color: #ddd;
    page-break-inside: avoid;
  }
}


/* Class roster attendance UI */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.attendance-panel {
  border: 1px solid #e7eaef;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.attendance-meeting-meta {
  color: #55606d;
  font-size: 13px;
}

.attendance-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.attendance-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #dbe1e8;
  background: #f8fafc;
  color: #324152;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.attendance-status-chip strong {
  font-size: 12px;
}

.attendance-status-chip.is-summary {
  background: #fff;
}

.attendance-status-chip .attendance-status-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.attendance-status-chip .attendance-status-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.attendance-status-chip .attendance-pill-label {
  font-weight: 600;
}

.attendance-status-chip.status-expected {
  background: #f6f8fb;
  border-color: #dde5ee;
  color: #617083;
}

.attendance-status-chip.status-checked-in {
  background: #eef7e8;
  border-color: #cfe3c4;
  color: #3f7a23;
}

.attendance-status-chip.status-cancelled-early {
  background: #f3f5f7;
  border-color: #d6dce4;
  color: #69727d;
}

.attendance-status-chip.status-cancelled-late {
  background: #fff3e8;
  border-color: #f1d5b8;
  color: #9b5d13;
}

.attendance-status-chip.status-no-show {
  background: #fff1f0;
  border-color: #f1c5c1;
  color: #a63a32;
}

.attendance-status-chip.status-payroll {
  background: #edf4ff;
  border-color: #cdddff;
  color: #2c5a9f;
}

.attendance-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) minmax(180px, 0.85fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.attendance-filter-meta {
  padding-bottom: 10px;
}

.attendance-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e7eaef;
  border-radius: 12px;
  background: #fafbfd;
  margin-top: 12px;
}

.attendance-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

button.attendance-select-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #ccd4de;
  background: #fff;
  color: #233042;
  font-size: 13px;
  font-weight: 600;
}

button.attendance-select-btn:hover:not(:disabled) {
  border-color: #b7c1ce;
  background: #f7f9fc;
}

button.attendance-select-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.attendance-selection-count {
  margin-left: 4px;
}

.attendance-bulk-actions {
  gap: 6px;
}

button.attendance-icon-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #ccd4de;
  background: #fff;
  color: #98a2ad;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

button.attendance-icon-btn .attendance-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

button.attendance-icon-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

button.attendance-icon-btn:hover:not(:disabled) {
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
  transform: translateY(-1px);
}

button.attendance-icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button.attendance-icon-btn.is-active:disabled {
  opacity: 1;
}

button.attendance-icon-btn.status-checked-in {
  color: #a6adb7;
}

button.attendance-icon-btn.status-cancelled-early {
  color: #a6adb7;
}

button.attendance-icon-btn.status-cancelled-late {
  color: #a6adb7;
}

button.attendance-icon-btn.status-no-show {
  color: #a6adb7;
}

button.attendance-icon-btn.status-expected {
  color: #7a8696;
}

button.attendance-icon-btn.is-active.status-checked-in {
  background: #6aa84f;
  border-color: #6aa84f;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

button.attendance-icon-btn.is-active.status-cancelled-early {
  background: #eff2f5;
  border-color: #cfd6de;
  color: #68727d;
}

button.attendance-icon-btn.is-active.status-cancelled-late {
  background: #fff3e8;
  border-color: #f1d5b8;
  color: #9b5d13;
}

button.attendance-icon-btn.is-active.status-no-show {
  background: #fff1f0;
  border-color: #f1c5c1;
  color: #a63a32;
}

button.attendance-icon-btn.is-active.status-expected {
  background: #eef4fb;
  border-color: #c7d6e7;
  color: #617083;
}

.attendance-checkbox {
  width: auto;
  margin: 0;
  accent-color: #617083;
}

.class-roster-table,
.program-roster-table {
  min-width: 980px;
}

.class-roster-table .attendance-selection-cell {
  width: 40px;
  text-align: center;
}

.class-roster-table .attendance-selection-cell input[type="checkbox"],
.class-roster-table input.attendance-checkbox {
  width: auto;
  margin: 0;
}

.class-roster-table .attendance-action-cell {
  width: 248px;
}

.program-roster-table .attendance-action-cell {
  width: 170px;
}

.class-roster-row.is-selected {
  background: #fafbfd;
}

.class-roster-table .attendance-person,
.program-roster-table .attendance-person {
  font-weight: 600;
  color: #1f2937;
}

.class-roster-table .attendance-subline {
  margin-top: 4px;
}

.class-roster-table .attendance-status-cell,
.class-roster-table .attendance-checked-in-time,
.program-roster-table .attendance-status-cell,
.program-roster-table .attendance-checked-in-time,
.program-roster-table .attendance-package-cell {
  white-space: nowrap;
}

.class-roster-table .attendance-action-row,
.program-roster-table .attendance-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.class-roster-table .attendance-parent-meta,
.program-roster-table .attendance-parent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.class-roster-table .attendance-parent-meta .muted,
.program-roster-table .attendance-parent-meta .muted {
  font-size: 12px;
}

@media (max-width: 1100px) {
  .attendance-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .attendance-filter-grid .attendance-filter-meta {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }
}

@media (max-width: 760px) {
  .attendance-filter-grid {
    grid-template-columns: 1fr;
  }

  .attendance-toolbar {
    align-items: flex-start;
  }

  .class-roster-table,
  .program-roster-table {
    min-width: 860px;
  }
}


/* ============================================================
   Account credit + billing UI
   ============================================================ */

.cart-credit-box {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fafafa;
  padding: 12px;
}

.wallet-credit-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wallet-credit-metric {
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fafafa;
}

.wallet-credit-issue {
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fafafa;
  padding: 12px;
}

.billing-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.billing-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.billing-tab-btn {
  width: auto;
}

.billing-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.billing-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.billing-quick-actions,
.billing-action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.billing-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.billing-metric {
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fafafa;
  padding: 10px 12px;
}

.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: start;
}


.billing-invoice-layout {
  grid-template-columns: minmax(0, 1fr);
}

.billing-invoice-layout #billingInvoiceDetail {
  min-width: 0;
}

.billing-results-card {
  min-width: 0;
}

.billing-results-card .billing-results-table {
  table-layout: fixed;
}

.billing-results-card .billing-results-table th,
.billing-results-card .billing-results-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.billing-results-card .billing-results-table th:nth-child(1),
.billing-results-card .billing-results-table td:nth-child(1) {
  width: 23%;
}

.billing-results-card .billing-results-table th:nth-child(2),
.billing-results-card .billing-results-table td:nth-child(2) {
  width: 19%;
}

.billing-results-card .billing-results-table th:nth-child(3),
.billing-results-card .billing-results-table td:nth-child(3) {
  width: 17%;
}

.billing-results-card .billing-results-table th:nth-child(4),
.billing-results-card .billing-results-table td:nth-child(4) {
  width: 10%;
}

.billing-results-card .billing-results-table th:nth-child(5),
.billing-results-card .billing-results-table td:nth-child(5),
.billing-results-card .billing-results-table th:nth-child(6),
.billing-results-card .billing-results-table td:nth-child(6) {
  width: 8%;
}

.billing-results-card .billing-results-table th:nth-child(7),
.billing-results-card .billing-results-table td:nth-child(7) {
  width: 11%;
}

.billing-results-card .billing-results-table th:nth-child(8),
.billing-results-card .billing-results-table td:nth-child(8) {
  width: 4%;
  white-space: nowrap;
}

.billing-table th,
.billing-table td {
  white-space: nowrap;
  vertical-align: top;
}

.billing-table td:first-child,
.billing-table th:first-child,
.billing-table td:nth-child(2),
.billing-table th:nth-child(2) {
  white-space: normal;
}

.billing-row-active {
  background: #faf7ff;
}

.billing-search-result {
  justify-content: space-between;
}

.account-credit-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.billing-refund-panel {
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.billing-refund-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(220px, 280px) minmax(280px, 1fr);
  gap: 12px;
  align-items: start;
}

.billing-refund-field {
  min-width: 0;
}

.billing-refund-reason-field textarea,
.billing-refund-grid textarea {
  min-height: 90px;
  resize: vertical;
}

.billing-refund-submit-row {
  display: flex;
  justify-content: flex-end;
}

.billing-refund-submit-row button {
  width: auto;
  min-width: 180px;
}

.billing-refund-preview-card {
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fafafa;
  padding: 12px;
}

.billing-refund-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 1100px) {
  .billing-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .billing-refund-grid {
    grid-template-columns: 1fr 1fr;
  }

  .billing-refund-reason-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .billing-refund-grid {
    grid-template-columns: 1fr;
  }

  .billing-refund-submit-row {
    justify-content: stretch;
  }

  .billing-refund-submit-row button {
    width: 100%;
  }

  .billing-results-card .billing-results-table th:nth-child(3),
  .billing-results-card .billing-results-table td:nth-child(3),
  .billing-results-card .billing-results-table th:nth-child(7),
  .billing-results-card .billing-results-table td:nth-child(7) {
    width: auto;
  }
}


/* Reports workspace */
.reports-toolbar .reports-toolbar-row { align-items: flex-end; }
.report-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.report-inline-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.report-metrics { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.report-split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.report-edit-panel { border-color: #d9d9d9; }
.report-edit-panel h5 { margin: 0; }
.report-nav-card { padding: 14px; }
.report-nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.report-nav-item { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 86px; }
.report-nav-item.is-active { border-color: #111; background: #f7f7f7; }
.report-nav-item strong { font-size: 14px; }
.report-page-card { padding-top: 16px; }
.report-page-header h4 { margin: 0 0 4px; }
.report-page-header { margin-bottom: 12px; }
.table-scroll .table { min-width: 0; }
@media (max-width: 900px) {
  .report-card-head { align-items: stretch; }
  .report-inline-controls { width: 100%; }
}


/* Email marketing workspace */

.marketing-side label,
.marketing-main label {
  color: #222;
}

.marketing-side input,
.marketing-side textarea,
.marketing-side select,
.marketing-main input,
.marketing-main textarea,
.marketing-main select {
  color: #222;
  background: #fff;
  -webkit-text-fill-color: #222;
}

.marketing-side input::placeholder,
.marketing-side textarea::placeholder,
.marketing-main input::placeholder,
.marketing-main textarea::placeholder {
  color: #777;
  opacity: 1;
}

.marketing-side input:-webkit-autofill,
.marketing-side textarea:-webkit-autofill,
.marketing-main input:-webkit-autofill,
.marketing-main textarea:-webkit-autofill {
  -webkit-text-fill-color: #222;
  box-shadow: 0 0 0 1000px #fff inset;
}

.marketing-split {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.marketing-side,
.marketing-main {
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.marketing-side {
  position: sticky;
  top: 12px;
}

.marketing-list-item {
  width: 100%;
  text-align: left;
  display: block;
  border: 1px solid #e7e7e7;
  background: #fff;
  color: #222;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
  cursor: pointer;
}

.marketing-list-item:hover,
.marketing-list-item.active {
  border-color: #111;
  background: #fafafa;
}

.marketing-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.marketing-preview-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fafafa;
  padding: 14px;
}

.marketing-editor-shell {
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-bottom: 1px solid #e7e7e7;
  background: #fafafa;
}

.editor-toolbar-secondary {
  background: #fcfcfc;
}

.marketing-editor-select {
  width: auto;
  min-width: 130px;
}

.marketing-editor-status {
  padding: 10px 12px 0;
}

.wysiwyg-editor,
.wysiwyg-source {
  min-height: 360px;
  padding: 14px;
  background: #fff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  border: 0;
}

.wysiwyg-source {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

.wysiwyg-editor:focus,
.wysiwyg-source:focus {
  outline: 0;
}

.wysiwyg-editor p:first-child,
.wysiwyg-editor h1:first-child,
.wysiwyg-editor h2:first-child,
.wysiwyg-editor h3:first-child {
  margin-top: 0;
}

.wysiwyg-editor img {
  cursor: pointer;
}

.marketing-editor-image-selected {
  outline: 3px solid #111;
  outline-offset: 2px;
}

.marketing-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.marketing-stat-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fafafa;
  padding: 14px;
}

.marketing-stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}

@media (max-width: 1100px) {
  .marketing-split {
    grid-template-columns: 1fr;
  }

  .marketing-side {
    position: static;
  }
}

@media (max-width: 700px) {
  .marketing-range-row,
  .marketing-stats-grid {
    grid-template-columns: 1fr;
  }

  .editor-toolbar button,
  .editor-toolbar select {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
}


/* Open Play front desk hierarchy refresh */

.pill-success {
  background: #e7f7ee;
  color: #1f6a3a;
  border: 1px solid #b9e3c6;
}

.op-fd-register-card {
  border-color: #e7ddf5;
  background: linear-gradient(180deg, #fcfbff 0%, #ffffff 100%);
}

.op-fd-card-heading {
  margin-bottom: 12px;
}

.op-fd-card-heading h3 {
  margin-bottom: 6px;
}

.op-fd-step-eyebrow {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2ebfb;
  border: 1px solid #e2d3f7;
  color: #6b4b8c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.op-fd-family-banner,
.op-fd-empty-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #eadff5;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8f4fd 0%, #ffffff 100%);
}

.op-fd-family-name {
  font-size: 18px;
  line-height: 1.3;
  color: #241a2f;
}

.op-fd-family-meta {
  margin-top: 4px;
}

.op-fd-step-panel {
  padding: 14px;
  border: 1px solid #eadff5;
  border-radius: 14px;
  background: #fff;
}

.op-fd-step-panel-search {
  border-color: #dceafb;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.op-fd-step-panel-children {
  border-color: #f3e5c8;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.op-fd-cart-panel {
  padding: 14px;
  border: 1px solid #dfd2f7;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8f4ff 0%, #ffffff 100%);
}

.op-fd-step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.op-fd-step-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.op-fd-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.op-fd-search-row input {
  flex: 1 1 320px;
}

.op-fd-inline-btn {
  width: auto;
  white-space: nowrap;
}

.op-fd-primary-action {
  width: auto;
  min-width: 220px;
  background: #4b226b;
}

.op-fd-primary-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.op-fd-child-row {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: #ece4f6;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.op-fd-child-row:hover {
  border-color: #d9c8ef;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.op-fd-child-row.is-selected {
  border-color: #a978d5;
  background: #faf6ff;
  box-shadow: 0 0 0 1px #e3d2f6 inset;
}

.op-fd-child-check {
  flex: 1 1 280px;
  align-items: flex-start;
}

.op-fd-child-check input {
  margin-top: 2px;
}

.op-fd-child-name {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  color: #31213f;
}

.op-fd-child-subtext {
  display: block;
  margin-top: 4px;
}

.op-fd-child-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.op-fd-pill-info {
  background: #eef4ff;
  color: #294a83;
  border: 1px solid #c7d7f7;
}

.op-fd-pill-neutral {
  background: #f5f5f5;
  color: #5f5f5f;
  border: 1px solid #dfdfdf;
}

.op-fd-selection-summary {
  padding: 10px 12px;
  border: 1px dashed #d5c6ef;
  border-radius: 10px;
  background: #fff;
  color: #43315a;
}

.op-fd-cart-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.op-fd-empty-state {
  padding: 14px;
  border: 1px dashed #d7c8ef;
  border-radius: 12px;
  background: #fcfbff;
}

.op-fd-results-card {
  border-color: #e6eef9;
  background: #fff;
}

@media (max-width: 700px) {
  .op-fd-family-banner,
  .op-fd-empty-banner,
  .op-fd-step-header,
  .op-fd-search-row,
  .op-fd-cart-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .op-fd-inline-btn,
  .op-fd-primary-action {
    width: 100%;
  }

  .op-fd-child-row {
    align-items: flex-start;
  }

  .op-fd-child-status {
    justify-content: flex-start;
  }
}


/* Program catalog / Classes hierarchy refresh */

.prog-page-shell {
  border-color: #e7ddf5;
  background: linear-gradient(180deg, #fcfbff 0%, #ffffff 100%);
}

.prog-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 14px;
}

.prog-step-panel {
  padding: 14px;
  border: 1px solid #eadff5;
  border-radius: 14px;
  background: #fff;
}

.prog-step-panel-browse {
  border-color: #dceafb;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.prog-step-panel-participant {
  border-color: #eadff5;
  background: linear-gradient(180deg, #faf7ff 0%, #ffffff 100%);
}

.prog-step-eyebrow {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2ebfb;
  border: 1px solid #e2d3f7;
  color: #6b4b8c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.prog-step-title {
  margin: 0;
}

.prog-step-copy {
  margin-top: 6px;
}

.prog-page-note {
  padding: 12px 14px;
  border: 1px solid #f1dfb0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
  color: #5b4a22;
}

.prog-results-intro {
  padding: 14px;
  border: 1px solid #e7ddf5;
  border-radius: 14px;
  background: linear-gradient(180deg, #faf6ff 0%, #ffffff 100%);
}

.prog-staff-tip {
  border-color: #f1dfb0;
}

.prog-selection-summary {
  padding: 10px 12px;
  border: 1px dashed #d5c6ef;
  border-radius: 10px;
  background: #fff;
  color: #43315a;
}

.prog-selection-summary.is-selected {
  border-style: solid;
  border-color: #b998df;
  background: #faf6ff;
  box-shadow: 0 0 0 1px #e8dcf8 inset;
}

.prog-event-participant-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

.prog-event-participant-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prog-inline-btn {
  width: auto;
  white-space: nowrap;
}

.prog-class-card {
  border-color: #dfe8f7;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.prog-class-card-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.prog-class-main {
  flex: 1 1 460px;
  min-width: 280px;
}

.prog-class-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prog-class-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.prog-class-meta {
  margin-top: 6px;
}

.prog-class-meetings {
  margin-top: 6px;
}

.prog-class-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e5eefb;
  border-radius: 12px;
  background: #f9fbff;
}

.prog-class-price {
  font-size: 17px;
  color: #241a2f;
}

.prog-class-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prog-class-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 240px;
}

.prog-class-actions .prog-class-primary,
.prog-class-actions .prog-inline-btn {
  width: 100%;
  max-width: 240px;
  white-space: normal;
}

.prog-class-primary {
  background: #4b226b;
}

.prog-class-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.prog-roster-btn {
  background: #ffffff;
  color: #2c2440;
  border: 1px solid #d7caea;
}

.prog-class-inline-alert {
  margin-top: 10px;
}

.prog-class-trial-note {
  margin-top: 8px;
}

.prog-class-action-note {
  line-height: 1.4;
}

.prog-class-detail-panel {
  padding: 14px;
  border: 1px solid #eadff5;
  border-radius: 14px;
  background: linear-gradient(180deg, #faf7ff 0%, #ffffff 100%);
}

.prog-class-detail-title {
  margin: 0;
}

.prog-class-detail-grid {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.prog-class-detail-field {
  flex: 1 1 280px;
}

.prog-class-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prog-class-detail-actions .prog-inline-btn {
  min-width: 170px;
  white-space: normal;
}

@media (max-width: 900px) {
  .prog-page-grid {
    grid-template-columns: 1fr;
  }

  .prog-class-actions {
    flex: 1 1 100%;
  }

  .prog-class-actions .prog-class-primary,
  .prog-class-actions .prog-inline-btn {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .prog-class-price-row,
  .prog-class-detail-grid,
  .prog-class-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .prog-class-detail-actions .prog-inline-btn {
    width: 100%;
    min-width: 0;
  }
}


/* ============================================================
   Parties page booking refresh
   ============================================================ */

.party-page-intro {
  margin-bottom: 10px;
}

.party-page-intro .muted {
  font-size: 15px;
}

.party-context-card {
  background: linear-gradient(180deg, #fff 0%, #fcf8ff 100%);
  border-color: #eadcf1;
}

.party-context-grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(320px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.party-context-field--action {
  min-width: 220px;
}

.party-context-link {
  width: auto;
  white-space: nowrap;
}

.party-booking-for-card {
  border: 1px solid #e7e0f0;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 74px;
}

.party-booking-name {
  font-size: 18px;
  font-weight: 800;
  color: #35213a;
  line-height: 1.2;
}

.party-booking-meta {
  color: #5f5167;
  margin-top: 4px;
  font-size: 14px;
}

.party-booking-status {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe8ff;
  color: #513a8a;
  font-size: 12px;
  font-weight: 800;
}

.party-tabs-card {
  background: #fff;
  border-color: #eadcf1;
}

.party-tabs {
  gap: 10px;
}

.party-tabs .party-tab {
  width: auto;
  min-width: 120px;
  border-radius: 12px;
  background: #fff;
  color: #2d2131;
  border: 1px solid #d6c8de;
  padding: 10px 16px;
  font-weight: 700;
}

.party-tabs .party-tab.active {
  background: #f1ebff;
  border-color: #7a5bcc;
  color: #4c317f;
  box-shadow: inset 0 0 0 1px rgba(122, 91, 204, 0.12);
}

.party-book-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.party-book-intro {
  border: 1px solid #e6d8f1;
  background: linear-gradient(135deg, #faf6ff 0%, #fff 100%);
  border-radius: 16px;
  padding: 18px 20px;
}

.party-book-intro h3 {
  margin: 0 0 8px;
}

.party-book-intro-kicker {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ede6ff;
  color: #583b93;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.party-stage {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.party-stage-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
}

.party-stage-head h4 {
  margin: 0 0 4px;
}

.party-stage-body {
  padding: 0 18px 18px;
}

.party-stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.party-stage--blue {
  border-color: #d8e6fb;
}

.party-stage--blue .party-stage-head {
  background: linear-gradient(135deg, #eef5ff 0%, #f9fbff 100%);
}

.party-stage--blue .party-stage-badge {
  color: #2457a6;
}

.party-stage--purple {
  border-color: #e6ddfb;
}

.party-stage--purple .party-stage-head {
  background: linear-gradient(135deg, #f4efff 0%, #fbf9ff 100%);
}

.party-stage--purple .party-stage-badge {
  color: #5f3eab;
}

.party-stage--gold {
  border-color: #f3e3b1;
}

.party-stage--gold .party-stage-head {
  background: linear-gradient(135deg, #fff7e3 0%, #fffdf7 100%);
}

.party-stage--gold .party-stage-badge {
  color: #9b6b0d;
}

.party-stage--green {
  border-color: #d5ebda;
}

.party-stage--green .party-stage-head {
  background: linear-gradient(135deg, #edf9f0 0%, #fbfefb 100%);
}

.party-stage--green .party-stage-badge {
  color: #2f7a46;
}

.party-selection-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.party-field--action {
  min-width: 220px;
}

.party-inline-action {
  width: auto;
  min-width: 220px;
}

.party-package-summary {
  border: 1px solid #ece6f5;
  background: #fcfbff;
  border-radius: 16px;
  padding: 16px;
}

.party-package-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.party-package-name {
  font-size: 18px;
  font-weight: 800;
  color: #34223b;
}

.party-package-desc {
  margin-top: 6px;
  color: #5f5167;
  max-width: 780px;
}

.party-summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1ebff;
  color: #563b95;
  font-size: 13px;
  font-weight: 800;
}

.party-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.party-metric-card {
  border: 1px solid #ede7f6;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}

.party-metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c6174;
  font-weight: 700;
}

.party-metric-value {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  color: #241d28;
  line-height: 1.1;
}

.party-metric-sub {
  margin-top: 4px;
  color: #5f5167;
  font-size: 13px;
}

.party-times-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.party-time-meta {
  color: #5f5167;
  font-size: 13px;
}

.party-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.party-time-btn {
  width: 100%;
  background: #fff;
  color: #2b2330;
  border: 1px solid #d8d0de;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}

.party-time-btn:hover:not(:disabled) {
  background: #f7f4ff;
  border-color: #9e84d8;
}

.party-time-btn.is-selected {
  background: #f1ebff;
  border-color: #7a5bcc;
  color: #4d2f86;
  box-shadow: inset 0 0 0 1px rgba(122, 91, 204, 0.14);
}

.party-time-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background: #f6f6f6;
  color: #7a7a7a;
}

.party-selected-time {
  border: 1px solid #e2daf4;
  background: #f8f5ff;
  border-radius: 14px;
  padding: 12px 14px;
}

.party-selected-time-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6e5b9f;
  font-weight: 800;
}

.party-selected-time-value {
  margin-top: 4px;
  font-weight: 800;
  color: #35205d;
}

.party-empty-state {
  border: 1px dashed #d6d6d6;
  background: #fafafa;
  border-radius: 14px;
  padding: 16px;
  color: #5f5f5f;
}

.party-addon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.party-addon-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 14px;
  align-items: end;
  border: 1px solid #ede7f6;
  background: #fcfbff;
  border-radius: 14px;
  padding: 14px;
}

.party-addon-title {
  font-weight: 800;
  font-size: 18px;
  color: #4f436a;
  line-height: 1.2;
}

.party-addon-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9e5eb;
  color: #6a6870;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.party-addon-price {
  margin-top: 6px;
  color: #5f5167;
  font-weight: 700;
}

.party-addon-qty label {
  margin-bottom: 6px;
}

.party-addon-qty input {
  text-align: center;
}

.party-note-wrap textarea {
  min-height: 96px;
}

.party-summary-card {
  border: 1px solid #d9ebdf;
  background: #f7fcf8;
  border-radius: 16px;
  padding: 16px;
}

.party-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.party-summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5d6f62;
  font-weight: 800;
}

.party-summary-value {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 800;
  color: #1f2923;
  line-height: 1.3;
}

.party-summary-note {
  margin-top: 12px;
  color: #56655a;
  font-size: 13px;
}

.party-book-action-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.party-primary-cta {
  width: auto;
  min-width: 260px;
}

.party-primary-cta:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.party-book-action-row #pbDepositInfo {
  flex: 1 1 280px;
}

@media (max-width: 1050px) {
  .party-context-grid {
    grid-template-columns: 1fr 1fr;
  }

  .party-context-field--action {
    grid-column: 1 / -1;
  }

  .party-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .party-selection-grid {
    grid-template-columns: 1fr;
  }

  .party-field--action {
    min-width: 0;
  }

  .party-inline-action {
    width: 100%;
    min-width: 0;
  }

  .party-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .party-context-grid {
    grid-template-columns: 1fr;
  }

  .party-package-grid {
    grid-template-columns: 1fr;
  }

  .party-addon-item {
    grid-template-columns: 1fr;
  }

  .party-summary-grid {
    grid-template-columns: 1fr;
  }

  .party-book-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .party-primary-cta {
    width: 100%;
    min-width: 0;
  }

  .party-tabs .party-tab {
    min-width: 0;
    flex: 1 1 140px;
  }

  .party-context-link {
    white-space: normal;
    text-align: center;
  }
}


/* Cart UX refresh */

.cart-shell {
  border-color: #e7ddf5;
  background: linear-gradient(180deg, #fcfbff 0%, #ffffff 100%);
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cart-intro {
  max-width: 680px;
  margin: 0;
}

.cart-header-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.cart-header-pills .pill {
  margin-left: 0;
}

.cart-count-pill {
  background: #eef4ff;
  color: #294a83;
  border: 1px solid #c7d7f7;
}

.cart-coupon-pill {
  background: #f2ebfb;
  color: #6b4b8c;
  border: 1px solid #e2d3f7;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.cart-items-panel {
  min-width: 0;
}

.cart-section-header {
  margin-bottom: 12px;
}

.cart-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-card {
  padding: 14px;
  border: 1px solid #ece4f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cart-item-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.cart-item-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #30223c;
}

.cart-item-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cart-item-badges .pill {
  margin-left: 0;
}

.cart-item-type-pill {
  background: #f2ebfb;
  color: #6b4b8c;
  border: 1px solid #e2d3f7;
}

.cart-item-qty-pill {
  background: #f5f5f5;
  color: #5f5f5f;
  border: 1px solid #dfdfdf;
}

.cart-item-note {
  margin-top: 8px;
}

.cart-item-price {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: #241a2f;
}

.cart-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cart-item-action {
  width: auto;
  min-width: 110px;
}

.cart-summary-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 86px;
  align-self: start;
}

.cart-summary-card {
  padding: 14px;
  border: 1px solid #e7ddf5;
  border-radius: 14px;
  background: #fff;
}

.cart-summary-card-total {
  background: linear-gradient(180deg, #faf6ff 0%, #ffffff 100%);
}

.cart-summary-card-coupon {
  border-color: #dceafb;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.cart-summary-card-credit {
  border-color: #f1dfb0;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.cart-summary-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b4b8c;
}

.cart-summary-amount {
  margin: 6px 0 10px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: #241a2f;
}

.cart-total-list {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #ece7f4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.cart-total-row strong {
  white-space: nowrap;
}

.cart-total-row-discount strong {
  color: #1f6a3a;
}

.cart-total-row-credit strong {
  color: #294a83;
}

.cart-summary-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #241a2f;
  margin-bottom: 8px;
}

.cart-summary-action {
  margin-top: 10px;
}

.cart-summary-inline-btn {
  width: auto;
  min-width: 180px;
}

.cart-credit-status-pill {
  margin-left: 6px;
  background: #eef4ff;
  color: #294a83;
  border: 1px solid #c7d7f7;
}

.cart-credit-entry-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-credit-entry {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #f0e5c4;
}

.cart-summary-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.cart-clear-btn {
  width: auto;
  color: #8f1f1f !important;
  border-color: #e2bcbc !important;
  background: #fff !important;
}

.cart-clear-btn:hover,
.cart-clear-btn:focus-visible {
  background: #fff5f5 !important;
}

.cart-feedback .alert,
.cart-feedback .error,
.cart-feedback .success {
  margin-bottom: 0;
}

.cart-empty-state {
  padding: 20px;
  border: 1px dashed #d7c8ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfbff 0%, #ffffff 100%);
}

.cart-empty-state h3 {
  margin-bottom: 8px;
}

.cart-checkout-shell {
  border-color: #e7ddf5;
  background: linear-gradient(180deg, #fcfbff 0%, #ffffff 100%);
}

.cart-checkout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cart-checkout-total {
  min-width: 160px;
  padding: 12px 14px;
  border: 1px solid #eadff5;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-checkout-total strong {
  font-size: 24px;
  color: #241a2f;
}

.cart-checkout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.cart-pay-card {
  padding: 14px;
  border: 1px solid #e7ddf5;
  border-radius: 14px;
  background: #fff;
}

.cart-pay-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cart-pay-card-saved {
  border-color: #dceafb;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.cart-pay-card-helcim {
  border-color: #eadff5;
  background: linear-gradient(180deg, #faf7ff 0%, #ffffff 100%);
}

.cart-pay-card-manual {
  border-color: #f1dfb0;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.cart-pay-card-zero {
  border-color: #cfe7d8;
  background: linear-gradient(180deg, #f5fcf7 0%, #ffffff 100%);
}

.cart-option-pill {
  margin-left: 0;
  background: #eef4ff;
  color: #294a83;
  border: 1px solid #c7d7f7;
}

.cart-option-pill-alt {
  background: #f2ebfb;
  color: #6b4b8c;
  border-color: #e2d3f7;
}

.cart-saved-card-selected {
  padding: 12px;
  border: 1px solid #e0ebfa;
  border-radius: 12px;
  background: #fff;
}

.cart-cta-btn {
  width: 100%;
}

.cart-pay-card-saved .cart-cta-btn {
  background: #264f86;
}

.cart-pay-card-helcim .cart-cta-btn {
  background: #4b226b;
}

.cart-pay-card-zero .cart-cta-btn {
  background: #1f6a3a;
}

.cart-empty-checkout {
  padding: 18px;
  border: 1px dashed #ddd;
  border-radius: 12px;
  background: #fafafa;
}

@media (max-width: 920px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .cart-header,
  .cart-item-top,
  .cart-checkout-header,
  .cart-pay-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-item-price {
    font-size: 22px;
  }

  .cart-item-actions {
    flex-direction: column;
  }

  .cart-item-action,
  .cart-summary-inline-btn,
  .cart-clear-btn {
    width: 100%;
  }

  .cart-header-pills {
    width: 100%;
  }
}
