.ticket-support-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.ticket-support-link[hidden],
.ticket-support-dialog :is(iframe, p)[hidden] {
  display: none;
}

.site-support-launcher {
  position: fixed;
  z-index: 200;
  inset-inline-end: max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  padding-inline: .95rem;
  border: 1px solid #d8c89f;
  border-radius: 1.5rem;
  background: #2d3d28;
  color: #faf4e3;
  box-shadow: 0 .2rem .8rem rgb(28 19 7 / .2);
  font: 600 .875rem/1.2 system-ui, sans-serif;
  text-decoration: none;
}

.site-support-launcher:is(:hover, :focus-visible) {
  background: #1c1307;
  color: #faf4e3;
}

.site-support-launcher:focus-visible {
  outline: 2px solid #faf4e3;
  outline-offset: -4px;
}

.ticket-support-dialog {
  box-sizing: border-box;
  width: min(30rem, calc(100% - 1rem));
  max-width: none;
  height: min(40rem, calc(100vh - 1rem));
  height: min(40rem, calc(100dvh - 1rem));
  max-height: none;
  padding: 0;
  border: 1px solid #d8c89f;
  border-radius: .5rem;
  background: #fff;
  color: #1c1307;
  overflow: hidden;
}

.ticket-support-dialog[open] {
  display: flex;
  flex-direction: column;
}

.ticket-support-dialog::backdrop {
  background: rgb(28 19 7 / .6);
}

.ticket-support-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 0 .75rem;
  background: #faf4e3;
  border-bottom: 1px solid #d8c89f;
}

.ticket-support-dialog__header button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 1.6rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.ticket-support-dialog iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
}

.ticket-support-dialog__status {
  margin: 1rem;
}
