.cfb-booking-box {
  max-width: 400px;
  border: 2px solid #ddd;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
}
.cfb-booking-box input:focus,
.cfb-booking-box input:focus-visible{
  outline: none !important;
}
.cfb-row {
  margin-bottom: 15px;
}

.cfb-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cfb-qty button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.cfb-price {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}
.cfb-total-first{
    font-size: 14px;
  font-weight: bold;
}
.cfb-book-btn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  border: none;
}
.cfb-row.cfb-note-row{
  display: none;
}
.cfb-note-row span{
  font-size: 14px;
  font-style: italic;
  color: #78350F;
  font-weight: 600;
}
/* ✅ FULL CONTROL OVER CALENDAR COLORS */
.flatpickr-day.selected {
  background: red;
  border-color: red;
}
.cfb-booking-box { 
  max-width:420px; 
  border:1px solid #eee; 
  padding:18px; 
  border-radius:12px; 
  background:#fff; 
}
.cfb-row { 
  margin-bottom:12px; 
}
.cfb-qty { 
  display:flex; 
  align-items:center; 
  gap:8px; 
}
.cfb-qty button { 
  width:36px; 
  height:36px;
  border-radius:50%; 
  border:none; background:#111; 
  color:#fff; cursor:pointer; 
}
.cfb-book-btn { 
  width:100%; 
  padding:12px; 
  background:#111;
  color:#fff;
  border-radius:10px;
  border:none;
  cursor:pointer; 
}
.cfb-price { 
  margin:10px 0; 
  font-weight:700; 
}

/* Calendar day color classes added by onDayCreate */
.flatpickr-day.cfb-available { 
  background:#dff7e0; 
  border-color:#9fe3a3; 
}
.flatpickr-day.cfb-full { 
  background:#ffd7d7; 
  border-color:#ff8181; 
  color:#333; 
  opacity:0.9; 
}
.flatpickr-day.cfb-unknown { 
  background:#f2f2f2; 
  color:#999; 
}
.cfb-booking-box {
  max-width: 480px;
  margin: auto;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  background: #fff;
}

.cfb-option-wrap label {
  /*border: 1px solid #ddd;*/
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.cfb-option-wrap input {
  margin-right: 8px;
}

.cfb-total {
  color: #198754;
}
.booking-details .option-name{
  font-size: 22px;
  margin: 0;
  color: #0B4584;
  font-weight: 500;
  margin-bottom: 14px;
}
.booking-details .option-details{
  font-size: 16px;
  font-weight: 500;
}
.booking-details .option-total{
  font-size: 16px;
  font-weight: 500;
}
.booking-details .date-details{
  font-size: 16px;
  color: #78350F;
  font-weight: 500;
}
.cfb-booking-box { 
  max-width:520px; 
  margin:10px auto; 
  padding:18px; 
  border:1px solid #eee; 
  border-radius:10px; 
  background:#fff; 
}
.cfb-row { 
  margin-bottom:12px; 
}
.cfb-label { 
  display:block; 
  margin-bottom:8px; 
  font-weight:600; 
}
.cfb-input { 
  width:100%; 
  padding:8px; 
}
.cfb-option-wrap { 
  display:flex; 
  flex-direction:column; 
  gap:8px; 
}
.cfb-option-row { 
  padding:10px; 
  border:1px solid #e6e6e6; 
  border-radius:8px; 
  isplay:flex; 
  justify-content:space-between; 
  align-items:center; 
}
.cfb-option-label { 
  display:flex; 
  gap:12px; 
  align-items:center; 
  width:100%; 
  cursor:pointer; 
}
.cfb-option-price { 
  margin-left:auto; 
  font-weight:700; 
  color:#0d6efd; 
}
.cfb-qty-control { 
  display:flex; 
  align-items:center; 
  gap:8px; 
}
.cfb-btn { 
  padding:8px 12px; 
  border:1px solid #ddd; 
  background:#fff; 
  cursor:pointer; 
  border-radius:6px; 
}
.cfb-qty-input { 
  width:80px; 
  text-align:center; 
  padding:8px; 
  border: 1px solid #F3D679;
  border-radius: 5px;
}
.cfb-total { 
  font-size:18px; 
  font-weight:700; 
  color:#198754; 
}
.cfb-book-btn { 
  width:100%; 
  padding:12px; 
  background:#0B4584; 
  color:#fff; 
  border:none; 
  border-radius:8px; 
  cursor:pointer; 
  font-size:16px; 
}
.cfb-book-btn[disabled] { 
  opacity:0.6; 
  cursor:not-allowed; 
}
.cf-event-wrapper { 
  margin-top:8px; 
  font-weight:700; 
  color:#d63384; 
}
.cfb-booking-box { 
  border:1px solid #eee; 
  padding:24px; 
  max-width: 600px; 
  background:#fff; 
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cfb-row.cfb-total-row{
  display: none;
}
.cfb-row.cfb-total-row label{
  margin-bottom: 0;
  display: flex;
  gap: 5px;
}
.cfb-row {
  margin-bottom: 10px;
  display: flex;
  align-items: start;
  gap: 8px;
  flex-direction: column; 
  width: 100%;
  }
.cfb-label,
.cfb-row label { 
  width: auto; 
  font-size: 16px;
  font-weight:600;
  color: #0B4584;
}
label.cfb-label{
  font-size: 18px;
}
.cfb-row label span.small{
  font-size: 12px;
}
.cfb-input { 
  padding:8px; 
  border:1px solid #0B4584; 
  border-radius:6px; 
  width: auto;
}
.cfb-option-row { 
  padding:8px 6px; 
  border:1px solid #F3D679; 
}
.cfb-btn { 
  padding:8px 12px; 
  border-radius:6px; 
  background:#0B4584; 
  color:#fff; 
  border:none; 
  cursor:pointer; 
}
.cfb-book-btn[disabled] { 
  opacity:.5; 
  cursor:not-allowed; 
}

.cfb-modal { 
  position:fixed; 
  inset:0; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  background:rgba(0,0,0,.7); 
  z-index:9999;     
  max-width: 100%;
}
.cfb-modal-inner { 
  background: #fff;
    width: 90%;
    max-width: 720px;
    padding: 18px;
    border-radius: 8px;
    position: relative;
    /* height: 100%; */
    overflow: auto;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 100px;
  }
.cfb-success { 
  color:green; 
}

#cfb-date {
  display: none;
}
.cfb-calendar-loading {
  padding: 10px;
  font-size: 14px;
  color: #666;
}
.cfb-calendar-loading span::after {
  content: ' ⏳';
}
body.cfb-modal-open {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}
#cfb-booking-modal .cfb-modal-inner .cfb-modal-close { 
  position:absolute; 
  top:8px; 
  right:8px; 
  border:0; 
  background:#eee; 
  width:32px; 
  height:32px; 
  border-radius:50%; 
  cursor:pointer; 
  font-size: 24px;
  line-height: 0px;
}
#cfb-booking-modal .cfb-modal-inner .cfb-modal-close:hover{
  color: #0B4584;
}
.cfb-note { 
  font-size:13px; 
  color:#666; 
}
.cfb-success { 
  color:green; 
  font-weight: 600;
  text-align: center;
}
.cfb-error { 
  color:#b00020; 
}
pre { 
  background:#f9f9f9; 
  padding:8px; 
  border-radius:6px; 
  max-height:260px; 
  overflow:auto; 
}
.cfb-dynamic-fields{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.cfb-dynamic-fields .cfb-row{
  margin-bottom: 10px;
  display: flex;
  align-items: start;
  gap: 8px;
  flex-direction: column;
  width: 48%;
}
.cfb-dynamic-fields .cfb-row .cfb-input{
  width: 95%;
}
.cfb-booking-rated-info hr{
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #0b45843b;
  margin: 1em 0 !important;
  padding: 0;
}
/* === Flatpickr full width === */

/* Input field full width */
.cfb-booking-wrapper .flatpickr-input,
.cfb-booking-wrapper input#cfb-date {
  width: 100%;
  box-sizing: border-box;
}

/* Calendar container */
.cfb-booking-wrapper .flatpickr-calendar {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Inner calendar layout */
.cfb-booking-wrapper .flatpickr-rContainer,
.cfb-booking-wrapper .flatpickr-days {
  width: 100% !important;
}

/* Days grid */
.cfb-booking-wrapper .dayContainer {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}
.cfb-option-row .option-content{
    display: flex;
    gap: 12px;
    align-items: center;
}
/* Each day cell – responsive */
.cfb-booking-wrapper .flatpickr-day {
  flex: 1 0 calc(100% / 7);
  max-width: calc(100% / 7);
  border-radius: 5px;
}

/* Weekday header */
.cfb-booking-wrapper .flatpickr-weekdays {
  width: 100%;
}

/* Month navigation bar */
.cfb-booking-wrapper .flatpickr-months {
  width: 100%;
}
.flatpickr-current-month .flatpickr-monthDropdown-months{
  width: 50%;
}
.flatpickr-current-month .numInputWrapper{
  width: 50%;
}
.flatpickr-current-month input.cur-year{
  text-align: center;
}
/* Wrapper should control width */
.cfb-booking-wrapper,
.cfb-booking-box {
  width: 100%;
}

/* Flatpickr input full width */
.cfb-booking-wrapper .flatpickr-input {
  width: 100%;
  box-sizing: border-box;
}

/* Calendar popup full width of input */
.flatpickr-calendar {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* Days grid responsive */
.flatpickr-days {
  width: 100%;
}
.flatpickr-day.selected{
  background: #085EBD;
  border: #085EBD;
}
/* Weekdays header full width */
.flatpickr-weekdays {
  width: 100%;
}

/* Individual day cells auto size */
.flatpickr-day {
  max-width: none;
  flex: 1 0 calc(100% / 7);
}

/* Make month container responsive */
.flatpickr-rContainer {
  width: 100%;
}

/* Optional: better spacing */
.flatpickr-calendar.inline {
  box-shadow: none;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.disabled {
  background: #f2f2f2 !important;
  color: #999 !important;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* AVAILABLE dates */
.cfb-booking-wrapper .flatpickr-day.cfb-available-day {
  background: #e6f7ec;
  border-color: #2ecc71;
  color: #1e8449;
  font-weight: 600;
}

/* Hover effect */
.cfb-booking-wrapper .flatpickr-day.cfb-available-day:hover {
  background: #2ecc71;
  color: #fff;
}

/* Unavailable dates */
.cfb-booking-wrapper .flatpickr-day.cfb-unavailable-day {
  background: #f4f4f4;
  color: #bbb;
  cursor: not-allowed;
}
.cfb-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  font-weight: 600;
  font-size: 14px;
  color: #0B4584;
}

.cfb-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #ddd;
  border-top-color: #0B4584;
  border-radius: 50%;
  animation: cfb-spin 0.8s linear infinite;
}

@keyframes cfb-spin {
  to { transform: rotate(360deg); }
}

/* Mobile spacing */
@media (max-width: 768px) {
  .cfb-booking-wrapper .flatpickr-calendar {
    font-size: 14px;
  }

}
@media (max-width: 480px) {
  .cfb-modal-inner{
    height: 680px;
    overflow-y: scroll;
    top: 20px;
    padding: 40px 18px;
  }
  .cfb-dynamic-fields .cfb-row{
      width: 100%;
  }
  #cfb-booking-modal .cfb-modal-inner .cfb-modal-close{
    right: 16px;
    background: transparent;
    font-size: 28px;
  }
  .cfb-input{
    border: solid 1px #0B4584;
  }
  .cfb-option-row .option-content{
    gap: 0;
    padding: 10px;
  }
  .cfb-option-wrap label{
    gap: 5px;
  }
}