/* Global mobile action bar */
.mobile-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px calc(10px + max(
    env(safe-area-inset-bottom, 20px),
    var(--tg-safe-area-inset-bottom, 0px),
    var(--tg-content-safe-area-inset-bottom, 0px)
  ));
  border-top: 1px solid var(--line, rgba(18, 17, 16, .16));
  background: var(--paper, #F2EDE4);
  box-shadow: 0 -12px 30px -24px rgba(0, 0, 0, .45);
}

.mobile-action-bar .btn-call,
.mobile-action-bar .btn-book {
  display: inline-flex;
  flex: 1 1 50%;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 10px;
  border-radius: 10px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.mobile-action-bar .btn-call {
  border: 1px solid var(--line-strong, #8f887e);
  background: transparent;
  color: var(--ink, #121110);
}

.mobile-action-bar .btn-call:active {
  background: var(--paper-2, #e7e0d5);
}

.mobile-action-bar .btn-book {
  border: 1px solid var(--accent, #A64B2A);
  background: var(--accent, #A64B2A);
  color: var(--on-accent, #F2EDE4);
}

.mobile-action-bar .btn-book:hover {
  background: var(--accent-ink, #8f3f23);
  border-color: var(--accent-ink, #8f3f23);
}

.mobile-action-bar .btn-book:active {
  transform: scale(.99);
}

.mobile-action-bar .btn-call:focus-visible,
.mobile-action-bar .btn-book:focus-visible {
  outline: 3px solid var(--accent-bright, #c96a47);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .mobile-action-bar {
    display: flex;
  }
  body {
    padding-bottom: calc(88px + max(
      env(safe-area-inset-bottom, 20px),
      var(--tg-safe-area-inset-bottom, 0px),
      var(--tg-content-safe-area-inset-bottom, 0px)
    ));
  }
}

@media (max-width: 360px) {
  .mobile-action-bar {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .mobile-action-bar .btn-call,
  .mobile-action-bar .btn-book {
    min-height: 46px;
    padding: 0 6px;
    font-size: 10px;
  }
}
