.site-mobile-contacts { display: none; }
.site-mobile-contacts[hidden], .site-mobile-contacts [hidden] { display: none !important; }
@media (max-width: 639px) {
  body.site-mobile-contacts-active {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  html { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .site-mobile-contacts {
    position: fixed;
    inset: auto 0 0;
    z-index: 9900;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    box-sizing: border-box;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: #fff;
    border-top: 1px solid #d8e5f3;
    box-shadow: 0 -4px 20px rgb(0 40 80 / 10%);
    font: 500 13px/1.2 Roboto, Arial, sans-serif;
    transform: translateY(0);
    visibility: visible;
    transition: transform .32s cubic-bezier(.22, 1, .36, 1), visibility 0s;
  }
  .site-mobile-contacts > a, .site-mobile-contacts > button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    margin: 0;
    padding: 8px 4px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #0169c2;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .site-mobile-contacts > button { background: #0169c2; color: #fff; }
  .site-mobile-contacts > a + a { border-left: 1px solid #d8e5f3; }
  .site-mobile-contacts svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .site-mobile-contacts :focus-visible { outline: 2px solid #26364b; outline-offset: -4px; }
  .site-mobile-contacts__status {
    position: absolute;
    inset: auto 12px calc(100% + 8px);
    margin: 0;
    padding: 12px;
    background: #fff;
    color: #26364b;
    border: 1px solid #d8e5f3;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgb(0 40 80 / 10%);
    line-height: 1.5;
  }
  .site-mobile-contacts--offscreen {
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s ease-in, visibility 0s linear .28s;
  }
  @media (prefers-reduced-motion: reduce) {
    .site-mobile-contacts { transition: none; }
  }
  /* The existing callback49 form uses a full mobile modal shell. */
  html:has(.site-mobile-contacts--callback),
  body:has(.site-mobile-contacts--callback) { overflow: hidden; }
  .site-mobile-contacts--callback { z-index: 100000; }
  .site-mobile-contacts-active #b24-b24-site-button-form-49 > .b24-window {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 64px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: none;
  }
  .site-mobile-contacts-active #b24-b24-site-button-form-49 .b24-window-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 60%) !important;
    pointer-events: auto;
  }
  .site-mobile-contacts-active #b24-b24-site-button-form-49 .b24-window-widget {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 420px;
    max-height: none !important;
    flex-shrink: 0;
    margin: auto 0 !important;
    border-radius: 0;
    background: #fff;
    overflow: visible !important;
    pointer-events: auto;
  }
  .site-mobile-contacts-active #b24-b24-site-button-form-49 .b24-window-widget-body {
    max-height: none !important;
    overflow: visible !important;
  }
  .site-mobile-contacts-active #b24-b24-site-button-form-49 .b24-window-widget > .b24-window-close {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 100000;
    width: 43px;
    height: 43px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    opacity: 1;
    cursor: pointer;
  }
  .site-mobile-contacts-active #b24-b24-site-button-form-49 .b24-window-close::before,
  .site-mobile-contacts-active #b24-b24-site-button-form-49 .b24-window-close::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 6px;
    width: 31px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
  }
  .site-mobile-contacts-active #b24-b24-site-button-form-49 .b24-window-close::after { transform: rotate(-45deg); }
  /* The original callback trigger stays mounted; the panel delegates to it. */
  .site-mobile-contacts-active .b24-widget-button-wrapper { display: none !important; }
}
