/* House of Reformer: mobile EVENTS popup only. Does not style class bookings. */
@media (max-width: 767px) {
  .hor-event-mobile-scroll {
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    min-height: 0 !important;
    max-height: calc(100vh - var(--hor-event-modal-top, 12px) - 10px) !important;
    max-height: calc(100dvh - var(--hor-event-modal-top, 12px) - 10px) !important;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .hor-event-mobile-scroll h1,
  .hor-event-mobile-scroll h2 {
    overflow-wrap: break-word;
    font-size: clamp(32px, 8.4vw, 52px) !important;
    line-height: 1.05 !important;
  }
  #hor-event-mobile-cta {
    display: flex;
    box-sizing: border-box;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 2147483000;
    padding: 12px max(16px, env(safe-area-inset-left, 0px))
             calc(12px + env(safe-area-inset-bottom, 0px))
             max(16px, env(safe-area-inset-right, 0px));
    border-top: 1px solid #e8ddd3;
    background: #faf7f3;
    box-shadow: 0 -7px 24px rgba(30, 22, 12, .12);
    align-items: center;
    justify-content: center;
  }
  #hor-event-mobile-cta[hidden] { display: none !important; }
  #hor-event-mobile-cta button {
    width: min(100%, 600px);
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    background: #80664d;
    color: #fff;
    font: 600 16px/1.3 system-ui, -apple-system, sans-serif;
    letter-spacing: .04em;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  #hor-event-mobile-cta button:focus-visible { outline: 3px solid #2e2013; outline-offset: 3px; }
  #hor-event-mobile-cta button:disabled { opacity: .5; cursor: not-allowed; }
}
@media (min-width: 768px) { #hor-event-mobile-cta { display: none !important; } }
