/* The two telephone choices stay within thumb reach on phones. */
.bpd-mobile-contact-bar { display: none; }

@media (max-width: 767px) {
  :root { --bpd-mobile-call-height: calc(80px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: calc(var(--bpd-mobile-call-height) + 20px); }
  body.bpd-refresh { padding-bottom: var(--bpd-mobile-call-height); }

  .bpd-refresh .bpd-site-header .bpd-brand-contacts,
  .bpd-refresh .bpd-site-header .bpd-contact-stack,
  .bpd-refresh .bpd-site-header .bpd-mobile-contacts { display: none !important; }
  .bpd-refresh .bpd-site-header .bpd-nav-row { min-height: 86px; }

  .bpd-refresh .bpd-mobile-contact-bar {
    position: fixed;
    z-index: 1005;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-height: var(--bpd-mobile-call-height);
    box-sizing: border-box;
    margin: 0;
    padding: 9px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #d4dce2;
    background: #fff;
    box-shadow: 0 -5px 22px #0a244312;
    font-family: var(--bpd-font-body, Archivo, Arial, sans-serif);
  }
  .bpd-refresh .bpd-mobile-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    min-height: 60px;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #fff !important;
    text-decoration: none !important;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .bpd-refresh .bpd-mobile-call--office { background: #0a2443; border-color: #0a2443; }
  .bpd-refresh .bpd-mobile-call--mobile { background: #c80067; border-color: #c80067; }
  .bpd-refresh .bpd-mobile-call--office:hover { background: #173d64; border-color: #173d64; }
  .bpd-refresh .bpd-mobile-call--mobile:hover { background: #a80057; border-color: #a80057; }
  .bpd-refresh .bpd-mobile-call:active { box-shadow: inset 0 0 0 2px #ffffff65; }
  .bpd-refresh .bpd-mobile-call:focus-visible { outline: 3px solid #087f99 !important; outline-offset: 3px !important; }
  .bpd-mobile-call svg { display: block; width: 23px; height: 25px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .bpd-mobile-call-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .bpd-refresh .bpd-mobile-call strong { display: block; margin: 0; font-size: 15px; font-weight: 750; line-height: 1.15; letter-spacing: -.015em; color: inherit; white-space: nowrap; }
  .bpd-refresh .bpd-mobile-call-number { display: block; font-size: 12px; font-weight: 500; line-height: 1.15; letter-spacing: .015em; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }

  /* Expanded menus finish above the fixed contact bar. Dialogs occupy the full screen. */
  .bpd-refresh .bpd-site-header :is(.bpd-mobile-menu, .bpd-menu-panel) {
    max-height: calc(100dvh - var(--bpd-header-height, 86px) - var(--bpd-mobile-call-height));
    box-sizing: border-box;
  }
  body.bpd-refresh:has(dialog[open]) .bpd-mobile-contact-bar { display: none !important; }
  body.bpd-refresh:has(input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus, select:focus) .bpd-mobile-contact-bar { display: none !important; }
}

@media (max-width: 370px) {
  .bpd-refresh .bpd-mobile-contact-bar { gap: 8px; padding-inline: 10px; }
  .bpd-refresh .bpd-mobile-call { gap: 8px; padding-inline: 9px; }
  .bpd-mobile-call svg { width: 20px; height: 23px; }
  .bpd-refresh .bpd-mobile-call strong { font-size: 14px; }
  .bpd-refresh .bpd-mobile-call-number { font-size: 11.5px; letter-spacing: 0; }
}

@media print {
  .bpd-mobile-contact-bar { display: none !important; }
  body.bpd-refresh { padding-bottom: 0; }
}
