/* Phone bottom bar as a drag-up panel */
.mobcta-handle { display: none; }
@media (max-width: 900px) {
  .mobcta.is-drawer { transform: translateY(100%); transition: transform .28s ease; touch-action: none; }
  .mobcta.is-drawer.is-open { transform: translateY(0); }
  .mobcta.is-drawer.is-dragging { transition: none; }
  /* while tucked away, the hidden buttons cannot be tapped or focused */
  .mobcta.is-drawer > :not(.mobcta-handle) { visibility: hidden; transition: visibility 0s .28s; }
  .mobcta.is-drawer.is-open > :not(.mobcta-handle),
  .mobcta.is-drawer.is-dragging > :not(.mobcta-handle) { visibility: visible; transition: none; }

  .mobcta.is-drawer .mobcta-handle {
    display: flex; align-items: flex-end; justify-content: center;
    position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
    width: 72px; height: 34px; padding: 0; background: none; border: 0;
    touch-action: none; cursor: grab; -webkit-tap-highlight-color: transparent; user-select: none;
  }
  .mobcta-handle span {
    display: flex; align-items: center; justify-content: center; width: 34px; height: 16px;
    background: rgba(14, 11, 5, .94); border: 1px solid rgba(212, 168, 0, .45); border-bottom: 0;
    border-radius: 9px 9px 0 0;
  }
  .mobcta-handle span::after {
    content: ""; width: 5px; height: 5px; margin-top: 3px;
    border-left: 2px solid #f5c800; border-top: 2px solid #f5c800; transform: rotate(45deg);
    animation: mobcta-blink 1.2s ease-in-out infinite;
  }
  .mobcta.is-open .mobcta-handle span::after { margin: -3px 0 0; transform: rotate(225deg); animation: none; }
  .mobcta-handle.is-nudge span { animation: mobcta-nudge .5s ease; }
}
@media (max-width: 900px) {
  /* the chat button sits low while the bar is tucked away, and moves up with it */
  body #hps-wrap { bottom: 20px; transition: bottom .28s ease; }
  body.mobcta-open #hps-wrap { bottom: calc(var(--mobcta-h, 100px) + 40px); }
}
@keyframes mobcta-blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes mobcta-nudge { 40% { transform: translateY(-9px); } }
