.frc-captcha * {
  /* Mostly a CSS reset so existing website styles don't clash */
  margin: 0;
  padding: 0;
  border: 0;
  text-align: initial;
  border-radius: px;
  filter: none !important;
  transition: none !important;
  font-weight: normal;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  background-color: initial;
  color: white;
}

.frc-captcha {
  position: relative;
  min-width: 100%;
  max-width: 312px;
  border: 0.15rem solid var(--border-color1);
  border-radius: 0.4rem;
  padding-bottom: 12px;
  background-color: none;
}

.frc-captcha b {
  font-weight: bold;
}

.frc-container {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.frc-icon {
  fill: var(--text-color1);
  stroke: var(--text-color1);
  flex-shrink: 0;
  height: 2rem;
  width: 2rem;
  margin: 8px 8px 0 8px;
}

.frc-icon.frc-warning {
  fill: #c00;
}

.frc-success .frc-icon {
  animation: frc-fade-in 1s both ease-in;
}

.frc-content {
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  margin: 4px 6px 0 0;
  overflow-x: auto;
  flex-grow: 1;
}

.frc-banner {
  position: absolute;
  bottom: 0px;
  right: 6px;
  line-height: 1;
}

.frc-banner * {
  font-size: 10px;
  opacity: 0.8;
  text-decoration: none;
}

.frc-progress {
  -webkit-appearance: auto;
  -moz-appearance: auto;
  appearance: auto;
  margin: 3px 0;
  height: 15px;
  border: none;
  background-color: none;
  color: black;
  width: 100%;
  transition: all 0.5s linear;
}

.frc-progress::-webkit-progress-bar {
  background: none;
}

.frc-progress::-webkit-progress-value {
  background: white;
}

.frc-progress::-moz-progress-bar {
  background: white;
}

.frc-button {
  cursor: pointer;
  padding: 2px 6px;
  color: var(--text-color1);
  background-color: none;
  border: 1px solid transparent;
  text-align: center;
  font-weight: 600;
  text-transform: none;
}

.frc-button:focus {
  border: 1px solid #333;
}

.frc-button:hover {
  border: 1px solid #999;
}

.frc-captcha-solution {
  display: none;
}

.frc-err-url {
  text-decoration: underline;
  font-size: 0.9em;
}

/* Dark theme */

.dark.frc-captcha {
  color: #fff;
  background-color: #222;
  border-color: #333;
}

.dark.frc-captcha * {
  color: #fff;
}

.dark.frc-captcha button {
  background-color: #444;
}

.dark .frc-icon {
  fill: #fff;
  stroke: #fff;
}

.dark .frc-progress {
  background-color: #444;
}

.dark .frc-progress::-webkit-progress-bar {
  background: #444;
}

.dark .frc-progress::-webkit-progress-value {
  background: #ddd;
}

.dark .frc-progress::-moz-progress-bar {
  background: #ddd;
}

@keyframes frc-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
