.evcaptcha {
  --evcaptcha-accent: var(--main-color, #004f9f);
  --evcaptcha-error: #dc3545;
  margin-bottom: 1.5rem;
}

.evcaptcha__question {
  margin-bottom: .5rem;
}

.evcaptcha__choices {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  transition: opacity .2s;
}

.evcaptcha.is-loading .evcaptcha__choices {
  opacity: .4;
  pointer-events: none;
}

.evcaptcha__choice {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  padding: .3rem;
  background: #fff;
  border: 2px solid #dfe3e8;
  border-radius: .5rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.evcaptcha__choice:hover {
  border-color: var(--evcaptcha-accent);
}

.evcaptcha__choice:focus-visible {
  outline: 2px solid var(--evcaptcha-accent);
  outline-offset: 2px;
}

.evcaptcha__choice.is-selected {
  border-color: var(--evcaptcha-accent);
  box-shadow: 0 0 0 3px rgba(0, 79, 159, .2);
  transform: scale(1.05);
}

.evcaptcha__choice img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.evcaptcha.is-invalid .evcaptcha__choice {
  border-color: var(--evcaptcha-error);
}

.evcaptcha__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .5rem;
}

.evcaptcha__error {
  visibility: hidden;
  color: var(--evcaptcha-error);
  font-size: .9rem;
}

.evcaptcha.is-invalid .evcaptcha__error {
  visibility: visible;
}

.evcaptcha__reload {
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  color: var(--evcaptcha-accent);
  font-size: .9rem;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .evcaptcha__choice {
    width: 3.75rem;
    height: 3.75rem;
  }
}
