.hvh-ticket-modal[hidden] {
  display: none !important;
}

.hvh-ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 24px);
}

.hvh-ticket-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.hvh-ticket-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  border: 1px solid rgba(8, 8, 8, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.hvh-ticket-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 8px 8px 18px;
  border-bottom: 1px solid rgba(8, 8, 8, 0.08);
  background: #fff;
}

.hvh-ticket-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hvh-ticket-modal__close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(8, 8, 8, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #121212;
  cursor: pointer;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}

.hvh-ticket-modal__close:hover,
.hvh-ticket-modal__close:focus-visible {
  background: #f7f2eb;
}

.hvh-ticket-modal__stage {
  position: relative;
  min-height: 360px;
  max-height: 78dvh;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.hvh-ticket-modal__frame {
  display: block;
  width: 100%;
  height: min(680px, 70dvh);
  min-height: 360px;
  border: 0;
  background: #fff;
}

.hvh-ticket-modal__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff;
  color: rgba(18, 18, 18, 0.64);
  font-size: 14px;
  font-weight: 700;
}

.hvh-ticket-modal__loading[hidden] {
  display: none;
}

.hvh-ticket-modal__fallback {
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(8, 8, 8, 0.08);
  background: #fdf9f4;
  color: rgba(18, 18, 18, 0.62);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.hvh-ticket-modal__fallback a {
  color: var(--bb-red-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.show-page__ticket-button[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none !important;
}

@media (max-width: 680px) {
  .hvh-ticket-modal {
    padding: 6px;
  }

  .hvh-ticket-modal__dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 18px;
  }

  .hvh-ticket-modal__header {
    min-height: 56px;
    padding-left: 16px;
  }

  .hvh-ticket-modal__stage {
    max-height: calc(100dvh - 112px);
  }

  .hvh-ticket-modal__frame {
    height: calc(100dvh - 126px);
    min-height: 420px;
  }

  .hvh-ticket-modal__fallback {
    padding-inline: 12px;
  }
}

@media (max-height: 620px) and (min-width: 681px) {
  .hvh-ticket-modal__stage,
  .hvh-ticket-modal__frame {
    min-height: 300px;
  }
}
