dialog.telelive-popup {
  padding: 0;
  overflow: hidden;
}
dialog.telelive-popup[open] {
  display: flex;
  flex-direction: column;
}
.telelive-popup > .popup-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 20px;
  border-bottom: 1px solid #dce5f5;
}
.popup-header :is(h2, .eyebrow) {
  margin: 0;
}
.popup-header > button {
  flex: none;
  margin-inline-start: auto;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #cbd8ed;
  border-radius: 9px;
  background: #eef3fd;
  color: #162955;
  font:
    600 22px/1 system-ui,
    sans-serif;
  cursor: pointer;
}
.telelive-popup > .popup-body {
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
  padding: 16px 20px 20px;
}
.account-dialog > .popup-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 0;
}
dialog.discard-dialog {
  width: min(410px, calc(100% - 28px));
  margin: auto;
  border: 1px solid #cbd8ed;
  background: white;
  color: #172a56;
}
.discard-dialog::backdrop {
  background: #0d163680;
}
.discard-dialog h2 {
  font-size: 1.2rem;
}
.discard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.discard-actions button {
  padding: 8px 12px;
  border: 1px solid #cbd8ed;
  border-radius: 8px;
  background: #eef3fd;
  color: #172a56;
  font: inherit;
  cursor: pointer;
}
.discard-actions [data-discard] {
  background: #a51d32;
  color: white;
  border-color: #a51d32;
}
dialog.telelive-cookie-dialog.telelive-popup {
  padding: 0;
}
.touch-booking.telelive-popup > .popup-body {
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

/* Center modal dialogs in the viewport, including the mobile request form. */
dialog.telelive-popup[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
}
dialog.touch-booking.telelive-popup {
  border-radius: 22px;
}
dialog.account-dialog.telelive-popup {
  height: min(760px, calc(100dvh - 24px));
}
#viewing-rules-dialog {
  width: min(640px, calc(100% - 24px));
  text-align: start;
}
#viewing-rules-dialog [data-viewing-rules] {
  padding-inline-start: 1.3rem;
}
#viewing-rules-dialog li {
  padding-inline-start: 0.35rem;
  margin-block: 1rem;
}
#viewing-rules-dialog li h3 {
  margin-block: 0 0.4rem;
}
#viewing-rules-dialog li p {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
}
#viewing-rules-dialog form {
  margin-block-start: 1.25rem;
}
#viewing-rules-dialog button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
