/* plg_system_dpstickycta 1.0.1
   Enhance the existing .dp-mbar (plg_system_dpbohdanui). Do not add a second bar.
   Colours stay with DentisPro v2 (data-dp-kt sage #E6F1EB / cream #F6EAD3). No blue. */

/* Thank-you page: no sticky booking chrome (content already has phone + WhatsApp). */
body.dp-stickycta-hide .dp-mbar,
body.dp-stickycta-hide .mobile-visit-btn,
body.dp-stickycta-hide #mod-custom124,
body.dp-stickycta-hide #mod-custom124 .tel {
 display: none !important;
}
body.dp-stickycta-hide {
 padding-bottom: 0 !important;
}

/* Phone + tablet: one large bottom bar. Tablet previously used a top strip + floating tel. */
@media (max-width: 991.98px) {
 body:not(.dp-stickycta-hide) .dp-mbar {
  display: flex !important;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 990;
  height: auto;
  min-height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: content-box;
 }
 body:not(.dp-stickycta-hide) .dp-mbar a {
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.15;
  min-height: 64px;
 }
 body:not(.dp-stickycta-hide) {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
 }
 /* Replace the tablet-only top «Записатися ОНЛАЙН» strip and the centre floating tel. */
 body:not(.dp-stickycta-hide) .mobile-visit-btn {
  display: none !important;
 }
 body:not(.dp-stickycta-hide) #mod-custom124,
 body:not(.dp-stickycta-hide) #mod-custom124 .tel {
  display: none !important;
 }
 /* Header-only top padding once the 54 px visit strip is gone (template was 146 px on ≤991). */
 body:not(.dp-stickycta-hide) {
  padding-top: 92px !important;
 }
 /* CookieYes first-visit banner and revisit button sit ABOVE the bar, not on top of it. */
 body:not(.dp-stickycta-hide) .cky-consent-container {
  bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
 }
 body:not(.dp-stickycta-hide) .cky-btn-revisit-wrapper {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
 }
 /* Scroll-up above the bar (beats inline Helix !important, including blog pages). */
 html body:not(.dp-stickycta-hide) .sp-scroll-up,
 html body:not(.dp-stickycta-hide) a.sp-scroll-up {
  bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 991 !important;
 }
 body.offcanvas-active .dp-mbar,
 .offcanvas-active .dp-mbar {
  display: none !important;
 }
}
