.mobile-contact-bar[hidden] { display: none; }
.mobile-contact-bar { display: none; }

@media (max-width: 768px) {
  body.has-mobile-contact-bar {
    padding-bottom: var(--mobile-contact-bar-space, 0px);
  }

  body.has-mobile-contact-bar #fumesoft-analytics-consent {
    bottom: calc(var(--mobile-contact-bar-space, 0px) + 16px) !important;
  }

  .mobile-contact-bar:not([hidden]) {
    position: fixed;
    z-index: 1051;
    inset: auto 0 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.2fr) minmax(0, .92fr);
    gap: 7px;
    width: 100%;
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(25, 48, 82, .08);
    border-radius: 15px 15px 0 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -7px 24px rgba(15, 30, 54, .12);
    font-family: inherit;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    overscroll-behavior: contain;
  }

  .mobile-contact-bar__action {
    box-sizing: border-box;
    display: flex;
    min-width: 0;
    min-height: 58px;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 3px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #263951;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-contact-bar__action svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .mobile-contact-bar__action--phone {
    background: #edf2f8;
    border-color: #e4eaf2;
    color: #253950;
  }

  .mobile-contact-bar__action--callback {
    background: #172e57;
    border-color: #172e57;
    color: #fff;
    box-shadow: 0 3px 9px rgba(23, 46, 87, .2);
    font-weight: 750;
  }

  .mobile-contact-bar__action--whatsapp {
    background: #e8f7ee;
    border-color: #d9f0e2;
    color: #12633b;
  }

  .mobile-contact-bar__action:focus-visible {
    outline: 3px solid #70aaff;
    outline-offset: 2px;
  }

  .mobile-contact-bar__action:active { transform: translateY(1px); }

  /* Replace the floating WhatsApp launcher while the quick-contact bar is available. */
  .fs-wa { display: none !important; }
}

@media (max-width: 350px) {
  .mobile-contact-bar:not([hidden]) { gap: 5px; padding-inline: 7px; }
  .mobile-contact-bar__action { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-contact-bar__action { transition: none; }
}
