/* Sticky Call and Book bar. Hidden above 768px. */
.eld-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
  border-top: 1px solid rgba(30, 58, 95, 0.1);
  box-shadow: 0 -4px 16px rgba(30, 58, 95, 0.12);
}

.eld-mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 16px;
  text-align: center;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 6px;
}

.eld-mobile-cta .eld-mcta-call {
  background: #2b7cb3;
  color: #ffffff;
}

.eld-mobile-cta .eld-mcta-call:hover {
  background: #1e3a5f;
}

.eld-mobile-cta .eld-mcta-book {
  background: #1e3a5f;
  color: #ffffff;
}

.eld-mobile-cta .eld-mcta-book:hover {
  background: #2b7cb3;
}

@media (max-width: 768px) {
  .eld-mobile-cta {
    display: flex;
  }

  /* Keep the bar from covering the footer or the last screen of content. */
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  /* Room inside the footer so the lifted UserWay icon does not cover the seal or legal links. */
  .eld-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  /* UserWay sits at the bottom left (data-position 5). Lift it above the bar. */
  .userway_buttons_wrapper {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
