/* ============================================================================
 * dhu-booking.css — booking widget styles, fully scoped under .dhu
 *
 * ONE JOB FOR THE INTEGRATOR: fill the token block below from the live site's
 * stylesheet so the widget is indistinguishable from the page around it.
 * Font-family is deliberately inherited from the page — do not set one here.
 * Nothing in this file selects anything outside .dhu / .dhu-toast.
 * ==========================================================================*/

.dhu {
  /* ---- TOKENS: mapped from css/main.css (see the :root block there) ----------
     card       = --cream, the panel background used by .ccard/.test/.kt/.voucher
     ink        = --charcoal, the site body text colour
     soft       = #6a6d67, the muted meta colour (.ccard-meta, .cd-dur, .pay-note)
     line       = --line, the site's one border colour; line-soft is the same
                  charcoal at lower alpha for hairlines
     accent     = --gold (links, eyebrows, highlighted labels); accent-dk is
                  --gold darkened for borders sitting on accent fills
     cta        = --charcoal on --cream, matching the site's pay buttons
                  (.btn-dark on the courses page) and its selected date state
                  (.date-card[aria-pressed=true]) — the gold .btn-primary is
                  reserved for enquiry CTAs, and gold is already the widget's
                  accent, so a gold CTA would erase the Day-1/selected contrast
     radius     = 2px, the corner radius of .kt/.test/.cd-dates/.date-card    */
  --dhu-card:      #fbf9f4;             /* --cream                             */
  --dhu-ink:       #26282a;             /* --charcoal                          */
  --dhu-soft:      #6a6d67;             /* site muted/secondary text colour    */
  --dhu-line:      rgba(38,40,42,.14);  /* --line                              */
  --dhu-line-soft: rgba(38,40,42,.08);  /* --line at hairline strength         */
  --dhu-accent:    #b08d4f;             /* --gold                              */
  --dhu-accent-dk: #8f7140;             /* --gold darkened for on-accent lines */
  --dhu-cta-bg:    #26282a;             /* --charcoal (.btn-dark pay buttons)  */
  --dhu-cta-text:  #fbf9f4;             /* --cream                             */
  --dhu-radius:    2px;                 /* site card corner radius             */
  /* availability states — keep unless the site has semantic colours to reuse */
  --dhu-open-bg:   #EEF0E3;
  --dhu-low-bg:    #F6EDD8;
  --dhu-full-bg:   #F3E4DD;
  --dhu-closed-bg: #EFEAE0;
  --dhu-warn-bg:   #F6EDD8;
  --dhu-warn-bd:   #E3CD9A;
  --dhu-warn-tx:   #6E5314;
  --dhu-ok-bg:     #EEF0E3;
  --dhu-ok-bd:     #C9D2B8;
  --dhu-ok-tx:     #3F5237;

  background: var(--dhu-card);
  border: 1px solid var(--dhu-line);
  border-radius: var(--dhu-radius);
  overflow: hidden;
  max-width: 100%;
  color: var(--dhu-ink);
  font-size: 14.5px;
  line-height: 1.5;
  font-feature-settings: 'tnum';
}
.dhu *, .dhu *::before, .dhu *::after { box-sizing: border-box; }

.dhu .dhu-grid2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 860px) {
  .dhu .dhu-grid2 { grid-template-columns: 1fr; }
  .dhu .dhu-side { border-left: none; border-top: 1px solid var(--dhu-line-soft); }
}
.dhu .dhu-cal  { padding: 16px 18px 14px; min-width: 0; }
.dhu .dhu-side { border-left: 1px solid var(--dhu-line-soft); padding: 18px; min-width: 0; }

/* month header */
.dhu .dhu-mhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dhu .dhu-mname { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  min-width: 0; white-space: nowrap; }
.dhu .dhu-nav { display: flex; gap: 7px; flex-shrink: 0; }
.dhu .dhu-nav button { width: 31px; height: 31px; border-radius: 50%; border: 1px solid var(--dhu-line);
  background: var(--dhu-card); cursor: pointer; font-size: 15px; color: var(--dhu-ink); padding: 0; }
.dhu .dhu-nav button:disabled { opacity: .3; cursor: default; }
.dhu .dhu-nav button:not(:disabled):hover { border-color: var(--dhu-accent); color: var(--dhu-accent); }

/* grid */
.dhu .dhu-dow, .dhu .dhu-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dhu .dhu-dow div { font-size: 10px; letter-spacing: .08em; color: var(--dhu-soft); text-align: center; padding-bottom: 3px; }
.dhu .dhu-d { position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%;
  border: 1px solid var(--dhu-line-soft); border-radius: 7px; min-height: 47px;
  padding: 4px 5px; font-size: 12.5px; background: var(--dhu-card); }
.dhu .dhu-d .n { font-weight: 700; line-height: 1.2; }
.dhu .dhu-d.blank { border: none; background: none; }
.dhu .dhu-d.closed { background: var(--dhu-closed-bg); border-color: transparent; color: #A79D8C; }
.dhu .dhu-d.closed .n { font-weight: 500; }
.dhu .dhu-d.blockday { background: repeating-linear-gradient(-45deg, #EFE9DC 0 5px, #E7E0D0 5px 10px); color: #8D8270; }
.dhu .dhu-d.outwin { background: var(--dhu-closed-bg); border-color: transparent; color: #B3A996; }
.dhu .dhu-d.open { background: var(--dhu-open-bg); }
.dhu .dhu-d.low  { background: var(--dhu-low-bg); }
.dhu .dhu-d.full { background: var(--dhu-full-bg); color: #7d6a63; }
.dhu .dhu-d.pk { cursor: pointer; }
.dhu .dhu-d.pk:hover { border-color: var(--dhu-accent); box-shadow: 0 3px 9px rgba(0,0,0,.14); }
.dhu .dhu-d.sel { background: var(--dhu-accent) !important; color: var(--dhu-cta-text); border-color: var(--dhu-accent-dk); }
.dhu .dhu-d.sel .n { color: var(--dhu-cta-text); }
.dhu .dhu-d.d1 { background: var(--dhu-cta-bg) !important; color: var(--dhu-cta-text); border-color: var(--dhu-cta-bg);
  min-height: 64px; padding-bottom: 7px; }
.dhu .dhu-d.d1 .n { color: var(--dhu-cta-text); }
.dhu .d1l { display: block; margin-top: 8px; font-size: 8px; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; color: #E8C989; font-weight: 700; }
.dhu .rsn { font-size: 8px; line-height: 1.15; display: block; margin-top: 2px; text-transform: uppercase; letter-spacing: .02em; }

/* seat pips */
.dhu .tk { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; max-width: 100%; }
.dhu .tk i { width: 6.5px; height: 6.5px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #E8C989, #A87E3C 55%, #5E4218); }
.dhu .tk i.f { background: transparent; box-shadow: inset 0 0 0 1.3px #C4B594; }

/* legend */
.dhu .dhu-leg { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 11px; font-size: 11px; color: var(--dhu-soft); }
.dhu .dhu-leg span { display: inline-flex; align-items: center; gap: 5px; }
.dhu .ch { width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--dhu-line); }
.dhu .ch.o { background: var(--dhu-open-bg); } .dhu .ch.l { background: var(--dhu-low-bg); }
.dhu .ch.f { background: var(--dhu-full-bg); }
.dhu .ch.b { background: repeating-linear-gradient(-45deg, #EFE9DC 0 4px, #E7E0D0 4px 8px); }
.dhu .ch.w { background: var(--dhu-closed-bg); }

/* side panel */
.dhu .dhu-side h4 { font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.dhu .sub { font-size: 12.5px; color: var(--dhu-soft); }
.dhu .rows { margin-top: 12px; border-top: 1px dashed var(--dhu-line); padding-top: 11px;
  display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.dhu .rows .r { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dhu .rows .r span:first-child { color: var(--dhu-soft); flex-shrink: 0; }
.dhu .rows .r b { text-align: right; word-break: break-word; }
.dhu .rows .r.tot { font-weight: 700; font-size: 14.5px; border-top: 1px solid var(--dhu-line); padding-top: 8px; }
.dhu .pill { display: inline-block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 3px 8px; border-radius: 99px; background: var(--dhu-low-bg); color: var(--dhu-accent-dk); margin-top: 8px; }
.dhu .cta { margin-top: 13px; width: 100%; border: none; border-radius: 8px; background: var(--dhu-cta-bg);
  color: var(--dhu-cta-text); font-weight: 700; font-size: 13.5px; letter-spacing: .06em; padding: 12px; cursor: pointer; }
.dhu .cta:hover { filter: brightness(.85); }
.dhu .cta:disabled { opacity: .45; cursor: default; filter: none; }
.dhu .fine { font-size: 11px; color: var(--dhu-soft); margin-top: 9px; line-height: 1.5; }
.dhu .fine.bordered { border-top: 1px dashed var(--dhu-line); padding-top: 9px; margin-top: 12px; }
.dhu .dhu-hint { padding: 16px 4px; text-align: center; color: var(--dhu-soft); font-size: 13px; }
.dhu .dhu-hint .st { font-style: italic; font-size: 17px; color: var(--dhu-ink); display: block; margin-bottom: 4px; }
.dhu .dhu-hint a { color: var(--dhu-accent); }
.dhu .dhu-done { padding: 26px 22px; text-align: center; }
.dhu .dhu-done h4 { font-size: 21px; margin-bottom: 8px; }
.dhu .dhu-done p { color: var(--dhu-soft); font-size: 13.5px; max-width: 420px; margin: 0 auto; }

/* quantity stepper + guest fields */
.dhu .qrow { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 2px; }
.dhu .qrow label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.dhu .step { display: flex; align-items: center; border: 1px solid var(--dhu-line); border-radius: 8px; overflow: hidden; }
.dhu .step button { width: 30px; height: 30px; border: none; background: var(--dhu-card); font-size: 16px;
  cursor: pointer; color: var(--dhu-accent); padding: 0; }
.dhu .step button:disabled { color: #C9BFA9; cursor: default; }
.dhu .step b { width: 32px; text-align: center; font-size: 14px; }
.dhu .ff { margin: 10px 0 0; }
.dhu .ff label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dhu-soft); margin-bottom: 4px; }
.dhu .ff input { width: 100%; border: 1px solid var(--dhu-line); border-radius: 7px; padding: 9px 10px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--dhu-ink); }
.dhu .ff input:focus { outline: 2px solid var(--dhu-accent); outline-offset: 0; }

/* pick mode */
.dhu .paid { background: var(--dhu-ok-bg); border: 1px solid var(--dhu-ok-bd); border-radius: 9px;
  padding: 10px 12px; font-size: 12px; color: var(--dhu-ok-tx); display: flex; gap: 8px; }
.dhu .paid b { display: block; margin-bottom: 2px; }
.dhu .warnbox { background: var(--dhu-warn-bg); border: 1px solid var(--dhu-warn-bd); border-radius: 8px;
  padding: 9px 11px; font-size: 11.5px; color: var(--dhu-warn-tx); margin-top: 10px; line-height: 1.5; }
.dhu .prog { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.dhu .pb { flex: 1; height: 6px; background: var(--dhu-closed-bg); border-radius: 99px; overflow: hidden; }
.dhu .pb i { display: block; height: 100%; background: var(--dhu-accent); border-radius: 99px; transition: width .25s; }
.dhu .prog b { font-size: 12.5px; white-space: nowrap; }
.dhu .qf { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.dhu .qf button { border: 1px solid var(--dhu-line); background: var(--dhu-card); border-radius: 99px;
  padding: 6px 11px; font-size: 11.5px; font-family: inherit; cursor: pointer; color: var(--dhu-ink); }
.dhu .qf button:hover { border-color: var(--dhu-accent); color: var(--dhu-accent); }
.dhu .plist { margin-top: 11px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.dhu .plist .pd { display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--dhu-line-soft); border-radius: 7px; padding: 6px 9px; }
.dhu .plist .pd.f1 { background: var(--dhu-closed-bg); }
.dhu .plist .pd button { border: none; background: none; color: #9A4A33; cursor: pointer;
  font-size: 11.5px; font-weight: 700; font-family: inherit; }

/* toast lives outside .dhu */
.dhu-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: #1F1B15; color: #F3EDDD; padding: 12px 19px; border-radius: 9px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: all .3s; max-width: 92vw; text-align: center; z-index: 9999; }
.dhu-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
  .dhu { font-size: 14px; }
  .dhu .dhu-cal { padding: 12px 10px 12px; }
  .dhu .dhu-side { padding: 16px 14px 18px; }
  .dhu .dhu-mname { font-size: 12px; letter-spacing: .1em; }
  .dhu .dhu-nav button { width: 40px; height: 40px; }
  .dhu .dhu-dow, .dhu .dhu-days { gap: 3px; }
  .dhu .dhu-d { min-height: 52px; padding: 4px 3px 5px; font-size: 12px; border-radius: 6px; }
  .dhu .dhu-d.d1 { min-height: 70px; padding-bottom: 8px; }
  .dhu .tk { gap: 1.5px; margin-top: 5px; }
  .dhu .tk i { width: 5px; height: 5px; }
  .dhu .d1l { margin-top: 8px; font-size: 7.5px; }
  .dhu .dhu-leg { font-size: 10.5px; gap: 8px 12px; margin-top: 12px; }
  .dhu .dhu-side h4 { font-size: 18px; }
  .dhu .cta { padding: 14px 12px; font-size: 13px; }
  .dhu .step button { width: 36px; height: 36px; }
  .dhu .qf button { padding: 8px 12px; min-height: 36px; }
  .dhu .prog { flex-wrap: wrap; }
  .dhu .pb { min-width: 0; flex: 1 1 120px; }
}

@media (max-width: 380px) {
  .dhu .dhu-cal { padding: 10px 8px 10px; }
  .dhu .dhu-dow div { font-size: 9px; letter-spacing: .04em; }
  .dhu .dhu-d { min-height: 50px; padding: 3px 2px 4px; font-size: 11.5px; }
  .dhu .dhu-d.d1 { min-height: 68px; }
  .dhu .tk i { width: 4.5px; height: 4.5px; }
  .dhu .rsn { font-size: 7px; }
  .dhu .d1l { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) { .dhu *, .dhu-toast { transition: none !important; } }
.dhu .dhu-d:focus-visible, .dhu button:focus-visible, .dhu input:focus-visible {
  outline: 2px solid var(--dhu-accent); outline-offset: 2px; }
