.mobile-actions {
  display: none;
}

@media (max-width: 760px) {
  html {
    scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  body:has(.mobile-actions) {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  body:has(.mobile-actions) .side-float {
    display: none;
  }

  .mobile-actions {
    display: block;
    --dock-blue: #185698;
    --dock-bottom: max(8px, env(safe-area-inset-bottom));
  }

  body:has(.nav-links.open, .modal-overlay.open, dialog[open], input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus) .mobile-actions {
    visibility: hidden;
  }

  .mobile-actions svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-dock {
    position: fixed;
    z-index: 80;
    inset-inline: 12px;
    bottom: var(--dock-bottom);
    max-width: 500px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1fr;
    gap: 4px;
    padding: 5px;
    border: 1px solid #d5e2ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 24px #173a6030;
  }

  .mobile-dock a,
  .mobile-call summary {
    min-height: 49px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    border-radius: 12px;
    color: #294765;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-dock a[aria-current="page"] {
    background: #edf4fb;
    color: #154f87;
  }

  .mobile-dock a.mobile-dock-booking {
    background: var(--dock-blue);
    color: #fff;
  }

  .mobile-dock a:focus-visible,
  .mobile-call :is(a, summary):focus-visible {
    outline: 2px solid #155596;
    outline-offset: 2px;
  }

  .mobile-call {
    position: fixed;
    z-index: 81;
    right: max(12px, env(safe-area-inset-right), calc((100vw - 500px) / 2));
    bottom: calc(var(--dock-bottom) + 72px);
  }

  .mobile-call summary {
    width: 49px;
    border: 1px solid #d5e2ef;
    background: #fff;
    box-shadow: 0 4px 16px #173a6030;
    color: var(--dock-blue);
    list-style: none;
    cursor: pointer;
  }

  .mobile-call summary::-webkit-details-marker {
    display: none;
  }

  .mobile-call[open] summary {
    background: var(--dock-blue);
    color: #fff;
  }

  .mobile-call-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: min(236px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid #d5e2ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 22px #173a6030;
    color: #173953;
  }

  .mobile-call-panel strong {
    display: block;
    padding: 10px 12px 6px;
    font-size: 14px;
  }

  .mobile-call-panel a {
    min-height: 45px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid #edf2f7;
    color: #185698;
    font-size: 14px;
    text-decoration: none;
  }
}
