.container {
  position: fixed;
  display: block;
  padding: 2px;
  font-size: 10pt;
  border-left: none;
  border-top: none;
  z-index: 999;
  background-color: var(--challenge-modal-background-color);
  border: var(--challenge-modal-border);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.title {
  font-size: var(--challenge-modal-title-font-size);
  text-align: center;
  margin-bottom: 1px;
  padding: 0;
  height: 18px;
  line-height: 18px;
  cursor: move;
  font-weight: var(--challenge-modal-title-font-weight);
  background-color: var(--challenge-modal-title-background-color);
  color: var(--challenge-modal-title-text-color);
  border: var(--challenge-modal-title-border);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.closeIcon {
  all: unset;
  float: right;
  cursor: pointer;
  margin-bottom: -4px;
  width: 18px;
  height: 18px;
  border: none;
  image-rendering: pixelated;
  background-image: var(--close-button-background-image);
  background-position: center;
  background-repeat: no-repeat;
}

.container input, .container textarea {
  border: 1px solid #aaa;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  outline: medium none;
  width: 298px;
  filter: var(--filter80);
  padding: 2px;
  margin-bottom: 1px;
}

.content textarea {
  vertical-align: top;
}

.container input[type="text"], .container textarea {
  border: var(--post-form-field-input-border, 1px solid #aaa);
  font-family: var(--post-form-field-font-family, revert);
  appearance: var(--post-form-field-input-appearance, revert);
  outline: var(--post-form-field-input-outline, revert);
  background-color: var(--post-form-field-input-background-color, revert);
  color: var(--post-form-field-input-color, revert);
  padding: 2px 4px 3px;
  font-size: 10pt;
}

.container input[type="text"]:focus, .container textarea:focus {
  border: var(--post-form-field-input-focus-border, revert);
}

.challengeAnswer {
  font-size: 11px !important;
  padding: 0px 2px;
  font-family: monospace !important;
}

.challengeMediaWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px 0;
}

.challengeFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.challengeFooter button {
  cursor: pointer;
  filter: var(--filter80);
  text-transform: capitalize;
}

.iframeContainer {
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
}

.iframeWrapper {
  width: 500px;
  height: 500px;
  margin: 10px 0;
}

.iframeConsentWrapper {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 10px 8px;
}

.iframeConsentMessage {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.35;
}

.iframeTrustCheckbox {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  line-height: 1.3;
}

.iframeTrustCheckbox input[type="checkbox"] {
  width: auto;
  margin: 1px 0 0;
  flex: 0 0 auto;
}

.iframe {
  width: 100%;
  height: 100%;
  border: var(--challenge-modal-border);
  background-color: var(--challenge-modal-background-color);
}

.iframeFooter {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.iframeFooter span {
  display: inline-flex;
  gap: 5px;
}

.iframeInstruction {
  font-size: 11px;
  color: var(--text-secondary, #666);
}

.iframeCloseButton {
  align-self: flex-start;
}

@media (max-width: 640px) {
  .title {
    cursor: default;
  }

  .iframeContainer {
    width: calc(100% - 10px);
    max-width: calc(100% - 15px);
  }

  .iframeWrapper {
    width: 100%;
    height: 500px;
    margin: 5px 0;
  }

  .iframe {
    border-left: none;
    border-right: none;
  }
}
