.mobile-quick-actions,
.desktop-floating-appointment {
  display: none;
}

@media (max-width: 920px) {
  .site-footer {
    padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-quick-actions {
    position: fixed;
    z-index: 60;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 4px;
    min-height: 70px;
    padding: 6px;
    color: #fff;
    background: rgb(17 42 85 / 96%);
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgb(10 31 67 / 30%);
    transition: opacity 220ms ease, translate 280ms cubic-bezier(.22, 1, .36, 1);
    backdrop-filter: blur(14px);
  }

  .mobile-quick-actions__link {
    display: flex;
    min-width: 0;
    min-height: 56px;
    padding: 9px 5px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: inherit;
    border-radius: 13px;
    text-align: center;
    text-decoration: none;
  }

  .mobile-quick-actions__link--primary {
    background: #3d63ad;
    box-shadow: 0 8px 18px rgb(5 24 57 / 24%);
  }

  .mobile-quick-actions__title {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .mobile-quick-actions__detail {
    overflow: hidden;
    max-width: 100%;
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: .78;
  }

  .mobile-quick-actions__link:focus-visible {
    outline: 3px solid #efb75b;
    outline-offset: -1px;
  }

  body.menu-open .mobile-quick-actions,
  body:has(.profile-dialog[open]) .mobile-quick-actions {
    opacity: 0;
    pointer-events: none;
    translate: 0 18px;
  }
}

@media (max-width: 620px) {
  .site-footer {
    padding-bottom: calc(137px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 921px) {
  .desktop-floating-appointment {
    position: fixed;
    z-index: 30;
    right: 24px;
    bottom: 24px;
    display: flex;
    max-width: min(290px, calc(100vw - 48px));
    min-height: 62px;
    padding: 10px 18px 10px 12px;
    align-items: center;
    gap: 12px;
    color: #fff;
    background: #315aa8;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 18px;
    box-shadow: 0 16px 38px rgb(17 42 85 / 28%);
    opacity: 0;
    pointer-events: none;
    text-decoration: none;
    translate: 0 16px;
    transition:
      opacity 220ms ease,
      translate 320ms cubic-bezier(.22, 1, .36, 1),
      background-color 180ms ease,
      box-shadow 180ms ease;
  }

  .desktop-floating-appointment.is-visible {
    opacity: 1;
    pointer-events: auto;
    translate: none;
  }

  .desktop-floating-appointment img {
    width: 34px;
    height: 34px;
    object-fit: contain;
  }

  .desktop-floating-appointment span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .desktop-floating-appointment small {
    margin-bottom: 3px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .12em;
    opacity: .76;
  }

  .desktop-floating-appointment:hover,
  .desktop-floating-appointment:focus-visible {
    background: #3d63ad;
    box-shadow: 0 18px 42px rgb(17 42 85 / 36%);
    translate: 0 -2px;
  }

  .desktop-floating-appointment:focus-visible {
    outline: 3px solid #efb75b;
    outline-offset: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-quick-actions,
  .desktop-floating-appointment {
    transition: none;
  }
}
