/* Balnaca Bookings – widget styles. Override colours with the CSS vars below. */
.bb-widget, .bb-box {
  --bb-accent: #e07a1f; --bb-accent-ink: #fff; --bb-green: #2f4a2c; --bb-ink: #1f2a1f;
  --bb-muted: #6b7466; --bb-line: #e3e6df; --bb-soft: #f5f6f2; --bb-bg: #fff; --bb-radius: 12px;
  color: var(--bb-ink); font-size: 16px; line-height: 1.45;
}
.bb-widget { background: var(--bb-bg); border: 1px solid var(--bb-line); border-radius: 18px; padding: 22px; box-shadow: 0 10px 40px rgba(30,40,25,.08); scroll-margin-top: 80px; }
.bb-widget *, .bb-box * { box-sizing: border-box; }
.bb-widget [hidden] { display: none !important; }
.bb-step + .bb-step { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--bb-line); }
.bb-step-title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 14px; }
.bb-step-title span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bb-green); color: #fff; font-size: 14px; }
.bb-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.bb-service { text-align: left; border: 2px solid var(--bb-line); background: var(--bb-bg); border-radius: var(--bb-radius); padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.bb-service:hover { border-color: #c9cfc2; }
.bb-service.is-active { border-color: var(--bb-accent); box-shadow: 0 0 0 3px rgba(224,122,31,.15); }
.bb-service-price { color: var(--bb-accent); font-weight: 700; }
.bb-service small { color: var(--bb-muted); }
.bb-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.bb-field { display: grid; gap: 6px; margin-bottom: 12px; }
.bb-field label { font-weight: 600; font-size: 14px; }
.bb-field small { color: var(--bb-muted); }
.bb-field input, .bb-field textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfd5c8; border-radius: 10px; font: inherit; background: #fff; color: var(--bb-ink); }
.bb-field input:focus, .bb-field textarea:focus { outline: 2px solid var(--bb-accent); outline-offset: 1px; border-color: transparent; }
.bb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-pill, .bb-slot { border: 1px solid #cfd5c8; background: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer; font: inherit; color: inherit; }
.bb-pill.is-active, .bb-slot.is-active { background: var(--bb-green); border-color: var(--bb-green); color: #fff; }
.bb-stepper { display: inline-flex; align-items: center; border: 1px solid #cfd5c8; border-radius: 999px; overflow: hidden; width: max-content; }
.bb-stepper button { width: 44px; height: 42px; border: 0; background: var(--bb-soft); font-size: 22px; cursor: pointer; color: inherit; }
.bb-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.bb-stepper output { min-width: 48px; text-align: center; font-weight: 700; font-size: 18px; }
.bb-datetime { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 22px; }
@media (max-width: 680px) { .bb-datetime { grid-template-columns: 1fr; } .bb-widget { padding: 16px; } }
.bb-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; text-transform: capitalize; }
.bb-cal-head button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bb-line); background: #fff; cursor: pointer; font-size: 20px; color: inherit; }
.bb-cal-head button:disabled { opacity: .3; cursor: default; }
.bb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; transition: opacity .2s; }
.bb-cal-grid.is-loading { opacity: .4; pointer-events: none; }
.bb-dow { text-align: center; font-size: 12px; color: var(--bb-muted); padding: 4px 0; }
.bb-day { aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; color: #b5bab0; font: inherit; cursor: default; }
.bb-day.is-available { background: var(--bb-soft); color: var(--bb-ink); cursor: pointer; font-weight: 600; }
.bb-day.is-available:hover { background: #e7ebe1; }
.bb-day.is-active { background: var(--bb-accent) !important; color: #fff !important; }
.bb-times-head { font-weight: 700; margin-bottom: 10px; }
.bb-times-head::first-letter { text-transform: uppercase; }
.bb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bb-muted { color: var(--bb-muted); grid-column: 1 / -1; margin: 0; }
.bb-hp { position: absolute; left: -9999px; }
.bb-check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 14px; font-size: 14px; }
.bb-check input { margin-top: 2px; width: 20px; height: 20px; flex: none; }
.bb-pay-choice { display: grid; gap: 6px; margin: 4px 0 12px; }
.bb-summary { background: var(--bb-soft); border-radius: var(--bb-radius); padding: 14px 16px; display: grid; gap: 6px; margin-bottom: 14px; }
.bb-summary div { display: flex; justify-content: space-between; gap: 12px; }
.bb-summary span { color: var(--bb-muted); }
.bb-total { border-top: 1px solid var(--bb-line); padding-top: 8px; margin-top: 4px; font-size: 20px; }
.bb-total span { color: var(--bb-ink) !important; }
.bb-test { font-size: 12px; background: #fff3cd; color: #7a5b00; padding: 6px 8px; border-radius: 6px; display: block !important; }
.bb-error { background: #fdecea; color: #a12a1b; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; }
.bb-submit, .bb-btn { display: inline-block; width: 100%; padding: 15px 20px; border: 0; border-radius: 12px; background: var(--bb-accent); color: var(--bb-accent-ink); font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; text-align: center; text-decoration: none; transition: filter .15s; }
.bb-submit:hover:not(:disabled), .bb-btn:hover { filter: brightness(1.07); }
.bb-submit:disabled { background: #c9cfc2; cursor: not-allowed; }
.bb-secure { text-align: center; font-size: 13px; color: var(--bb-muted); margin: 10px 0 0; }
.bb-box { border: 1px solid var(--bb-line); border-radius: 18px; padding: 24px; background: #fff; max-width: 640px; margin: 0 auto; }
.bb-box h2 { margin-top: 0; }
.bb-box-ok { border-top: 6px solid #3c8d3a; }
.bb-box-warn { border-top: 6px solid var(--bb-accent); }
.bb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bb-btn { width: auto; font-size: 15px; padding: 11px 18px; }
.bb-btn-ghost { background: transparent; color: var(--bb-green); border: 1px solid var(--bb-green); }

/* Advance-notice note under the calendar */
.bb-note { font-size: 14px; color: var(--bb-muted); margin: 12px 0 0; }

/* Declaration pop-up: centred dialog on desktop, full screen on phones */
html.bb-modal-open, html.bb-modal-open body { overflow: hidden; }
.bb-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 28, 18, .6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.bb-modal-box { background: #fff; color: var(--bb-ink); border-radius: 16px; width: 100%; max-width: 640px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.bb-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--bb-line); }
.bb-modal-head h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.bb-modal-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bb-soft); font-size: 26px; line-height: 1; cursor: pointer; color: inherit; }
.bb-modal-body { padding: 16px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.bb-modal-body h4 { margin: 18px 0 8px; font-size: 16px; }
.bb-modal-body h4:first-of-type { margin-top: 6px; }
.bb-modal-intro { margin: 0 0 6px; color: var(--bb-muted); font-size: 15px; }
.bb-rules { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 14.5px; }
.bb-statement { background: var(--bb-soft); border-left: 4px solid var(--bb-accent); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 4px 0 12px; }
.bb-sign { position: relative; border: 2px dashed #b9c2b0; border-radius: 10px; background: #fff; }
.bb-sign canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.bb-sign-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #a3aa9c; font-size: 14px; pointer-events: none; text-align: center; padding: 0 12px; }
.bb-link { justify-self: start; background: none; border: 0; padding: 6px 0; color: var(--bb-green); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; }
.bb-modal-foot { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--bb-line); }
.bb-modal-foot .bb-btn { flex: none; width: auto; }
.bb-modal-foot .bb-submit { flex: 1; font-size: 16px; padding: 13px 16px; }
@media (max-width: 600px) {
  .bb-modal { padding: 0; align-items: stretch; }
  .bb-modal-box { max-width: none; max-height: none; height: 100%; border-radius: 0; }
  .bb-modal-head, .bb-modal-body, .bb-modal-foot { padding-left: 16px; padding-right: 16px; }
  .bb-modal-foot { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

/* "My booking" lookup */
.bb-lookup-intro { margin: 0 0 14px; color: var(--bb-muted); }
.bb-lookup-results:empty { display: none; }
.bb-lookup-results { margin-top: 22px; display: grid; gap: 14px; scroll-margin-top: 90px; }
.bb-lookup-results h3 { margin: 0; font-size: 18px; }
.bb-lookup-card { border: 1px solid var(--bb-line); border-radius: var(--bb-radius); padding: 14px 16px; display: grid; gap: 10px; }
.bb-lookup-card.is-upcoming { border-color: var(--bb-accent); box-shadow: 0 0 0 3px rgba(224,122,31,.12); }
.bb-lookup-card.is-past { opacity: .75; }
.bb-lookup-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bb-lookup-card header span { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bb-soft); }
.bb-lookup-card.is-upcoming header span { background: var(--bb-accent); color: #fff; }
.bb-lookup-card dl { margin: 0; display: grid; gap: 4px; }
.bb-lookup-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.bb-lookup-card dt { color: var(--bb-muted); }
.bb-lookup-card dd { margin: 0; font-weight: 600; text-align: right; }
.bb-lookup-card .bb-btn { justify-self: start; }
