:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #24313a;
  --muted: #66737d;
  --line: #d9ded8;
  --brand: #e96f2d;
  --brand-dark: #b94f1a;
  --green: #1f7a5b;
  --blue: #2f5f98;
  --red: #b0443e;
  --amber: #9a6a16;
  --shadow: 0 14px 30px rgba(26, 34, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

body.customer-route .topbar {
  display: none;
}

body.customer-route main {
  margin-top: 28px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 20px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 60px;
}

.booking-brand {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid #f1c27f;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(181, 89, 15, 0.12);
}

.booking-brand img {
  display: block;
  width: 100%;
  height: auto;
  background: #f3921f;
}

.booking-brand-copy {
  display: grid;
  gap: 6px;
  padding: 18px 24px 20px;
  border-top: 5px solid #f3921f;
  background: linear-gradient(90deg, #fff7eb 0%, #fff 55%, #fff9f1 100%);
}

.booking-brand-copy h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--brand-dark);
  font-size: 28px;
}

.booking-brand-copy h2 span {
  color: var(--ink);
  font-size: 24px;
}

.booking-brand-copy p:last-child {
  margin: 0;
  color: #3d464c;
  font-weight: 700;
  line-height: 1.7;
}

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

button {
  font: inherit;
}

.nav-btn,
.primary,
.secondary,
.slot-btn,
.mini-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.nav-btn {
  padding: 10px 14px;
  background: #eef1ee;
  color: var(--ink);
}

.nav-btn.active {
  background: var(--ink);
  color: #fff;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.flow {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.flow-step {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.flow-step.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.layout {
  display: grid;
  gap: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.short-field {
  width: min(100%, 560px);
}

.field-help {
  color: #7c878d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bfc8c2;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #aeb7bd;
  opacity: 1;
}

.panel-head p.vehicle-note {
  color: #37444c;
  font-weight: 800;
}

.panel-head p.confirm-note {
  color: #46545d;
  font-weight: 700;
}

textarea {
  resize: vertical;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
  font-weight: 700;
}

.choice-row span {
  min-width: 190px;
}

.choice-row label,
.consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.choice-row input,
.consent input {
  width: 20px;
  min-height: 20px;
}

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

.slot-btn {
  min-height: 58px;
  padding: 10px;
  background: #f7faf8;
  border-color: #bfc8c2;
}

.slot-btn.selected {
  background: #fff4ed;
  border-color: var(--brand);
  color: var(--brand-dark);
}

.slot-btn[disabled] {
  cursor: not-allowed;
  color: #8c969e;
  background: #ecefed;
}

.week-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}

.week-toolbar strong {
  font-size: 18px;
  text-align: center;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.legend-mark.open {
  background: #dff3f8;
}

.legend-mark.selected {
  background: #fff4ed;
  border-color: var(--brand);
}

.legend-mark.full {
  background: #fee7dc;
  border-color: #f38a64;
}

.legend-mark.blocked {
  background: #e6e8e6;
}

.week-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.week-table {
  min-width: 920px;
  display: grid;
  grid-template-columns: 84px repeat(7, minmax(116px, 1fr));
  background: var(--line);
  gap: 1px;
}

#bookingWeekGrid.week-table {
  grid-template-columns: repeat(7, minmax(116px, 1fr));
}

.week-cell,
.week-head,
.time-head {
  min-height: 58px;
  background: #fff;
  padding: 8px;
}

.time-head {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.week-head {
  text-align: center;
  font-weight: 800;
}

.week-head.today {
  background: #1f252b;
  color: #fff;
}

.week-head.saturday {
  color: #0877bd;
}

.week-head.sunday {
  color: #d9473f;
}

.week-slot {
  width: 100%;
  min-height: 72px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #dff3f8;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.week-slot small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.week-slot.selected {
  background: #fff4ed;
  border-color: var(--brand);
  color: var(--brand-dark);
}

.week-slot.full {
  background: #fee7dc;
  border-color: #f38a64;
  cursor: not-allowed;
}

.week-slot.full.status-needs_phone_confirmation {
  background: #fff0df;
  border-color: #f1a45b;
}

.week-slot.full.status-needs_email_confirmation {
  background: #e7f0ff;
  border-color: #7fa7e3;
}

.week-slot.full.status-waiting_customer_confirmation {
  background: #fff8d8;
  border-color: #e0c95a;
}

.week-slot.full.status-confirmed {
  background: #e6f6ee;
  border-color: #68b58d;
}

.week-slot.full.status-cancelled {
  background: #f8e1de;
  border-color: #de817b;
}

.week-slot.full.status-needs_contact_waiting_customer {
  background: #f0e6ff;
  border-color: #a78bdd;
}

.week-slot.blocked {
  background: #e6e8e6;
  color: #6d7478;
  cursor: not-allowed;
}

.week-slot.outside {
  background: #f1f2f0;
  color: #9ba3a8;
  cursor: not-allowed;
}

.admin-week .week-slot {
  cursor: pointer;
}

.admin-week .week-slot.full {
  cursor: pointer;
}

.slot-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-right: 4px;
  border-radius: 6px;
  font-size: 12px;
}

.primary,
.secondary {
  min-height: 46px;
  padding: 11px 18px;
}

.primary {
  background: var(--brand);
  color: #fff;
}

.primary:hover {
  background: var(--brand-dark);
}

.secondary {
  background: #eef1ee;
  color: var(--ink);
  border-color: var(--line);
}

.estimate-panel {
  border-color: #e8b58f;
}

.estimate-box {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.estimate-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0ed;
}

.estimate-total {
  margin-top: 4px;
  padding: 14px;
  border-radius: 8px;
  background: #f4f7f2;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
}

.notes {
  margin: 14px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--amber);
  background: #fff9ec;
  color: #66502a;
  line-height: 1.7;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.login-panel {
  max-width: 520px;
  margin: 0 auto;
}

.login-panel button {
  width: 100%;
}

.login-error {
  margin: -4px 0 0;
  color: var(--red);
  font-weight: 700;
}

.submit-message {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #f4b4a8;
  background: #fff4ef;
  color: #9a3412;
  font-weight: 700;
}

.submit-message[data-type="info"] {
  border-color: #bae6fd;
  background: #eff6ff;
  color: #075985;
}

.status-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.status-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font: inherit;
}

.status-card.alert,
.status-card.phone,
.status-card.email {
  background: #fff3f5;
  border-color: #f1b6c0;
}

.status-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.status-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(233, 111, 45, 0.18), var(--shadow);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.sortable-th {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sort-btn {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f4f6f4;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sort-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.phone,
.slot-pill.phone {
  background: #ffe6c8;
  color: #9a4d00;
}

.badge.email,
.slot-pill.email {
  background: #dceafe;
  color: #25559a;
}

.badge.wait,
.slot-pill.wait {
  background: #fff2b8;
  color: #7a5a00;
}

.badge.confirmed,
.slot-pill.confirmed {
  background: #d9f2e6;
  color: #166343;
}

.badge.cancelled,
.slot-pill.cancelled {
  background: #f7d6d3;
  color: #a73530;
}

.badge.alert,
.slot-pill.alert {
  background: #eadcff;
  color: #5d35a3;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.reservation-detail-panel {
  margin-top: 18px;
}

.detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

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

.detail-status-control {
  width: min(100%, 420px);
  margin: 0 0 18px;
}

.status-help {
  display: block;
  width: min(100%, 760px);
  margin-top: 10px;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: #fff8ef;
  padding: 10px 12px;
  color: #5e4b36;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.detail-mail-editor {
  margin: 0 0 18px;
  border: 1px solid #c9d8ea;
  border-radius: 8px;
  padding: 16px;
  background: #f4f8ff;
}

.detail-mail-editor h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.detail-mail-editor p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-mail-editor textarea {
  min-height: 300px;
  font-family: "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.6;
}

.phone-editor {
  background: #fff8ef;
  border-color: #e9c79a;
}

.editable-estimate-list {
  display: grid;
  gap: 10px;
}

.editable-estimate-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px;
  gap: 10px;
}

.compact-help {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.compact-estimate-list {
  gap: 8px;
}

.compact-estimate-list .editable-estimate-row {
  grid-template-columns: 1fr 92px;
  gap: 8px;
}

.compact-estimate-list .editable-estimate-row label {
  font-size: 12px;
}

.compact-estimate-list input {
  min-height: 36px;
  padding: 7px 8px;
  font-size: 13px;
}

.editable-estimate-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-weight: 800;
}

.editable-estimate-total span {
  color: var(--muted);
}

.editable-estimate-total strong {
  font-size: 18px;
  color: var(--brand-dark);
}

.estimate-save-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.estimate-save-status.unsaved {
  background: #fff4d8;
  color: #9a5a00;
}

.estimate-save-status.saved {
  background: #e8f4ee;
  color: var(--green);
}

.compact-actions {
  justify-content: stretch;
}

.compact-actions button {
  flex: 1 1 150px;
}

.detail-mail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfb;
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.detail-list {
  display: grid;
  gap: 8px;
}

.detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  font-size: 14px;
}

.detail-row span {
  color: var(--muted);
  font-weight: 700;
}

.precheck-admin-panel {
  background: #f6fbf7;
  border-color: #b9d8c2;
}

.precheck-admin-list {
  margin-top: 10px;
}

.readonly-link {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.precheck-shell {
  max-width: 860px;
  margin: 0 auto;
}

.precheck-hero {
  border-top: 10px solid #5b45e8;
  border-radius: 8px;
  background: #fff;
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.precheck-hero h2 {
  font-size: 30px;
  margin-bottom: 14px;
}

.precheck-hero p {
  margin: 0;
  line-height: 1.7;
}

.precheck-info {
  margin-top: 16px;
}

.precheck-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px 30px;
  box-shadow: 0 8px 20px rgba(26, 34, 40, 0.05);
}

.precheck-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.precheck-card p {
  margin: 0 0 22px;
  line-height: 1.6;
}

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

.precheck-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.precheck-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.precheck-checks {
  display: grid;
  gap: 16px;
}

.precheck-check {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.5;
}

.precheck-check input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.precheck-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.precheck-thanks {
  border-top: 10px solid #5b45e8;
  border-radius: 8px;
  background: #fff;
  padding: 42px 36px;
  box-shadow: var(--shadow);
}

.precheck-thanks h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.precheck-thanks p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.confirmation-shell {
  max-width: 780px;
  margin: 0 auto;
}

.confirmation-card {
  border-top: 10px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  padding: 34px 36px;
  box-shadow: var(--shadow);
}

.confirmation-card h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.confirmation-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.confirmation-card > .eyebrow {
  font-size: 16px;
}

.confirmation-summary {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 16px;
}

.confirmation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.danger-outline {
  border-color: #e5b5ad;
  background: #fff7f6;
  color: var(--red);
}

.precheck-editor {
  display: grid;
  gap: 14px;
}

.precheck-edit-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 16px;
}

.precheck-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.precheck-edit-head h3 {
  margin: 0;
  font-size: 16px;
}

.precheck-edit-items {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.precheck-edit-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
}

.mini-btn {
  padding: 7px 9px;
  background: #f4f6f4;
  border-color: var(--line);
  font-size: 12px;
}

.mini-btn.confirm {
  background: #e8f4ee;
  color: var(--green);
}

.mini-btn.cancel {
  background: #f7e8e6;
  color: var(--red);
}

.mini-btn.mail {
  background: #e8eef7;
  color: var(--blue);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.slot-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.slot-setting-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfb;
}

.slot-setting-box h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.slot-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.slot-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}

.slot-edit-row input {
  min-height: 40px;
}

.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-back {
  margin-bottom: 14px;
}

.mail-settings-grid {
  display: grid;
  gap: 16px;
  max-width: 620px;
}

.toggle-row {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  font-weight: 800;
}

.toggle-row input {
  width: 20px;
  height: 20px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 820px) {
  .topbar,
  .admin-head {
    align-items: stretch;
    flex-direction: column;
  }

  main {
    width: min(100% - 20px, 1180px);
    margin-top: 16px;
  }

  .booking-brand-copy {
    padding: 16px;
  }

  .booking-brand-copy h2 {
    font-size: 22px;
  }

  .booking-brand-copy h2 span {
    font-size: 20px;
  }

  .flow,
  .slot-grid,
  .status-board,
  .price-grid,
  .slot-settings-grid,
  .slot-edit-row,
  .detail-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    overflow-x: hidden;
  }

  main {
    width: min(100% - 14px, 1180px);
    margin: 10px auto 36px;
  }

  body.customer-route main {
    margin-top: 10px;
  }

  .booking-brand {
    margin-bottom: 12px;
    border-radius: 6px;
    box-shadow: 0 10px 22px rgba(181, 89, 15, 0.1);
  }

  .booking-brand img {
    min-height: 76px;
    object-fit: cover;
    object-position: center;
  }

  .booking-brand-copy {
    gap: 8px;
    padding: 14px;
    border-top-width: 4px;
    background: #fffaf3;
  }

  .booking-brand-copy h2 {
    display: block;
    font-size: 24px;
    line-height: 1.35;
  }

  .booking-brand-copy h2 span {
    display: block;
    margin-bottom: 3px;
    font-size: 18px;
  }

  .booking-brand-copy p:last-child {
    font-size: 14px;
    line-height: 1.65;
  }

  .panel {
    padding: 14px;
    border-radius: 6px;
  }

  .panel-head {
    margin-bottom: 14px;
  }

  .panel-head h2 {
    font-size: 19px;
  }

  .panel-head p {
    font-size: 14px;
    line-height: 1.7;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 16px;
  }

  label {
    gap: 8px;
    line-height: 1.5;
  }

  .choice-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0;
  }

  .choice-row span {
    min-width: 0;
  }

  .choice-row label,
  .consent {
    align-items: flex-start;
    line-height: 1.55;
  }

  .choice-row input,
  .consent input {
    flex: 0 0 auto;
    margin-top: 2px;
  }

  .week-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .week-toolbar strong {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 18px;
  }

  .week-toolbar .secondary {
    min-height: 48px;
  }

  .legend {
    gap: 8px 12px;
    font-size: 12px;
  }

  .week-table-wrap {
    margin-inline: -4px;
    border-radius: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .week-table {
    min-width: 760px;
    grid-template-columns: 58px repeat(7, minmax(96px, 1fr));
  }

  #bookingWeekGrid.week-table {
    grid-template-columns: repeat(7, minmax(96px, 1fr));
  }

  .week-cell,
  .week-head,
  .time-head {
    min-height: 50px;
    padding: 6px;
  }

  .week-head {
    font-size: 13px;
  }

  .time-head {
    font-size: 12px;
  }

  .week-slot {
    min-height: 64px;
    padding: 7px;
    font-size: 14px;
  }

  .week-slot small {
    font-size: 12px;
  }

  #bookingWeekGrid.mobile-week-list {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    background: transparent;
  }

  #bookingWeekGrid.mobile-week-list .mobile-day-card {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  #bookingWeekGrid.mobile-week-list .mobile-day-card.today {
    border-color: #1f252b;
    box-shadow: inset 4px 0 0 #1f252b;
  }

  #bookingWeekGrid.mobile-week-list .mobile-day-card.saturday h3 {
    color: #0877bd;
  }

  #bookingWeekGrid.mobile-week-list .mobile-day-card.sunday h3 {
    color: #d9473f;
  }

  #bookingWeekGrid.mobile-week-list h3 {
    margin: 0;
    font-size: 16px;
  }

  #bookingWeekGrid.mobile-week-list .mobile-slot-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #bookingWeekGrid.mobile-week-list .week-slot {
    display: grid;
    grid-template-columns: minmax(92px, auto) 1fr;
    align-items: center;
    min-height: 54px;
    font-size: 15px;
  }

  #bookingWeekGrid.mobile-week-list .week-slot small {
    margin-top: 0;
    text-align: right;
  }

  .primary,
  .secondary,
  .slot-btn,
  .mini-btn {
    min-height: 48px;
  }

  .estimate-line,
  .estimate-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .estimate-total {
    font-size: 19px;
  }

  .notes {
    padding: 12px 14px;
    font-size: 14px;
  }
}
