.ledl-bfmc-status,
.ledl-bfmc-email-status {
  box-sizing: border-box;
  width: 100%;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.ledl-bfmc-email-panel {
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 16px;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
}

.ledl-bfmc-code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}

.ledl-bfmc-code-row[hidden] {
  display: none !important;
}

.ledl-bfmc-code-input {
  box-sizing: border-box;
  min-width: 0;
  flex: 1 1 180px;
  padding: 10px 12px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  font-size: 16px;
  letter-spacing: 0.18em;
}

.ledl-bfmc-action {
  box-sizing: border-box;
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
}

.ledl-bfmc-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ledl-bfmc-idle {
  color: #4b5563;
  background: #f3f4f6;
  border-color: #d1d5db;
}

.ledl-bfmc-checking {
  color: #744210;
  background: #fffaf0;
  border-color: #f6ad55;
}

.ledl-bfmc-valid {
  color: #166534;
  background: #f0fdf4;
  border-color: #86efac;
}

.ledl-bfmc-invalid {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}

.ledl-bfmc-disabled {
  cursor: not-allowed !important;
  opacity: 0.55 !important;
}

@media (max-width: 520px) {
  .ledl-bfmc-code-row {
    flex-direction: column;
  }

  .ledl-bfmc-code-input,
  .ledl-bfmc-action {
    width: 100%;
  }
}

.ledl-bfmc-diagnostic {
  position: fixed;
  z-index: 999999;
  right: 16px;
  bottom: 16px;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 2px solid #dc2626;
  border-radius: 8px;
  color: #7f1d1d;
  background: #fef2f2;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 1.45;
}
