/* MOATRIP | TOUR SIDEBAR ISOLATION v1.2.1 | 2026-11-14
 * SCOPE: public tour detail post (single-tour) ONLY + the one MOATRIP registered
 * sidebar widget inside Tour Master's normal widget region.
 * IMMUTABLE: .tourmaster-tour-booking-bar-outer, booking form, date/people,
 * payment buttons, tour sidebar grid/width, SITEWIDE CSS, other widgets.
 * Chrome/modern browser :has() support needed for outer widget-area cleanup.
 */

/* 1. Tour Master prints booking-bar-outer and booking-bar-widget as siblings.
 * The common parent can paint one large white frame around both. Clear ONLY
 * the parent's background, border color, and shadow. Do NOT alter its dimensions,
 * position, layout, border width, padding, sticky behavior, or any booking child.
 * The separate booking-bar-outer keeps its original CSS unchanged. */
body.single-tour .tourmaster-tour-booking-bar-wrap:has(> .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget){
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget:has(.widget_moa_tis_shared_sidebar_widget){
  width:100% !important;
  box-sizing:border-box !important;
  margin:16px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  min-height:0 !important;
}
/* Theme widget wrappers have their own background/border/padding/margins.
 * Remove those only when they contain the MOATRIP widget. */
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget,
body.single-tour .tourmaster-tour-booking-bar-widget .gdlr-core-widget-item:has(.widget_moa_tis_shared_sidebar_widget),
body.single-tour .tourmaster-tour-booking-bar-widget .gdlr-core-sidebar-widget:has(.widget_moa_tis_shared_sidebar_widget),
body.single-tour .tourmaster-tour-booking-bar-widget .widget-wrap:has(.moa-shared-sidebar){
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  min-height:0 !important;
}
/* No global widget or booking bar overrides; .moa-shared-sidebar is scoped here. */
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-shared-sidebar{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:16px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
/* 2. Accommodate a ~260-290px tour sidebar, without widening the sidebar,
 * reflowing the left tour content, or changing the 290px editorial sidebar. */
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-panel{
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:18px 15px !important;
  border-radius:14px !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-panel h2{
  font-size:16px !important;
  line-height:1.45 !important;
  margin:0 0 9px !important;
  word-break:keep-all !important;
  overflow-wrap:break-word !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-eyebrow{
  font-size:10.5px !important;
  margin-bottom:7px !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-intro{
  font-size:12px !important;
  line-height:1.72 !important;
  margin-bottom:9px !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-why ul{
  margin-top:12px !important;
  gap:8px !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-why li{
  font-size:12px !important;
  line-height:1.6 !important;
  gap:7px !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-product{
  gap:9px !important;
  padding:11px 0 !important;
  min-width:0 !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-product-thumb{
  width:58px !important;
  height:58px !important;
  flex:0 0 58px !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-product-copy strong{
  font-size:12px !important;
  line-height:1.46 !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-product-type{
  font-size:10px !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-product-copy small{
  font-size:10.5px !important;
  line-height:1.45 !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-contact-cta{
  padding:10px 11px !important;
  margin-top:13px !important;
  font-size:12px !important;
}
body.single-tour .tourmaster-tour-booking-bar-widget .widget_moa_tis_shared_sidebar_widget .moa-ss-contact-details{
  margin-top:12px !important;
  padding-top:10px !important;
}
/* Existing layout/mobile sidebar visibility belongs to Tour Master.
 * Do not force display for hidden booking/widget regions. */
