/**
 * BMG mobile contact dock — 0.5.3.
 * One component owns layout. The ID and scoped layout guards beat old bundles
 * even if a cache/minifier prints their two-column rules after this stylesheet.
 * No JavaScript, database writes, replacement links, or additional widgets.
 */
html body nav#bmg-mobile-contact.bmg-mobile-contact {
  display: none !important;
}

@media screen and (max-width: 767px) {
  html body nav#bmg-mobile-contact.bmg-mobile-contact {
    --bmg-dock-safe-bottom: env(safe-area-inset-bottom, 0px);
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 980;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    grid-auto-flow: column !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px max(8px, env(safe-area-inset-right, 0px)) max(8px, var(--bmg-dock-safe-bottom)) max(8px, env(safe-area-inset-left, 0px)) !important;
    box-sizing: border-box !important;
    border: 0;
    border-top: 1px solid #dce2e5;
    border-radius: 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -3px 18px rgba(23, 50, 66, .10);
    transform: none !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html body nav#bmg-mobile-contact.bmg-mobile-contact > a {
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 48px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 4px !important;
    box-sizing: border-box !important;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: clamp(12px, 3.1vw, 14px) !important;
    font-weight: 750;
    line-height: 20px !important;
    text-align: center;
    text-decoration: none;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    float: none !important;
    transform: none !important;
  }
  html body nav#bmg-mobile-contact.bmg-mobile-contact > a.bmg-contact-call {
    grid-column: 1 !important;
    background: #fff;
    border-color: #ccd6de;
    color: #273d4a;
  }
  html body nav#bmg-mobile-contact.bmg-mobile-contact > a.bmg-contact-zalo {
    grid-column: 2 !important;
    background: #086cdb;
    border-color: #086cdb;
    color: #fff;
  }
  html body nav#bmg-mobile-contact.bmg-mobile-contact > a.bmg-contact-survey {
    grid-column: 3 !important;
    background: #bd2735;
    border-color: #bd2735;
    color: #fff;
  }
  html body nav#bmg-mobile-contact.bmg-mobile-contact > a > svg {
    display: block;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0;
  }
  html body nav#bmg-mobile-contact.bmg-mobile-contact > a > span {
    display: block;
    min-width: 0;
    line-height: 20px !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  html body nav#bmg-mobile-contact.bmg-mobile-contact > a:focus-visible {
    outline: 2px solid #142c3e;
    outline-offset: 2px;
  }
}

/* Keep the existing menu/photo/input behavior and transaction-page exclusions. */
html body.bmg-form-editing nav#bmg-mobile-contact.bmg-mobile-contact,
html body.bmg-menu-open nav#bmg-mobile-contact.bmg-mobile-contact,
html body.bmg-photo-open nav#bmg-mobile-contact.bmg-mobile-contact,
html body.woocommerce-cart nav#bmg-mobile-contact.bmg-mobile-contact,
html body.woocommerce-checkout nav#bmg-mobile-contact.bmg-mobile-contact,
html body.woocommerce-account nav#bmg-mobile-contact.bmg-mobile-contact {
  display: none !important;
}
@media print {
  html body nav#bmg-mobile-contact.bmg-mobile-contact {
    display: none !important;
  }
}
