/* Sunny & Play v155 — Rental mobile/night visual corrections only.
   Changes no booking configuration, availability, prices or checkout behavior. */

/* The native Woo cart wrapper exposes a legacy white canvas BETWEEN the rental
   cards even when the cards themselves use dark backgrounds. Scope the fix to
   the rental detail experience and ONLY dark mode. */
html[data-theme="dark"] body.single-product .sunny-v151-rent-page :is(
  #bookingConfigSection,
  .sunny-v151-woo-form,
  .sunny-v151-woo-form form.cart,
  .sunny-v151-fields
) {
  background:#151D2B!important;
  background-image:none!important;
}

/* Show full date status, including translated text and full selected dates.
   Never clip it to an ellipsis on narrow mobile displays. */
.sunny-v151-rent-page .sunny-v151-calendar-panel .sunny-v151-step {
  flex-wrap:wrap;
}
.sunny-v151-rent-page .sunny-v151-calendar-panel .sunny-v151-step > div {
  min-width:0;
}
.sunny-v151-rent-page .sunny-v151-calendar-panel .sunny-v151-date-badge {
  flex:0 0 auto;
  width:auto;
  max-width:100%;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:normal;
  text-align:center;
  line-height:1.3;
}
@media(max-width:420px){
  .sunny-v151-rent-page .sunny-v151-calendar-panel .sunny-v151-date-badge {
    margin-inline-start:auto;
  }
}

/* On small screens the fixed CTA obscures rows in the actual order summary.
   Hide only when the summary is visible; Woo's normal submit CTA remains
   available immediately after the summary. JS toggles this presentation flag. */
@media(max-width:760px){
  .sunny-v151-rent-page .sunny-v151-sticky{
    transition:opacity .16s ease, transform .16s ease;
  }
  .sunny-v151-rent-page .sunny-v151-sticky.is-summary-visible{
    opacity:0!important;
    transform:translateY(calc(100% + 12px));
    pointer-events:none!important;
    visibility:hidden;
  }
}
@media(prefers-reduced-motion:reduce){
  .sunny-v151-rent-page .sunny-v151-sticky{transition:none!important;}
}
