/*
 * Booking panel (rental page sidebar): pricing headline, Check-in / Check-out
 * boxes, breakdown. Loaded after the plugin stylesheet and the theme rules it
 * builds on (gold buttons, #E9E9E9 borders, #006c5e selected days), so it
 * reuses the site's existing look instead of introducing a new one.
 *
 * Selectors use the same long prefix as the theme's booking-sidebar rules so
 * they win over Astra's global button styles.
 */

/* Anything carrying the HTML [hidden] attribute stays hidden, whatever the theme says */
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar [hidden] {
  display: none !important;
}

/* ---------- Pricing headline ---------- */
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-pricing {
  min-height: 0;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-prompt {
  font-size: clamp(16px, 0.0136363636 * 100vw, 20px);
  font-weight: 500;
  line-height: 1.3;
  color: #6b6b6b;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-total {
  font-size: clamp(24px, 0.0181818182 * 100vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: #262626;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-meta {
  margin-top: 2px;
  font-size: clamp(12px, 0.0090909091 * 100vw, 15px);
  line-height: 1.4;
  color: #6b6b6b;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-notice {
  font-size: clamp(14px, 0.0090909091 * 100vw, 16px);
  line-height: 1.4;
  color: #b3261e;
}

/* Loading placeholder while the quote is fetched */
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-skel {
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%);
  background-size: 400% 100%;
  animation: tr-bp-shimmer 1.2s ease infinite;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-skel-lg {
  height: 32px;
  width: 55%;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-skel-sm {
  height: 14px;
  width: 40%;
}
@keyframes tr-bp-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- Check-in / Check-out boxes ---------- */
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-date {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  color: #434343;
  background: #fff;
  border: 1px solid var(--Stroke, #E9E9E9);
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-date:hover {
  color: #434343;
  background: #fff;
  border-color: #bdbdbd;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-date:focus-visible {
  outline: 2px solid #006c5e;
  outline-offset: 2px;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-date.is-active {
  border-color: #006c5e;
  box-shadow: 0 0 0 1px #006c5e;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-date .tr-bp-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-date .tr-bp-value {
  font-size: clamp(14px, 0.0090909091 * 100vw, 16px);
  color: #9a9a9a;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-date.has-value .tr-bp-value {
  font-weight: 600;
  color: #262626;
}

/* ---------- Under the button ---------- */
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-fine {
  margin-top: -8px;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  color: #6b6b6b;
}

/* ---------- Breakdown ---------- */
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-breakdown {
  padding-top: 16px;
  border-top: 1px solid var(--Stroke, #E9E9E9);
  font-size: clamp(14px, 0.0090909091 * 100vw, 15px);
  color: #262626;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.35;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-row > span:last-child {
  white-space: nowrap;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-row.is-discount {
  color: #006c5e;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-row.is-total {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--Stroke, #E9E9E9);
  font-weight: 700;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-row.is-sub {
  padding-left: 12px;
  font-size: 0.93em;
  color: #6b6b6b;
}

/* Taxes: one line, expandable to the individual taxes */
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-taxes summary {
  list-style: none;
  cursor: pointer;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-taxes summary::-webkit-details-marker {
  display: none;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-taxes summary > span:first-child::after {
  content: " \25BE";
  font-size: 0.85em;
  color: #6b6b6b;
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-taxes[open] summary > span:first-child::after {
  content: " \25B4";
}
.single-rental #content .rental-content-wrapper .rental-sidebar .sidebar-booking-form .booking-sidebar .tr-bp-taxes .tr-bp-row.is-sub {
  margin-top: 8px;
}
