/* Checkout Email Verification for WHMCS - checkout page styles.
   Colours use transparency so they sit well on light and dark themes (Lagom dark mode included). */

.cev-block,
.cev-block[hidden],
.cev-block [hidden],
.cev-gate-hint[hidden] {
  box-sizing: border-box;
}

.cev-block[hidden],
.cev-block [hidden],
.cev-gate-hint[hidden] {
  display: none !important;
}

.cev-block {
  margin: 8px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 6px;
  background: rgba(128, 128, 128, 0.06);
  font-size: 14px;
  line-height: 1.5;
}

.cev-block.cev-verified {
  border-color: rgba(40, 167, 69, 0.7);
  background: rgba(40, 167, 69, 0.08);
}

.cev-intro {
  margin: 0 0 10px;
  opacity: 0.85;
}

.cev-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.cev-code-row {
  margin-top: 10px;
}

.cev-code-label {
  margin: 0;
  font-weight: 600;
}

.cev-block .cev-input-code {
  width: 9em;
  max-width: 100%;
  letter-spacing: 0.2em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cev-block .cev-btn {
  white-space: nowrap;
}

.cev-status {
  font-weight: 600;
}

.cev-status--ok {
  color: #28a745;
}

.cev-status--info {
  font-weight: 400;
  opacity: 0.9;
}

.cev-msg {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 13px;
}

.cev-msg--error {
  color: #b02a37;
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.35);
}

.cev-msg--success {
  color: #1e7e34;
  background: rgba(40, 167, 69, 0.12);
  border-color: rgba(40, 167, 69, 0.35);
}

.cev-msg--info {
  color: #0c6f8f;
  background: rgba(23, 162, 184, 0.12);
  border-color: rgba(23, 162, 184, 0.35);
}

.cev-gate-hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: #b02a37;
}

.cev-locked {
  opacity: 0.7;
  cursor: not-allowed;
}

.cev-block .cev-btn-resend {
  padding-left: 0;
  padding-right: 0;
}

.cev-block .cev-btn-resend[disabled] {
  opacity: 0.6;
  cursor: default;
}

.cev-noscript {
  margin: 10px 0;
}

@media (max-width: 480px) {
  .cev-block .cev-input-code {
    width: 100%;
  }
}
