/* Quantity UI */
.wd-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.wd-qty-wrapper button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #0b5fa5;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.wd-qty-wrapper input {
  width: 60px;
  text-align: center;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  padding: 6px;
}

/* Ticket summary */
.wd-ticket-summary {
  background: linear-gradient(180deg,#0b5fa5,#0aaad1);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-top: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.wd-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 8px;
}

.wd-total {
  font-size: 18px;
}

.wd-ticket-summary hr {
  border-color: rgba(255,255,255,0.3);
}

/* Calendar styling */
.wapf-field-input input[type="date"] {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  font-size: 16px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
/* Ticket Summary Header Fix */
.wd-ticket-summary h4 {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 14px;
}

/* Premium header bar look */
.wd-ticket-summary h4::before {
    content: "🎟 ";
    margin-right: 6px;
}

/* Ticket summary table style */
.wd-ticket-summary {
    background: linear-gradient(180deg,#0b5fa5,#0aaad1);
    border-radius: 18px;
    padding: 18px;
}

.wd-ticket-summary .wd-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
}

.wd-ticket-summary .wd-row:not(.wd-total):not(.wd-advance) {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.wd-ticket-summary .wd-total {
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
}

.wd-ticket-summary .wd-advance {
    font-size: 14px;
    opacity: 0.95;
}

.wd-ticket-summary span:last-child {
    text-align: right;
}


/* Flatpickr calendar styling */
.flatpickr-calendar {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    padding: 12px;
}

.flatpickr-months {
    margin-bottom: 10px;
}

.flatpickr-current-month {
    font-size: 18px;
    font-weight: 600;
}

.flatpickr-day {
    border-radius: 50%;
    height: 42px;
    line-height: 42px;
    margin: 2px;
}

.flatpickr-day.selected,
.flatpickr-day.today {
    background: #00b4d8;
    color: #ffffff;
}

.flatpickr-day:hover {
    background: #caf0f8;
}



/* FORCE ticket summary text */
.wd-ticket-summary,
.wd-ticket-summary * {
    color: #ffffff !important;
}

.wd-ticket-summary h4 {
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center;
    margin-bottom: 12px;
}


/* Center booking calendar */
.wapf-field-input {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Center flatpickr calendar */
.flatpickr-calendar {
    margin: 12px auto !important;
}



.flatpickr-calendar {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
}


.wapf-field-input input[type="date"] {
    margin: 0 auto;
    text-align: center;
}


/* Move Book Now button below ticket summary (visual reorder) */
.single_add_to_cart_button {
    display: block;
    margin: 24px auto 0 auto;
    order: 99;
}

/* Make add-to-cart form a flex column */
form.cart {
    display: flex;
    flex-direction: column;
}


/* =========================
   FIX QTY FIELD SPACING
========================= */

/* Make each APF field block full width */
.wapf-field {
  width: 100%;
  margin-bottom: 18px;
}

/* Restore wide input + buttons layout */
.wd-qty-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 360px;   /* controls width like before */
  margin: 8px auto 0;
}

/* Bigger input box */
.wd-qty-wrapper input {
  flex: 1;
  height: 44px;
  font-size: 16px;
  border-radius: 14px;
  text-align: center;
  background: #ffffff;
}

/* + - buttons spacing */
.wd-qty-wrapper button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  font-size: 20px;
  background: #ffffff;
  color: #0b5fa5;
}

/* Space between Adult and Child blocks */
.wapf-field + .wapf-field {
  margin-top: 16px;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .wd-qty-wrapper {
    max-width: 100%;
  }
}



/* =========================
   QTY FIELD LAYOUT
========================= */
.wapf-field {
  width: 100%;
  margin-bottom: 18px;
}

.wd-qty-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 360px;
  margin: 8px auto 0;
}

.wd-qty-wrapper input {
  flex: 1;
  height: 44px;
  font-size: 16px;
  border-radius: 14px;
  text-align: center;
}

.wd-qty-wrapper button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  background: #ffffff;
  color: #0b5fa5;
}

/* =========================
   TICKET SUMMARY
========================= */
.wd-ticket-summary {
  background: linear-gradient(180deg,#0b5fa5,#0aaad1);
  color: #ffffff;
  border-radius: 18px;
  padding: 18px;
  margin-top: 20px;
}

.wd-ticket-summary h4 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 12px;
  color: #ffffff;
}

.wd-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 8px;
}

.wd-total {
  font-size: 18px;
}

/* =========================
   CALENDAR CENTERING
========================= */
.wapf-field-input {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flatpickr-calendar {
  margin: 14px auto !important;
  border-radius: 18px;
}



/* Hide the entire APF Grand Total row */
.single-product .wapf-product-totals {
    display: none !important;
} 


/* =========================
   FIX FLATPICKR HEADER (WOODMART CONFLICT)
========================= */

.single-product .flatpickr-calendar {
    font-family: inherit;
}

/* Header container */
.single-product .flatpickr-months {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
}

/* Month + year text */
.single-product .flatpickr-month {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

/* Month dropdown text */
.single-product .flatpickr-monthDropdown-months {
    appearance: none;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 0;
}

/* Year input */
.single-product .flatpickr-current-month .cur-year {
    font-size: 16px;
    font-weight: 600;
    padding: 0;
}

/* Prev / Next arrows */
.single-product .flatpickr-prev-month,
.single-product .flatpickr-next-month {
    position: static;
    height: auto;
    padding: 4px 8px;
}

.single-product .flatpickr-prev-month svg,
.single-product .flatpickr-next-month svg {
    width: 14px;
    height: 14px;
}

/* Remove Woodmart button styling interference */
.single-product .flatpickr-calendar button {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}





.single-product .flatpickr-calendar.inline {
    margin: 0 auto;
}
