/* Phone contact controls, included only in the production build. */
.sw-contact { display: none; }

@media (max-width: 767px) {
  #navbar .nav-call,
  .pediatric-lp .lp-phone-call { display: none; }

  html body #back-to-top {
    left: 16px;
    right: auto;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .sw-contact {
    display: block;
    position: fixed;
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 990;
  }
  .sw-contact[hidden] { display: none; }
  .sw-contact-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #5a7d5a;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(61,92,61,.35);
  }
  .sw-contact-trigger:hover,
  .sw-contact-trigger[aria-expanded="true"] { background: #3d5c3d; }
  .sw-contact-trigger:focus-visible,
  .sw-contact-choice:focus-visible { outline: 3px solid #3d5c3d; outline-offset: 3px; }
  .sw-contact-trigger svg { width: 26px; height: 26px; }
  .sw-contact-sheet {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(61,92,61,.3);
  }
  .sw-contact-sheet[hidden] { display: none; }
  .sw-contact-choice {
    display: block;
    padding: 12px 16px;
    border: 2px solid #5a7d5a;
    border-radius: 10px;
    background: #5a7d5a;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
  }
  .sw-contact-choice + .sw-contact-choice { background: #fff; color: #3d5c3d; }
}
