/* CLUBB R177 R9: visual council P0 mobile dock patch on isolated R8 sources.
   Preserve hero gallery, two existing videos, PT/EN/ES, calendar logic and R16. */
@media (max-width:760px) {
  :root { --r3-dock-height:142px; }
  body.clubb-r177 {
    padding-bottom:calc(var(--r3-dock-height) + 12px + env(safe-area-inset-bottom))!important;
    scroll-padding-bottom:calc(var(--r3-dock-height) + 24px + env(safe-area-inset-bottom))!important;
  }
  .r177-booking-dock {
    padding:0 8px max(6px,env(safe-area-inset-bottom))!important;
  }
  .r177-booking-dock__form {
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"selectors" "submit" "trust"!important;
    row-gap:4px!important;
    padding:4px 0 1px!important;
  }
  .r177-booking-dock__form::before {
    content:none!important;display:none!important;
  }
  .r177-booking-dock__selectors {
    width:100%!important;max-width:100%!important;min-width:0!important;
    display:grid!important;grid-template-areas:none!important;
    grid-template-columns:minmax(0,1fr) minmax(0,.82fr) 112px!important;
    align-items:end!important;gap:4px!important;overflow:visible!important;
  }
  .r177-dock-field--date,
  .r177-period-selector,
  .r177-people-selector {
    grid-area:auto!important;min-width:0!important;
    max-width:100%!important;width:100%!important;
  }
  .r177-dock-field>span,.r177-period-selector>span {
    font-size:10.5px!important;line-height:1.1!important;
    margin:0 0 3px!important;font-weight:850!important;
  }
  .r177-r5-ready .r177-r5-control-trigger {
    height:44px!important;min-height:44px!important;
    padding:0 6px!important;font-size:11.5px!important;
    border-radius:9px!important;
  }
  .r177-r5-ready .r177-r5-control-trigger--period {
    font-size:12px!important;
  }
  .r177-r5-control-trigger__icon {
    font-size:14px!important;max-width:15px;flex-shrink:0;
  }
  .r177-people-stepper {
    height:44px!important;
    grid-template-columns:44px minmax(20px,1fr) 44px!important;
    border-radius:9px!important;
  }
  .r177-people-stepper button {
    min-width:44px!important;min-height:44px!important;
    padding:0!important;font-size:19px!important;
  }
  .r177-people-stepper output {
    font-size:14px!important;line-height:1!important;
  }
  .r177-booking-dock__submit {
    width:100%;min-height:51px!important;height:51px!important;
    font-size:clamp(13.5px,3.7vw,15.5px)!important;
    line-height:1.2!important;border-radius:11px!important;
  }
  .r177-booking-dock__trust {
    font-size:10.5px!important;line-height:1.2!important;
    white-space:normal!important;overflow:visible!important;
    text-overflow:clip!important;margin:0!important;min-height:13px!important;
  }
  .r177-donor-gallery-r2__arrows button,
  .r177-reviews-r6__dot {
    width:44px!important;min-width:44px!important;
    height:44px!important;min-height:44px!important;
  }
  .r177-r5-popover { max-height:calc(100dvh - 157px)!important; }
  .clubb-cookie { padding:12px 14px!important; }
  .clubb-cookie__inner { gap:8px!important; }
}
@media (max-width:359px) {
  .r177-booking-dock__selectors {
    grid-template-columns:minmax(0,1fr) minmax(0,.82fr) 112px!important;
    grid-template-areas:none!important;gap:3px!important;
  }
  .r177-r5-ready .r177-r5-control-trigger {
    padding:0 4px!important;font-size:11px!important;
  }
  .r177-booking-dock__submit { padding-left:8px!important;padding-right:39px!important; }
}
@media (prefers-reduced-motion:reduce) {
  .r177-booking-dock__submit { transition:none!important; }
}
