/* Thunder EV — product certification badges & picker */
.tev-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
}

.tev-cert-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  border: 1px solid transparent;
}

.tev-cert-badge--gov {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.tev-cert-badge--ip {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
}

.tev-cert-badge--safety {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.tev-cert-badge--charge {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}

.tev-cert-badge--std {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}

.tev-cert-badge--default {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.tev-cert-badge--more {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}

.tev-cert-section {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
}

.tev-cert-section__title {
  font-size: 1.05rem;
  color: #166534;
  margin: 0 0 0.75rem;
  font-weight: 800;
}

.tev-cert-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.tev-cert-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 600;
}

.tev-cert-check {
  color: #16a34a;
  font-weight: 800;
}

.tev-cert-verified {
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  margin-left: 0.25rem;
}

/* Picker (vendor/admin forms) */
.tev-cert-picker__fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  margin: 0 0 1rem;
}

.tev-cert-picker__fieldset legend {
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0 0.35rem;
}

.tev-cert-picker__hint {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.tev-cert-picker__search {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.tev-cert-picker__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 160px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.tev-cert-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s;
}

.tev-cert-option.is-selected,
.tev-cert-option:has(input:checked) {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.tev-cert-option input {
  width: auto;
  margin: 0;
}

.tev-cert-picker__other {
  margin-top: 0.75rem;
}

.tev-cert-picker__other label {
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

.tev-cert-picker__custom-row {
  display: flex;
  gap: 0.5rem;
}

.tev-cert-picker__custom-input {
  flex: 1;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
}

.tev-cert-picker__custom-add {
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.tev-cert-picker__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  min-height: 1.5rem;
}

.tev-cert-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem 0.25rem 0.65rem;
  background: #1e293b;
  color: #f8fafc;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tev-cert-tag__remove {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
}

/* Marketplace filter bar */
.tev-mp-cert-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.tev-mp-cert-filter__label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}

.tev-mp-cert-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.tev-mp-cert-chip.active,
.tev-mp-cert-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* Simple certificate dropdown (Associate / Admin product forms) */
.tev-cert-simple {
  margin: 0 0 1rem;
}

.tev-cert-simple__other {
  margin-top: 0.5rem;
}

.tev-cert-simple__other[hidden] {
  display: none !important;
}

.tev-cert-simple__other-input {
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  .tev-cert-picker__options {
    max-height: 200px;
  }
  .tev-mp-cert-filter {
    flex-direction: column;
    align-items: stretch;
  }
}
