/* HG Book By v1 — "Book before you go" reservation-deadline card.
   Rendered by files/js/book-by-v1.js on /my-trip (#hg-bookby-slot) and
   /today (appended to the hgt-grid by hg-today-v1.js).
   Site rule: px font sizes (root is 62.5% — rem lands ~40% small). */

.hg-bookby-section { margin: 18px 0 0; }

.hg-bookby-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.hg-bookby-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
}
.hg-bookby-head-icon {
  font-size: 22px;
  color: #0a5793;
  margin-top: 2px;
}
.hg-bookby-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #14304a;
}
.hg-bookby-sub {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5b6b7b;
}

.hg-bookby-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hg-bookby-item {
  border: 1px solid #e6ebf1;
  border-left: 4px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fbfcfe;
}
.hg-bookby-item.is-urgent {
  border-left-color: #b91c1c;
  background: #fff7f7;
}
.hg-bookby-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hg-bookby-name {
  font-size: 16px;
  font-weight: 700;
  color: #14304a;
  text-decoration: none;
}
a.hg-bookby-name:hover { text-decoration: underline; color: #0a5793; }

.hg-bookby-chip {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.hg-bookby-chip-urgent   { background: #fee2e2; color: #991b1b; }
.hg-bookby-chip-open     { background: #fef3c7; color: #92500a; }
.hg-bookby-chip-upcoming { background: #e2e8f0; color: #334155; }

.hg-bookby-meta {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5b6b;
}
.hg-bookby-note {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5b6b7b;
  font-style: italic;
}
.hg-bookby-reserve {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0a5793;
  text-decoration: none;
  border: 1px solid #0a5793;
  border-radius: 8px;
  padding: 6px 12px;
}
.hg-bookby-reserve:hover { background: #0a5793; color: #fff; }

.hg-bookby-dining-title {
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #14304a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.hg-bookby-dining {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hg-bookby-dining-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px dashed #e6ebf1;
  padding: 4px 0 6px;
}
.hg-bookby-dining-row .hg-bookby-name { font-size: 15px; }
.hg-bookby-dining-note {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5b6b7b;
}

.hg-bookby-ics {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #0a5793;
  background: #eef4fa;
  border: 1px solid #b9d2e8;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.hg-bookby-ics:hover { background: #0a5793; border-color: #0a5793; color: #fff; }

/* Email reminders opt-in.
   Reset for site-wide form rules (04-08-25-v1.css `main input[type=…]`
   is specificity (0,1,2) with a 45px height + gray fill — this selector
   ties it at (0,1,2) and wins on source order; see CLAUDE.md "Form
   Controls"). */
.hg-bookby-card input[type='email'] {
  height: auto;
  margin: 0;
  background: #fff;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 15px;
  font-family: inherit;
  color: #14304a;
  line-height: 1.4;
  box-shadow: none;
  width: auto;
}
.hg-bookby-remind {
  margin-top: 16px;
  padding: 14px 16px;
  background: #f6f9fc;
  border: 1px solid #dbe6f0;
  border-radius: 12px;
}
.hg-bookby-remind-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #14304a;
}
.hg-bookby-remind-note {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #5b6b7b;
}
.hg-bookby-posttrip-choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 0 0 12px;
  color: #314b61;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
}
/* Reset the site-wide form-control sizing on this compact consent box. */
.hg-bookby-card input[type='checkbox'].hg-bookby-posttrip-checkbox {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #0a5793;
  box-shadow: none;
}
.hg-bookby-card input[type='checkbox'].hg-bookby-posttrip-checkbox:focus-visible {
  outline: 3px solid rgba(10, 87, 147, 0.28);
  outline-offset: 2px;
}
.hg-bookby-remind-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.hg-bookby-card .hg-bookby-remind-input {
  flex: 1 1 220px;
  min-width: 0;
  box-sizing: border-box;
}
.hg-bookby-remind-btn {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #0a5793;
  border: 1px solid #0a5793;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
}
.hg-bookby-remind-btn:hover { background: #084a7d; }
.hg-bookby-remind-btn:disabled { opacity: 0.6; cursor: default; }
.hg-bookby-remind-status {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #4b5b6b;
  min-height: 1em;
}

.hg-bookby-nudge {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #4b5b6b;
}
.hg-bookby-foot {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7a89;
}
.hg-bookby-foot-link {
  font-size: 14px;
  font-weight: 700;
  color: #0a5793;
}

@media (max-width: 640px) {
  .hg-bookby-card { padding: 15px 14px; }
  .hg-bookby-item { padding: 10px 12px; }
}

/* ── Booked / skipped state ── */
.hg-bookby-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hg-bookby-item-actions .hg-bookby-reserve { margin-top: 0; }
.hg-bookby-status-btn {
  font-size: 14px;
  font-weight: 700;
  color: #14603f;
  background: #e9f7f0;
  border: 1px solid #bfe3d1;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.hg-bookby-status-btn:hover { background: #14603f; border-color: #14603f; color: #fff; }
.hg-bookby-status-skip {
  color: #5b6b7b;
  background: #f1f5f9;
  border-color: #d3dce4;
}
.hg-bookby-status-skip:hover { background: #5b6b7b; border-color: #5b6b7b; color: #fff; }
.hg-bookby-item-done {
  background: #f6faf8;
  border-left-color: #9fd4bb;
  opacity: 0.85;
}
.hg-bookby-chip-done { background: #d9f0e4; color: #14603f; }
.hg-bookby-chip-skip { background: #e8edf2; color: #5b6b7b; }
.hg-bookby-status-undo {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: #5b6b7b;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  padding: 0 2px;
  white-space: nowrap;
}
.hg-bookby-status-undo:hover { color: #b91c1c; }
.hg-bookby-dining-done .hg-bookby-name { opacity: 0.7; }

/* Reconciliation strip + whole-trip export */
.hg-bookby-stale-strip {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-left-width: 4px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #7c2d12;
}
.hg-bookby-ics-trip { margin-left: 10px; }
