.pdt-firewall-section {
  max-width: 1280px;
}

.pdt-firewall-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 28px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(94, 234, 212, 0.2), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #1f2a76 48%, #4f46e5 100%);
  box-shadow: 0 24px 60px rgba(31, 42, 118, 0.22);
}

.pdt-firewall-hero h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
}

.pdt-firewall-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.pdt-firewall-eyebrow {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pdt-firewall-hero__status {
  min-width: 220px;
  align-self: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.pdt-firewall-hero__status span,
.pdt-firewall-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 9px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pdt-firewall-hero__status .is-on {
  color: #065f46;
  background: #d1fae5;
}

.pdt-firewall-hero__status .is-off {
  color: #991b1b;
  background: #fee2e2;
}

.pdt-firewall-hero__status strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.pdt-firewall-safe-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: #eff6ff;
}

.pdt-firewall-safe-note p {
  margin: 0;
  color: #1e3a8a;
}

.pdt-firewall-card {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.pdt-firewall-card h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
}

.pdt-firewall-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.pdt-firewall-details summary::-webkit-details-marker {
  display: none;
}

.pdt-firewall-details summary strong,
.pdt-firewall-details summary small {
  display: block;
}

.pdt-firewall-details summary strong {
  color: #111827;
  font-size: 17px;
}

.pdt-firewall-details summary small {
  margin-top: 5px;
  color: #64748b;
  line-height: 1.45;
}

.pdt-firewall-details summary .dashicons {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #4f46e5;
  background: #eef2ff;
  font-size: 18px;
  line-height: 34px;
  text-align: center;
  transition: transform 0.2s ease;
}

.pdt-firewall-details[open] summary {
  margin-bottom: 16px;
}

.pdt-firewall-details[open] summary .dashicons {
  transform: rotate(180deg);
}

.pdt-firewall-card p {
  color: #64748b;
}

.pdt-firewall-card__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.pdt-firewall-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.pdt-firewall-toggle,
.pdt-firewall-check,
.pdt-firewall-mode-card {
  cursor: pointer;
}

.pdt-firewall-toggle {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0 20px;
}

.pdt-firewall-toggle input {
  position: absolute;
  opacity: 0;
}

.pdt-firewall-toggle > span {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.pdt-firewall-toggle > span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.pdt-firewall-toggle input:checked + span {
  background: #4f46e5;
}

.pdt-firewall-toggle input:checked + span::after {
  transform: translateX(24px);
}

.pdt-firewall-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pdt-firewall-mode-card input {
  position: absolute;
  opacity: 0;
}

.pdt-firewall-mode-card span {
  display: block;
  min-height: 118px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pdt-firewall-mode-card strong,
.pdt-firewall-mode-card small {
  display: block;
}

.pdt-firewall-mode-card strong {
  margin-bottom: 8px;
  color: #111827;
}

.pdt-firewall-mode-card small {
  color: #64748b;
  line-height: 1.5;
}

.pdt-firewall-mode-card input:checked + span {
  border-color: #4f46e5;
  background: #eef2ff;
  box-shadow: 0 18px 35px rgba(79, 70, 229, 0.16);
}

.pdt-firewall-check {
  display: flex;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #f8fafc;
}

.pdt-firewall-check input {
  margin-top: 3px;
}

.pdt-firewall-check strong,
.pdt-firewall-check small {
  display: block;
}

.pdt-firewall-check strong {
  margin-bottom: 4px;
  color: #0f172a;
}

.pdt-firewall-check small {
  color: #64748b;
  line-height: 1.45;
}

.pdt-firewall-number-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pdt-firewall-number-grid label,
.pdt-firewall-card textarea {
  display: block;
  width: 100%;
}

.pdt-firewall-number-grid span {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-weight: 700;
}

.pdt-firewall-number-grid input,
.pdt-firewall-card select,
.pdt-firewall-card textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.pdt-firewall-card .pdt-firewall-grid .pdt-firewall-number-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.pdt-firewall-card select {
  max-width: 100%;
  min-height: 42px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.pdt-firewall-card textarea {
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 10px 12px;
  font-family: Consolas, Monaco, monospace;
}

.pdt-firewall-submit {
  margin-top: 0;
}

.pdt-firewall-events {
  margin-top: 8px;
}

.pdt-firewall-events__actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.pdt-firewall-icon-button {
  position: relative;
  display: inline-block !important;
  height: 38px;
  width: 38px;
  min-width: 38px;
  padding: 0 !important;
  line-height: 1 !important;
}

.pdt-firewall-icon-button .dashicons {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 20px !important;
  line-height: 20px !important;
  transform: translate(-50%, -50%);
}

.pdt-firewall-icon-button .dashicons::before {
  display: block;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 20px !important;
  text-align: center;
}

.pdt-firewall-table-wrap {
  overflow-x: auto;
}

.pdt-firewall-event-row.is-hidden {
  display: none;
}

.pdt-firewall-events__load {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.pdt-firewall-load-more {
  min-width: 140px;
}

.pdt-firewall-pill {
  margin: 0;
  color: #3730a3;
  background: #e0e7ff;
}

.pdt-firewall-empty {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
}

.pdt-firewall-modal[hidden] {
  display: none;
}

.pdt-firewall-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pdt-firewall-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.pdt-firewall-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.pdt-firewall-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.pdt-firewall-modal__head h3 {
  margin: 6px 0 8px;
  color: #0f172a;
  font-size: 22px;
}

.pdt-firewall-modal__head p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.pdt-firewall-modal__eyebrow {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #3730a3;
  background: #eef2ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdt-firewall-modal__close {
  flex: 0 0 auto;
  color: #64748b;
  text-decoration: none;
}

.pdt-firewall-modal__close .dashicons {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 24px;
  line-height: 30px;
}

.pdt-firewall-retention-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pdt-firewall-retention-option {
  cursor: pointer;
}

.pdt-firewall-retention-option input {
  position: absolute;
  opacity: 0;
}

.pdt-firewall-retention-option span {
  display: block;
  min-height: 96px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pdt-firewall-retention-option strong,
.pdt-firewall-retention-option small {
  display: block;
}

.pdt-firewall-retention-option strong {
  margin-bottom: 6px;
  color: #0f172a;
}

.pdt-firewall-retention-option small {
  color: #64748b;
  line-height: 1.45;
}

.pdt-firewall-retention-option input:checked + span {
  border-color: #4f46e5;
  background: #eef2ff;
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.14);
}

.pdt-firewall-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .pdt-firewall-grid,
  .pdt-firewall-mode-grid {
    grid-template-columns: 1fr;
  }

  .pdt-firewall-number-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pdt-firewall-hero,
  .pdt-firewall-card__head,
  .pdt-firewall-modal__head {
    flex-direction: column;
  }

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

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

  .pdt-firewall-modal__actions {
    flex-direction: column-reverse;
  }

  .pdt-firewall-modal__actions .button {
    width: 100%;
    text-align: center;
  }
}
