.pdt-firewall-diagnostics {
  border-color: rgba(37, 99, 235, 0.18);
}

.pdt-firewall-diagnostics__mode {
  align-items: center;
  background: #eef2ff;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 999px;
  color: #3730a3;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  line-height: 1;
  padding: 9px 12px;
  white-space: nowrap;
}

.pdt-firewall-diagnostics__notice {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(245, 243, 255, 0.96));
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 16px;
  color: #334155;
  display: flex;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 16px;
}

.pdt-firewall-diagnostics__notice .dashicons {
  color: #2563eb;
  flex: 0 0 auto;
  margin-top: 1px;
}

.pdt-firewall-diagnostics__notice p {
  margin: 0;
}

.pdt-firewall-diagnostics__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pdt-firewall-diagnostics__actions .button {
  min-height: 38px;
}

.pdt-firewall-diagnostics__actions .button.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.pdt-firewall-diagnostics__results {
  margin-top: 18px;
}

.pdt-firewall-diagnostics-message {
  border-radius: 14px;
  font-weight: 600;
  padding: 13px 15px;
}

.pdt-firewall-diagnostics-message.is-info {
  background: #eff6ff;
  color: #1d4ed8;
}

.pdt-firewall-diagnostics-message.is-success {
  background: #ecfdf5;
  color: #047857;
}

.pdt-firewall-diagnostics-message.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

.pdt-firewall-diagnostics-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

.pdt-firewall-diagnostics-summary__item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #334155;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 5px;
  padding: 12px;
}

.pdt-firewall-diagnostics-summary__item strong {
  color: #0f172a;
  font-size: 12px;
  text-transform: uppercase;
}

.pdt-firewall-diagnostics-group {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  margin-top: 14px;
  overflow: hidden;
}

.pdt-firewall-diagnostics-group h4 {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  color: #0f172a;
  font-size: 14px;
  margin: 0;
  padding: 14px 16px;
}

.pdt-firewall-diagnostics-table {
  border: 0;
}

.pdt-firewall-diagnostics-table th,
.pdt-firewall-diagnostics-table td {
  vertical-align: top;
}

.pdt-firewall-diagnostics-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 7px 9px;
  text-transform: uppercase;
}

.pdt-firewall-diagnostics-status.is-passed {
  background: #dcfce7;
  color: #166534;
}

.pdt-firewall-diagnostics-status.is-failed {
  background: #fee2e2;
  color: #991b1b;
}

.pdt-firewall-diagnostics-details {
  margin: 0;
  padding-left: 18px;
}

.pdt-firewall-diagnostics-details li {
  margin: 0 0 4px;
}

@media (max-width: 960px) {
  .pdt-firewall-diagnostics-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pdt-firewall-diagnostics__actions .button {
    justify-content: center;
    width: 100%;
  }

  .pdt-firewall-diagnostics-summary {
    grid-template-columns: 1fr;
  }
}
