/* Table booking surfaces — extends site tokens (Abi handover lift) */
.table-app { max-width: 720px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.table-app h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 0.5rem; }
.table-card {
  background: #fff;
  border: 1px solid var(--hth-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}
.table-field { margin-bottom: 1rem; }
.table-field label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.35rem; }
.table-field input, .table-field select, .table-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--hth-border-field);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}
.table-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.table-row .table-field { flex: 1; min-width: 140px; }
.table-btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.table-btn-primary { background: var(--hth-green); color: var(--hth-cream); }
.table-btn-primary:hover { background: var(--hth-green-deep); }
.table-btn-brass { background: var(--hth-brass); color: var(--hth-green-deep); }
.table-status { padding: 0.2rem 0.55rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; }
.table-status-pending { background: #f4e4c8; color: #6b4e1f; }
.table-status-awaiting { background: #dce9f5; color: #1a4a6e; }
.table-status-paid { background: #d4edda; color: #1e5631; }
.table-status-declined { background: #f8d7da; color: #842029; }
.table-manager { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.table-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.table-tab {
  padding: 0.5rem 1rem;
  border: 1px solid var(--hth-border);
  border-radius: var(--radius-pill);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}
.table-tab.active { background: var(--hth-green); color: var(--hth-cream); border-color: var(--hth-green); }
.table-list { list-style: none; padding: 0; margin: 0; }
.table-list li {
  padding: 0.85rem;
  border-bottom: 1px solid var(--hth-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.table-muted { color: var(--hth-body-tertiary); font-size: 0.9rem; }
/* A voucher code never breaks at its hyphens. */
.voucher-code-example { white-space: nowrap; }
.table-order-summary { font-size: 1rem; color: var(--hth-body); margin: 0.35rem 0; }
.table-paused { border-left: 5px solid var(--hth-brass); padding: 1.5rem 1.5rem 1.5rem 1.75rem; }
.table-paused[hidden] { display: none; }
.table-paused-title { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 0.5rem; color: var(--hth-green-deep); }
.table-paused-msg { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.table-paused-msg a { color: var(--hth-green); font-weight: 700; text-decoration: underline; white-space: nowrap; }
.table-error { color: #b42318; font-size: 0.9rem; }
.table-success { color: #1e5631; font-size: 0.9rem; }
@media (max-width: 390px) {
  .table-app { padding: 1rem 0.75rem 2rem; }
  .table-row { flex-direction: column; }
  .table-manager .table-list li { flex-direction: column; }
}
/* Gift voucher purchase */
.table-optional { font-weight: 400; color: var(--hth-body-tertiary); }
.voucher-options { border: none; margin: 0 0 0.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.voucher-options legend { font-family: var(--font-display); font-size: 1.35rem; color: var(--hth-green-deep); margin-bottom: 0.75rem; padding: 0; }
.voucher-option { position: relative; display: block; cursor: pointer; text-transform: none; letter-spacing: normal; font-size: 1rem; font-weight: 400; }
.voucher-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.voucher-option-body {
  display: flex; flex-direction: column; gap: 0.25rem; height: 100%;
  padding: 1rem 1.1rem; border: 1px solid var(--hth-border-field); border-radius: var(--radius-md); background: #fff;
}
.voucher-option-name { font-weight: 600; color: var(--hth-green); }
.voucher-option-price { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; color: var(--hth-green-deep); font-variant-numeric: lining-nums; }
.voucher-option input:checked + .voucher-option-body { border: 2px solid var(--hth-brass); padding: calc(1rem - 1px) calc(1.1rem - 1px); background: var(--hth-cream-soft); }
.voucher-option input:focus-visible + .voucher-option-body { outline: 3px solid var(--hth-green); outline-offset: 2px; }
.voucher-amount { grid-column: 1 / -1; max-width: 220px; margin: 0.25rem 0 0; }
.voucher-amount[hidden] { display: none; }
.voucher-step { font-family: var(--font-display); font-size: 1.35rem; color: var(--hth-green-deep); margin: 1.5rem 0 0.75rem; }
.voucher-hint { margin: -0.5rem 0 1rem; }
.voucher-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--hth-border); padding: 1rem 0; margin-top: 0.5rem; }
.voucher-total strong { font-family: var(--font-display); font-size: 1.75rem; color: var(--hth-green-deep); font-variant-numeric: lining-nums; }
.voucher-secure { margin: 0.75rem 0 0; }
.voucher-status { border-left: 5px solid var(--hth-brass); padding: 1.25rem 1.5rem; }
.voucher-status[hidden] { display: none; }
.voucher-status h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 0.35rem; color: var(--hth-green-deep); }
.voucher-status p { margin: 0; }
.voucher-status-ok { border-left-color: var(--hth-green); }
.voucher-check { align-items: flex-end; }
.voucher-check .table-btn { margin-bottom: 1rem; }
#voucher-form[hidden] { display: none; }
@media (max-width: 480px) {
  .voucher-options { grid-template-columns: 1fr; }
}
/* Steve's Confirm / Decline page (respond.html) */
.table-btn-ghost { background: #fff; color: var(--hth-green); border: 2px solid var(--hth-border-field); text-decoration: none; text-align: center; }
.table-btn-ghost:hover { border-color: var(--hth-green); }
.table-btn:disabled { opacity: 0.6; cursor: default; }
.respond-details { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; margin: 0 0 1.25rem; }
.respond-details dt { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--hth-body-tertiary); padding-top: 0.15rem; }
.respond-details dd { margin: 0; color: var(--hth-green-deep); overflow-wrap: anywhere; }
.respond-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.5rem 0 1rem; }
.respond-result { border-left: 5px solid var(--hth-brass); }
.respond-result h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 0.35rem; color: var(--hth-green-deep); }
.respond-ok { border-left-color: var(--hth-green); }
@media (max-width: 480px) {
  .respond-details { grid-template-columns: 1fr; gap: 0.15rem; }
  .respond-details dd { margin-bottom: 0.6rem; }
  .respond-actions .table-btn { flex: 1 1 100%; }
}
