/* BookMyTable — Waitlist module (matches core dashboard styling) */

/* ---------- Dashboard waitlist panel ---------- */
.bmt-wl{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#111}
.bmt-wl .bmt-wl-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin-bottom:14px}
.bmt-wl-kpi{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.bmt-wl-kpi span{font-size:12px}
.bmt-wl-kpi strong{font-size:22px;line-height:1.1}

.bmt-wl-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.bmt-wl-toolbar .bmt-wl-spacer{flex:1}
.bmt-wl-inline{display:flex;flex-direction:column;font-size:13px;color:#374151;font-weight:500;gap:4px;margin:0}
.bmt-wl-inline input[type=date]{padding:9px 10px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background:#fff;color:#111;font-family:inherit}
.bmt-wl-check{display:flex;align-items:center;gap:8px;font-weight:500;font-size:13px}
.bmt-wl-check input{width:auto;margin:0}
.bmt-wl-toolbar .bmt-btn{padding:9px 16px}

.bmt-wl-add-panel{border:1px solid #e5e7eb;border-radius:14px;background:#fafafa;padding:4px 16px 16px;margin-bottom:16px}
.bmt-wl-add-head{display:flex;align-items:center;justify-content:space-between;padding-top:12px}
.bmt-wl-add-head h4{margin:0;font-size:15px}
.bmt-wl-add-close{background:none;border:0;font-size:24px;line-height:1;cursor:pointer;color:#6b7280}
.bmt-wl .bmt-wl-add-form{max-width:none;margin:8px 0 0;padding:0;background:transparent;box-shadow:none}
.bmt-wl-add-status{margin-top:10px;font-size:13px}
.bmt-wl-add-status.error{color:#dc2626}
.bmt-wl-add-status.success{color:#16a34a}

.bmt-wl-table td{vertical-align:top}
.bmt-wl-note{background:#f8f8f7;border-left:3px solid #BE923A;border-radius:6px;padding:6px 8px;font-size:12px;margin-bottom:6px;max-width:240px}
.bmt-wl-note-mgr{border-left-color:#111}
.bmt-wl-note strong{display:inline-block;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#6b7280}
.bmt-wl-vip{display:inline-block;margin-top:4px;font-size:10px;font-weight:700;letter-spacing:.06em;color:#BE923A;border:1px solid #BE923A;border-radius:999px;padding:1px 7px}
.bmt-wl-actions{display:flex;flex-wrap:wrap;gap:6px}
.bmt-wl-actions .bmt-btn{padding:6px 10px;font-size:12px;border-radius:8px}
.bmt-wl-error{padding:14px;border:1px solid #fecaca;background:#fef2f2;color:#b91c1c;border-radius:10px}

/* ---------- Customer-facing "Join the waitlist" modal ---------- */
#bmtwl-modal-root[hidden]{display:none}
#bmtwl-modal-root{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px}
.bmtwl-modal-backdrop{position:absolute;inset:0;background:rgba(20,20,19,.6)}
.bmtwl-modal{position:relative;background:#fff;border-radius:16px;max-width:520px;width:100%;max-height:90vh;overflow:auto;padding:24px;box-shadow:0 24px 60px rgba(0,0,0,.25)}
.bmtwl-modal-close{position:absolute;top:10px;right:14px;background:none;border:0;font-size:26px;line-height:1;cursor:pointer;color:#6b7280}
.bmtwl-modal-head span{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#BE923A;font-weight:700}
.bmtwl-modal-head h2{margin:6px 0 4px;font-size:22px}
.bmtwl-slot-summary{margin:0 0 8px;color:#6b7280;font-size:14px}
.bmtwl-modal .bmt-form{margin:0;padding:0;box-shadow:none;max-width:none}
.bmtwl-status{margin-top:10px;font-size:13px}
.bmtwl-status.error{color:#dc2626}
.bmtwl-status.success{color:#16a34a}
.bmtwl-join-btn{margin-top:10px}

/* ---------- "Fully booked" prompts on the booking form ---------- */
.bmtwl-help{font-size:12px;color:#6b7280;margin:6px 0 0}
.bmtwl-full{border:1px solid #e5e7eb;background:#faf7f0;border-radius:12px;padding:14px;margin-top:12px}
.bmtwl-full-compact{padding:10px 12px}
.bmtwl-full-title{font-weight:700;margin:0 0 6px;font-size:14px}
.bmtwl-full-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid #eee}
.bmtwl-full-row:first-of-type{border-top:0}
.bmtwl-full-time{font-weight:600;font-size:14px}
.bmtwl-full-error{color:#dc2626;font-size:13px}
.bmtwl-full-cta{margin-top:10px}
.bmtwl-full-btn,.bmtwl-full-day-join,.bmtwl-join-option{display:inline-block;padding:8px 14px;border:1px solid #111;border-radius:9px;background:#111;color:#fff;font-weight:600;cursor:pointer;font-size:13px;font-family:inherit}
.bmtwl-full-btn:hover,.bmtwl-full-day-join:hover,.bmtwl-join-option:hover{background:#BE923A;border-color:#BE923A}
.bmtwl-lock{opacity:.55;pointer-events:none}

/* ---------- v3.5 Inline waitlist notification (above the booking form) ---------- */
.bmtwl-inline-notice{margin:0 0 12px;padding:12px 14px;border-radius:12px;font-size:14px;line-height:1.45;display:flex;flex-direction:column;gap:2px;border:1px solid #e5e7eb;background:#f9fafb;color:#111}
.bmtwl-inline-notice strong{font-size:15px}
.bmtwl-inline-notice span{font-size:13px}
.bmtwl-inline-notice.is-success{border-color:#16a34a;background:rgba(22,163,74,.08);color:#14532d}
.bmtwl-inline-notice.is-error{border-color:#dc2626;background:rgba(220,38,38,.08);color:#7f1d1d}
.bmtwl-inline-notice.is-info{border-color:#BE923A;background:rgba(190,146,58,.1);color:#4a3712}
.bmtwl-overflow-note{margin:6px 0;font-size:13px;color:#b91c1c;font-weight:600}
form.bmt-booking-form.bmtwl-fullslot select[name=time_from]{border-color:#ef4444!important;color:#ef4444!important}
.bmtwl-cta-join{background:#111!important;border-color:#111!important}

/* ---------- v3.5 Fully booked times: always red border + red text ---------- */
.bmt-av-slot.bmt-av-full,
.bmt-av-slot.bmt-av-full:link,
.bmt-av-slot.bmt-av-full:visited,
button.bmt-av-slot.bmt-av-full,
.bmt-av-widget .bmt-av-slots .bmt-av-full{
  border:1.5px solid #ef4444!important;
  color:#ef4444!important;
  background:rgba(239,68,68,.08)!important;
  opacity:1!important;
  cursor:pointer!important;
}
.bmt-av-slot.bmt-av-full:hover,
.bmt-av-widget .bmt-av-slots .bmt-av-full:hover{
  background:#ef4444!important;
  color:#fff!important;
  border-color:#ef4444!important;
}

/* v3.8 — dashboard waitlist section + offer history timeline */
.bmt-wl-heading{display:flex;align-items:center;gap:10px}
.bmt-wl-heading .bmt-wl-collapse{margin-left:auto;font-size:13px}
.bmt-wl-actions{display:flex;flex-wrap:wrap;gap:6px}
.bmt-wl-history-modal{position:fixed;inset:0;background:rgba(17,24,39,.55);display:flex;align-items:center;justify-content:center;z-index:99999;padding:16px}
.bmt-wl-history-box{position:relative;background:#fff;border-radius:14px;padding:20px;max-width:520px;width:100%;max-height:80vh;overflow:auto}
.bmt-wl-history-close{position:absolute;top:10px;right:12px;border:0;background:none;font-size:24px;line-height:1;cursor:pointer;color:#6b7280}
.bmt-wl-history-head{margin:0 0 12px;font-size:14px}
.bmt-wl-timeline{list-style:none;margin:0;padding:0;border-left:2px solid #e5e7eb}
.bmt-wl-timeline li{position:relative;padding:0 0 14px 16px}
.bmt-wl-timeline li:before{content:"";position:absolute;left:-7px;top:5px;width:10px;height:10px;border-radius:50%;background:#BE923A}
.bmt-wl-tl-when{display:block;font-size:12px;color:#6b7280}
.bmt-wl-tl-what{display:block;font-size:14px;color:#111827}
.bmt-wl-tl-who{display:block;font-size:12px}
@media (max-width:760px){ .bmt-wl-actions .bmt-btn{flex:1 1 46%;justify-content:center} }
