/* VLB WC Bridge — v1.0.0 */

#vlbb-wrap {
  --vlbb-primary:   #0f3b2d;
  --vlbb-radius:    12px;
  --vlbb-text:      #1f2937;
  --vlbb-font:      'Plus Jakarta Sans', sans-serif;
}

/* ── Overlay & Modal ──────────────────────────────────────────── */
.vlbb-overlay {
  position: fixed;
  top: 0; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999995;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.vlbb-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.vlbb-modal {
  background: #fff;
  border-radius: 20px 0 0 20px;
  width: 100%;
  max-width: 420px;
  margin-top: 80px;
  height: calc(100% - 80px);
  padding: 24px 22px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
  display: flex;
  flex-direction: column;
  font-family: var(--vlbb-font);
}
.vlbb-modal::-webkit-scrollbar { width: 5px; }
.vlbb-modal::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
.vlbb-overlay.open .vlbb-modal { transform: translateX(0); }

@media(max-width:500px) {
  .vlbb-modal {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    height: auto;
    max-height: 95vh;
    transform: translateY(100%);
    margin-top: 0;
  }
  .vlbb-overlay { align-items: flex-end; }
  .vlbb-overlay.open .vlbb-modal { transform: translateY(0); }
}

/* ── Steps ────────────────────────────────────────────────────── */
.vlbb-step { display: flex; flex-direction: column; flex: 1; }

/* ── Modal Header ─────────────────────────────────────────────── */
.vlbb-mhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
}
.vlbb-mtitle {
  font-family: 'Nunito', var(--vlbb-font), sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vlbb-text);
  line-height: 1.3;
}
.vlbb-msub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.5;
}
.vlbb-xbtn {
  background: none;
  border: none;
  font-size: 18px;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
  transition: background .15s;
}
.vlbb-xbtn:hover { background: #f3f4f6; color: #374151; }

/* ── Step Label ───────────────────────────────────────────────── */
.vlbb-step-label {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Section title ────────────────────────────────────────────── */
.vlbb-finalise-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 10px 0 6px;
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.vlbb-finalise-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.4;
}
.vlbb-finalise-note {
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* ── Form fields ──────────────────────────────────────────────── */
.vlbb-form-body {
  overflow-y: auto;
  flex: 1;
  padding: 0 0 16px;
}
.vlbb-field { margin-bottom: 18px; }
.vlbb-field label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: 7px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.vlbb-field input,
.vlbb-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-family: var(--vlbb-font), sans-serif;
  font-size: 14px;
  color: var(--vlbb-text);
  background: #fff;
  outline: none;
  transition: border-color .18s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
  box-shadow: none;
  box-sizing: border-box;
}
.vlbb-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.vlbb-field input::placeholder { color: #9ca3af; }
.vlbb-field input:focus,
.vlbb-field select:focus {
  border-color: var(--vlbb-primary);
  box-shadow: 0 0 0 3px rgba(15,59,45,.08);
}
.vlbb-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── Custom Radio ─────────────────────────────────────────────── */
.vlbb-radio-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 4px 0 10px;
}
.vlbb-custom-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.vlbb-cr-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s;
  box-sizing: border-box;
}
.vlbb-cr-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
  transition: background .15s;
}
.vlbb-custom-radio.vlbb-cr-active .vlbb-cr-circle { border-color: var(--vlbb-primary); }
.vlbb-custom-radio.vlbb-cr-active .vlbb-cr-dot    { background:    var(--vlbb-primary); }
.vlbb-cr-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  line-height: 1;
}

/* ── Footer & Buttons ─────────────────────────────────────────── */
.vlbb-footer {
  padding: 16px 0 0;
  border-top: 1.5px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  margin-top: auto;
}
.vlbb-footer-2col {
  flex-direction: row;
  align-items: center;
}
.vlbb-primary-btn {
  width: 100%;
  padding: 14px;
  background: var(--vlbb-primary);
  color: #fff;
  border: none;
  border-radius: var(--vlbb-radius);
  font-family: 'Nunito', var(--vlbb-font), sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease;
}
.vlbb-primary-btn:hover   { opacity: .92; }
.vlbb-primary-btn:active  { transform: scale(0.96); }
.vlbb-primary-btn:disabled { background: #9ca3af; cursor: not-allowed; transform: none; }

.vlbb-back-btn {
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  padding: 13px 18px;
  border-radius: var(--vlbb-radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  width: auto;
  display: inline-block;
}
.vlbb-back-btn:hover { background: #e5e7eb; }

/* ── Date/Time ────────────────────────────────────────────────── */
.vlbb-slbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--vlbb-text);
  margin-bottom: 10px;
}
.vlbb-dates-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.vlbb-date-arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--vlbb-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
  padding: 0;
}
.vlbb-date-arrow:hover { background: #e5e7eb !important; border-color: #d1d5db !important; }
.vlbb-dates {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  flex: 1;
}
.vlbb-dates::-webkit-scrollbar { display: none; }
.vlbb-dchip {
  flex-shrink: 0;
  min-width: 76px;
  padding: 9px 10px;
  text-align: center;
  border: 1.5px solid #e5e7eb;
  border-radius: 11px;
  cursor: pointer;
  background: #fff;
  transition: all .18s;
}
.vlbb-dchip:hover  { border-color: var(--vlbb-primary); }
.vlbb-dchip.act    { background: var(--vlbb-primary); border-color: var(--vlbb-primary); color: #fff; }
.vlbb-dday { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.vlbb-dnum { font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 800; margin-bottom: 1px; }

.vlbb-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.vlbb-tchip {
  padding: 12px 8px;
  text-align: center;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  color: var(--vlbb-text);
  transition: all .18s;
}
.vlbb-tchip:hover { border-color: var(--vlbb-primary); color: var(--vlbb-primary); }
.vlbb-tchip.act   { background: var(--vlbb-primary); border-color: var(--vlbb-primary); color: #fff; }

/* ── Prerequisites ────────────────────────────────────────────── */
.vlbb-prereq {
  background: #fff8f0;
  border-left: 4px solid #f59e0b;
  padding: 12px 14px;
  margin: 14px 0;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}
.vlbb-prereq strong { color: #d97706; display: block; margin-bottom: 4px; }

/* ── Success ──────────────────────────────────────────────────── */
.vlbb-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 30px 0;
}
.vlbb-s-ico   { font-size: 52px; margin-bottom: 16px; }
.vlbb-s-title { font-size: 22px; font-weight: 700; color: var(--vlbb-primary); margin-bottom: 8px; }
.vlbb-s-sub   { font-size: 14px; color: #6b7280; line-height: 1.6; }

@media(max-width:500px) {
  .vlbb-row-2 { grid-template-columns: 1fr; }
}

/* ── Sidebar Backdrop ─────────────────────────────────────────── */
.vlbb-sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999997;
  opacity: 0; pointer-events: none;
  transition: opacity .28s;
}
.vlbb-sidebar-backdrop.open { opacity: 1; pointer-events: all; }

/* ── Sidebar Panel Base ───────────────────────────────────────── */
.vlbb-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 95vw;
  background: #fff;
  z-index: 9999999;
  display: flex; flex-direction: column;
  transform: translateX(110%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.14);
  pointer-events: all;
}
.vlbb-sidebar.open { transform: translateX(0); }

/* ── Sidebar Header ───────────────────────────────────────────── */
.vlbb-sb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1.5px solid #f3f4f6;
  flex-shrink: 0;
}
.vlbb-sb-title {
  font-size: 18px; font-weight: 700; color: #111827;
  display: flex; align-items: center; gap: 10px;
}
.vlbb-sb-badge {
  background: var(--vlbb-primary); color: #fff;
  font-size: 12px; font-weight: 700;
  border-radius: 50%; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Steps ────────────────────────────────────────────────────── */
.vlbb-sb-steps {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 22px; font-size: 10px; font-weight: 700;
  color: #9ca3af; letter-spacing: .04em;
  border-bottom: 1.5px solid #f3f4f6; flex-shrink: 0;
}
.vlbb-sb-step { text-transform: uppercase; }
.vlbb-sb-step.vlbb-step-active { color: var(--vlbb-primary); }
.vlbb-sb-step-dot { color: #d1d5db; letter-spacing: 2px; }

/* ── Cart Items ───────────────────────────────────────────────── */
.vlbb-sb-items {
  flex: 1; overflow-y: auto; padding: 16px 22px;
}
.vlbb-sb-empty {
  text-align: center; color: #9ca3af;
  font-size: 14px; padding: 40px 0;
}
.vlbb-sb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #f3f4f6;
}
.vlbb-sb-item-img {
  width: 56px; height: 56px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0; background: #f3f4f6;
}
.vlbb-sb-item-img img { width: 100%; height: 100%; object-fit: cover; }
.vlbb-sb-item-info { flex: 1; }
.vlbb-sb-item-name  { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.vlbb-sb-item-price { font-size: 13px; color: var(--vlbb-primary); font-weight: 600; }
.vlbb-sb-remove {
  background: none; border: none; cursor: pointer;
  color: #9ca3af; font-size: 16px; padding: 4px 8px;
  border-radius: 6px; transition: background .15s;
}
.vlbb-sb-remove:hover { background: #fee2e2; color: #ef4444; }

/* ── Footer ───────────────────────────────────────────────────── */
.vlbb-sb-footer {
  padding: 16px 22px; border-top: 1.5px solid #f3f4f6;
  display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
}
.vlbb-footer-2col { flex-direction: row; align-items: center; }

/* ── Explore Panel ────────────────────────────────────────────── */
.vlbb-explore-list { flex: 1; overflow-y: auto; padding: 16px 22px; }
.vlbb-explore-item { padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.vlbb-explore-item-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: nowrap;
}
.vlbb-explore-item-img {
  width: 52px; height: 52px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0; background: #f3f4f6;
}
.vlbb-explore-item-img img { width: 100%; height: 100%; object-fit: cover; }
.vlbb-explore-item-info { flex: 1; }
.vlbb-explore-item-name  { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 3px; }
.vlbb-explore-item-price { font-size: 13px; color: var(--vlbb-primary); font-weight: 600; }
.vlbb-explore-add {
  background: var(--vlbb-primary) !important; color: #fff !important;
  border: none !important; padding: 8px 14px !important; border-radius: 8px !important;
  font-size: 13px !important; font-weight: 600 !important; cursor: pointer !important;
  flex-shrink: 0 !important; transition: opacity .15s !important;
  display: block !important; visibility: visible !important;
  min-width: 60px !important; text-align: center !important;
}
.vlbb-explore-add:hover { opacity: .88 !important; }

/* ── Explore button ───────────────────────────────────────────── */
.vlbb-explore-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px;
  background: #f0fdf4; color: var(--vlbb-primary);
  border: 1.5px solid var(--vlbb-primary);
  border-radius: var(--vlbb-radius);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .18s;
}
.vlbb-explore-btn:hover { background: #dcfce7; }

@media(max-width:500px) {
  .vlbb-sidebar { width: 100%; }
  .vlbb-row-2   { grid-template-columns: 1fr; }
}

/* ── Location List ────────────────────────────────────────────── */
.vlbb-location-list { display: flex; flex-direction: column; gap: 12px; }
.vlbb-loc-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border: 2px solid #e5e7eb; border-radius: 12px;
  cursor: pointer; transition: all .18s; position: relative;
}
.vlbb-loc-item:hover { border-color: var(--vlbb-primary); }
.vlbb-loc-item.selected { border-color: var(--vlbb-primary); background: #f0fdf4; }
.vlbb-loc-img {
  width: 80px; height: 60px; border-radius: 8px; overflow: hidden;
  flex-shrink: 0; background: #f3f4f6;
}
.vlbb-loc-img img { width: 100%; height: 100%; object-fit: cover; }
.vlbb-loc-name { font-size: 15px; font-weight: 600; color: #111827; flex: 1; }
.vlbb-loc-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--vlbb-primary); color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.vlbb-loc-item.selected .vlbb-loc-check { display: flex; }

/* ── Submit Button (Finalise form — full width like Image 2) ──── */
.vlbb-submit-full {
  width: 100% !important;
  padding: 16px !important;
  font-size: 16px !important;
  border-radius: 10px !important;
  letter-spacing: .01em !important;
  background: #14543d !important;
  color: #fff !important;
}
.vlbb-submit-full:disabled {
  background: #f2f3f5 !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  transform: none !important;
}
.vlbb-submit-full:not(:disabled):hover {
  background: #0f3b2d !important;
  color: #fff !important;
}
.vlbb-finalise-btn:not(:disabled):hover {
  background: #0f3b2d !important;
  color: #fff !important;
}
.vlbb-finalise-btn:active { transform: scale(0.96); }

/* ── Schedule Panel Header ────────────────────────────────────── */
.vlbb-sch-mhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 12px 0 20px;
  gap: 10px;
}
.vlbb-sch-title {
  font-family: 'Nunito', var(--vlbb-font), sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 4px;
}
.vlbb-sch-sub {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

/* ── Schedule Footer Buttons ──────────────────────────────────── */
.vlbb-sch-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.vlbb-sch-pay-btn {
  width: 100% !important;
  padding: 14px !important;
  font-size: 16px !important;
  white-space: nowrap !important;
  background: #14543d !important;
  color: #fff !important;
  border-radius: var(--vlbb-radius) !important;
}
.vlbb-sch-pay-btn:hover {
  background: #0f3b2d !important;
  color: #fff !important;
}

/* ── Radio Buttons — handled by .vlbb-custom-radio above ─────── */

/* ── NEW: Modern Responsive Monthly Calendar Grid ── */
.vlbb-calendar-wrapper {
  background: #fdfdfd;
  border: 1px solid #e5e7eb;
  border-radius: var(--vlbb-radius, 12px);
  padding: 16px;
  margin-top: 10px;
}
.vlbb-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.vlbb-cal-month-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.vlbb-cal-nav-btn {
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  transition: background 0.2s;
}
.vlbb-cal-nav-btn:hover {
  background: #e5e7eb;
}
.vlbb-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.vlbb-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 6px;
  column-gap: 6px;
}
.vlbb-cal-day {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  color: #374151;
  transition: all 0.2s ease;
}
.vlbb-cal-day.valid-day {
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #f3f4f6;
}
.vlbb-cal-day.valid-day:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
.vlbb-cal-day.disabled-day {
  color: #d1d5db;
  background: #f9fafb;
  cursor: not-allowed;
  font-weight: 400;
}
.vlbb-cal-day.empty {
  background: transparent;
}
