/* ---------- Guaranteed Safe Checkout badge (booking form) ---------- */

/* PMS providers (Escapia, Guesty) render their own pay button and mark the
   theme's fallback button "invisible", which still reserves layout space and
   leaves a large gap above the badge. Collapse it while it stays hidden -
   if JS ever removes .invisible the button reappears as normal. */
#without_stripe .btn-booking.invisible {
  display: none;
}

#without_stripe:has(> .btn-booking.invisible) {
  padding-top: 0;
}

.boostly-safe-checkout {
  margin: 6px auto 4px;
  text-align: center;
}

.boostly-safe-checkout__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fafafa;
  color: #8c8c8c;
}

.boostly-safe-checkout__badge svg {
  flex: 0 0 auto;
}

.boostly-safe-checkout__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.boostly-safe-checkout__text small {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.boostly-safe-checkout__text strong {
  font-size: 16px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #6f6f6f;
}

.boostly-safe-checkout__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.boostly-safe-checkout__cards li {
  margin: 0;
  padding: 0;
  line-height: 0;
  list-style: none;
}

@media (max-width: 480px) {
  .boostly-safe-checkout__badge {
    gap: 8px;
    padding: 7px 12px;
  }

  .boostly-safe-checkout__text strong {
    font-size: 14px;
  }

  .boostly-safe-checkout__cards {
    gap: 8px;
  }
}

/* ---------- Booking sidebar: Pet Options block ---------- */

/* .booking-data-guests is full width with clear:both, so the Pet Options block
   is pushed onto its own row and the right half of the Guests row sits empty.
   Pair them 50/50 to match the Arrive/Depart row above - scoped with :has() so
   Guests still spans the full width on listings with no pet option. */
.booking-data:has(.booking-data-pets) .booking-data-guests {
  width: 50%;
  float: left;
  border-right: 1px dotted #d8dce1;
}

.booking-data-pets {
  width: 50%;
  float: left;
  border-top: 1px dotted #d8dce1;
}

/* Note: the label padding and checkbox width are handled at the source in
   single-listing/booking/sidebar-instance-booking.php - the wrapper no longer
   carries .form-group (which triggered a site-wide
   `.form-group .control { padding-left: 0 !important }` and hid the start of
   the label text) and the checkbox no longer carries .form-control (which
   stretched the invisible input to width:100% over the next cell).
   Do not reintroduce those two classes on that block. */
