.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-new-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: #4338ca;
  background: #eef2ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.pdt-firewall-new-badge.is-on-primary {
  margin-left: 2px;
  border-color: rgba(255, 255, 255, 0.45);
  color: #312e81;
  background: #fff;
}

.pdt-firewall-integrity-scan {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rtl .pdt-firewall-new-badge {
  margin-right: 6px;
  margin-left: 0;
}

.rtl .pdt-firewall-new-badge.is-on-primary {
  margin-right: 2px;
}

.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-server-hardening {
  position: relative;
  overflow: hidden;
  border-color: #c7d2fe;
  background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
}

.pdt-firewall-server-hardening::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #2563eb);
  content: "";
}

.pdt-firewall-server-hardening__status {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
}

.pdt-firewall-server-hardening__status.is-active {
  background: #dcfce7;
  color: #166534;
}

.pdt-firewall-server-hardening__status.is-malformed,
.pdt-firewall-server-hardening__status.is-unavailable {
  background: #fee2e2;
  color: #991b1b;
}

.pdt-firewall-server-hardening__status.is-drifted {
  background: #fef3c7;
  color: #92400e;
}

.pdt-firewall-server-hardening__server,
.pdt-firewall-server-hardening__error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  padding: 13px 15px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
}

.pdt-firewall-server-hardening__server .dashicons {
  color: #2563eb;
}

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

.pdt-firewall-server-hardening__server small {
  margin-top: 3px;
  color: #64748b;
  line-height: 1.45;
}

.pdt-firewall-server-hardening__rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 10px;
  transition: opacity 0.2s ease;
}

.pdt-firewall-server-hardening__rules.is-disabled {
  opacity: 0.52;
}

.pdt-firewall-server-hardening__error {
  border-color: #fecaca;
  background: #fef2f2;
}

.pdt-firewall-server-hardening__error .dashicons,
.pdt-firewall-server-hardening__error p {
  color: #991b1b;
}

.pdt-firewall-server-hardening__error p {
  margin: 0;
}

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

.pdt-firewall-integrity__badge,
.pdt-firewall-integrity__severity {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pdt-firewall-integrity__badge.is-clean {
  color: #065f46;
  background: #d1fae5;
}

.pdt-firewall-integrity__badge.is-pending {
  color: #475569;
  background: #e2e8f0;
}

.pdt-firewall-integrity__badge.has-issues,
.pdt-firewall-integrity__severity.is-critical {
  color: #991b1b;
  background: #fee2e2;
}

.pdt-firewall-integrity__severity.is-warning {
  color: #92400e;
  background: #fef3c7;
}

.pdt-firewall-integrity__severity.is-info {
  color: #1e40af;
  background: #dbeafe;
}

.pdt-firewall-integrity__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.pdt-firewall-integrity__stats span {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #64748b;
  background: #f8fafc;
  font-size: 12px;
}

.pdt-firewall-integrity__stats strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 22px;
}

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

.pdt-firewall-integrity__summary > span {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-content: center;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.pdt-firewall-integrity__summary > span > .dashicons {
  grid-row: 1 / span 2;
  align-self: center;
}

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

.pdt-firewall-integrity__summary strong {
  color: #0f172a;
  font-size: 14px;
}

.pdt-firewall-integrity__summary > span:nth-last-child(-n+3) strong {
  font-size: 22px;
}

.pdt-firewall-integrity__summary small {
  color: #64748b;
  font-size: 11px;
}

.pdt-firewall-integrity__summary .is-good {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.pdt-firewall-integrity__summary .is-good .dashicons,
.pdt-firewall-integrity__summary .is-good strong {
  color: #047857;
}

.pdt-firewall-integrity__summary .needs-review {
  border-color: #fde68a;
  background: #fffbeb;
}

.pdt-firewall-integrity__summary .needs-review .dashicons,
.pdt-firewall-integrity__summary .needs-review strong {
  color: #92400e;
}

.pdt-firewall-integrity__summary .is-critical {
  border-color: #fecaca;
  background: #fef2f2;
}

.pdt-firewall-integrity__summary .is-critical strong {
  color: #991b1b;
}

.pdt-firewall-integrity__summary .is-neutral {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.pdt-firewall-integrity__summary .is-neutral strong,
.pdt-firewall-integrity__summary .is-neutral .dashicons {
  color: #3730a3;
}

.pdt-firewall-integrity__components {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 4px;
}

.pdt-firewall-integrity__components > span {
  flex: 0 0 auto;
  min-width: 210px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

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

.pdt-firewall-integrity__components strong {
  margin-bottom: 3px;
  color: #334155;
}

.pdt-firewall-integrity__components small {
  color: #64748b;
}

.pdt-firewall-integrity__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.pdt-firewall-integrity__actions p {
  flex: 1 1 360px;
  margin: 0;
  font-size: 12px;
}

.pdt-firewall-integrity__progress {
  margin: 2px 0 20px;
  padding: 16px;
  border: 1px solid #c7d2fe;
  border-radius: 15px;
  background: #eef2ff;
}

.pdt-firewall-integrity__progress.has-error {
  border-color: #fecaca;
  background: #fef2f2;
}

.pdt-firewall-integrity__progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: #312e81;
}

.pdt-firewall-integrity__progress.has-error .pdt-firewall-integrity__progress-head {
  color: #991b1b;
}

.pdt-firewall-integrity__progress-track {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #c7d2fe;
  box-shadow: inset 0 1px 2px rgba(49, 46, 129, 0.12);
}

.pdt-firewall-integrity__progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  transition: width 0.22s ease;
}

.pdt-firewall-integrity__progress small {
  display: block;
  margin-top: 9px;
  color: #6366f1;
}

.pdt-firewall-integrity__findings {
  margin-top: 6px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #f8fafc;
}

.pdt-firewall-integrity__findings[open] {
  background: #fff;
}

.pdt-firewall-integrity__findings .pdt-firewall-table-wrap {
  margin-top: 14px;
}

.pdt-firewall-integrity td code {
  word-break: break-all;
}

.pdt-firewall-finding-component {
  display: block;
  min-width: 150px;
  color: #334155;
}

.pdt-firewall-modal__dialog.pdt-firewall-findings-modal__dialog {
  display: flex;
  flex-direction: column;
  width: min(1480px, 100%);
  height: min(820px, calc(100vh - 72px));
  height: min(820px, calc(100dvh - 72px));
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
  padding: clamp(22px, 2.2vw, 34px);
  overflow: hidden;
  border-radius: 24px;
}

.pdt-firewall-findings-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 0.7fr)) minmax(220px, 1.4fr);
  flex: 0 0 auto;
  gap: 14px;
  margin: 2px 0 12px;
}

.pdt-firewall-findings-filters label > span {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.pdt-firewall-findings-filters select,
.pdt-firewall-findings-filters input {
  width: 100%;
  max-width: none;
}

.pdt-firewall-findings-count {
  flex: 0 0 auto;
  margin: 8px 0;
  color: #64748b;
  font-size: 12px;
}

.pdt-firewall-findings-table {
  flex: 1 1 auto;
  min-height: 240px;
  overflow: auto;
  max-height: none;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.pdt-firewall-findings-table table {
  width: 100%;
  table-layout: fixed;
  border: 0;
}

.pdt-firewall-findings-table th:nth-child(1),
.pdt-firewall-findings-table td:nth-child(1) {
  width: 96px;
}

.pdt-firewall-findings-table th:nth-child(2),
.pdt-firewall-findings-table td:nth-child(2) {
  width: 19%;
}

.pdt-firewall-findings-table th:nth-child(3),
.pdt-firewall-findings-table td:nth-child(3) {
  width: 18%;
}

.pdt-firewall-findings-table th:nth-child(4),
.pdt-firewall-findings-table td:nth-child(4) {
  width: 29%;
}

.pdt-firewall-findings-table td,
.pdt-firewall-findings-table th {
  box-sizing: border-box;
  padding: 13px 14px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.pdt-firewall-findings-table td code {
  display: inline;
  padding: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  background: transparent;
}

.pdt-firewall-findings-table thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  border-bottom: 1px solid #cbd5e1;
  background: #f8fafc;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.pdt-firewall-findings-table tr[hidden] {
  display: none;
}

.pdt-firewall-findings-empty {
  margin: 0;
  padding: 28px;
  color: #64748b;
  text-align: center;
}

.pdt-firewall-findings-more {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 12px !important;
}

.pdt-firewall-modal__backdrop {
  border: 0;
  cursor: default;
}

.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;
}

html.pdt-firewall-modal-open {
  overflow: hidden;
}

.pdt-firewall-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}

.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;
  box-sizing: border-box;
  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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #64748b;
  background: #f1f5f9;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.pdt-firewall-modal__close:hover,
.pdt-firewall-modal__close:focus-visible {
  color: #3730a3;
  background: #e0e7ff;
  transform: translateY(-1px);
}

.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;
}

/* Country access is intentionally more prominent than routine settings. */
.pdt-firewall-country {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  border-color: #c7d2fe;
  background:
    radial-gradient(circle at 100% 0, rgba(99, 102, 241, 0.13), transparent 34%),
    linear-gradient(145deg, #fff 0%, #fbfdff 62%, #f5f7ff 100%);
  box-shadow: 0 18px 44px rgba(49, 46, 129, 0.1);
}

.pdt-firewall-country::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #4f46e5, #7c3aed);
  content: "";
}

.pdt-firewall-country__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: #4338ca;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdt-firewall-country__eyebrow .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}

.pdt-firewall-country__status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
}

.pdt-firewall-country__status.is-ready {
  border-color: #a7f3d0;
  color: #047857;
  background: #ecfdf5;
}

.pdt-firewall-country__status.is-queued,
.pdt-firewall-country__status.is-updating {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.pdt-firewall-country__status.is-error {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

.pdt-firewall-country__status.is-paused {
  border-color: #fde68a;
  color: #92400e;
  background: #fffbeb;
}

.pdt-firewall-country__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.pdt-firewall-country__summary > span {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

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

.pdt-firewall-country__summary strong {
  overflow: hidden;
  color: #172554;
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.pdt-firewall-country__summary small {
  margin-top: 4px;
  color: #64748b;
}

.pdt-firewall-country__picker {
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #fff;
}

.pdt-firewall-country__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pdt-firewall-country__toolbar label {
  position: relative;
  flex: 1 1 340px;
  max-width: 420px;
}

.pdt-firewall-country__toolbar .dashicons {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: #64748b;
  font-size: 18px;
  line-height: 18px;
  pointer-events: none;
}

.pdt-firewall-country__toolbar input[type="search"] {
  width: 100%;
  min-height: 38px;
  padding-left: 38px;
  border-color: #cbd5e1;
  border-radius: 10px;
  background: #fff;
}

.pdt-firewall-country__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 324px;
  padding: 12px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c7d2fe transparent;
}

.pdt-firewall-country__list > label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.pdt-firewall-country__list input {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  margin: -8px 0 0;
}

.pdt-firewall-country__list label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  box-sizing: border-box;
  padding: 8px 10px 8px 38px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pdt-firewall-country__list label:hover > span {
  border-color: #a5b4fc;
  background: #f8faff;
}

.pdt-firewall-country__list input:focus-visible + span {
  outline: 2px solid #4f46e5;
  outline-offset: 1px;
}

.pdt-firewall-country__list input:checked + span {
  border-color: #818cf8;
  background: #eef2ff;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.08);
}

.pdt-firewall-country__list strong {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdt-firewall-country__list small {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pdt-firewall-country__empty {
  margin: 0;
  padding: 22px;
  color: #64748b;
  text-align: center;
}

.pdt-firewall-country__selected {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5f7ff 0%, #eef2ff 100%);
}

.pdt-firewall-country__selected[hidden] {
  display: none !important;
}

.pdt-firewall-country__selected-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  color: #4338ca;
  font-size: 12px;
}

.pdt-firewall-country__selected-label .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.pdt-firewall-country__selected-list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.pdt-firewall-country__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin: 0;
  padding: 4px 7px 4px 10px;
  border: 1px solid #a5b4fc;
  border-radius: 999px;
  color: #312e81;
  background: #fff;
  box-shadow: 0 1px 2px rgba(49, 46, 129, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.pdt-firewall-country__chip small {
  color: #6366f1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pdt-firewall-country__chip-remove {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #6366f1;
  background: #eef2ff;
  font-size: 15px;
  line-height: 1;
}

.pdt-firewall-country__chip:hover:not(:disabled),
.pdt-firewall-country__chip:focus-visible {
  border-color: #6366f1;
  color: #1e1b4b;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.16);
  outline: 0;
}

.pdt-firewall-country__chip:hover:not(:disabled) .pdt-firewall-country__chip-remove {
  color: #fff;
  background: #6366f1;
}

.pdt-firewall-country__chip:disabled {
  cursor: default;
  opacity: 0.7;
}

.pdt-firewall-country__response {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.pdt-firewall-country__response-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pdt-firewall-country__response-head h4,
.pdt-firewall-country__response-head p {
  margin: 0;
}

.pdt-firewall-country__response-head h4 {
  color: #1e293b;
  font-size: 14px;
}

.pdt-firewall-country__response-head p {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.pdt-firewall-country__response-head > .dashicons {
  flex: 0 0 auto;
  color: #6366f1;
}

.pdt-firewall-country__response-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: 12px;
  margin-top: 14px;
}

.pdt-firewall-country__response-fields label > span {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.pdt-firewall-country__response-fields input,
.pdt-firewall-country__response-fields textarea {
  width: 100%;
  min-height: 40px;
  margin: 0;
  border-color: #cbd5e1;
  border-radius: 10px;
  background: #fff;
}

.pdt-firewall-country__response-fields textarea {
  min-height: 82px;
  resize: vertical;
}

.pdt-firewall-country__response-fields input:focus,
.pdt-firewall-country__response-fields textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1;
}

.pdt-firewall-country__response-note {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 11px;
}

.pdt-firewall-country__consent,
.pdt-firewall-country__runtime {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 13px;
}

.pdt-firewall-country__consent[hidden] {
  display: none !important;
}

.pdt-firewall-country__consent {
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  background: #eff6ff;
}

.pdt-firewall-country__consent p {
  margin: 0;
  line-height: 1.55;
}

.pdt-firewall-country__runtime {
  align-items: center;
  border: 1px solid #e2e8f0;
  color: #475569;
  background: rgba(248, 250, 252, 0.9);
}

.pdt-firewall-country__runtime > .dashicons {
  color: #64748b;
}

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

.pdt-firewall-country__runtime strong {
  color: #334155;
}

.pdt-firewall-country__runtime small {
  margin-top: 3px;
  color: #64748b;
}

.pdt-firewall-country__runtime.is-ready {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.pdt-firewall-country__runtime.is-ready > .dashicons,
.pdt-firewall-country__runtime.is-ready strong {
  color: #047857;
}

.pdt-firewall-country__runtime.is-error {
  border-color: #fecaca;
  background: #fef2f2;
}

.pdt-firewall-country__runtime.is-error > .dashicons,
.pdt-firewall-country__runtime.is-error strong {
  color: #b91c1c;
}

.pdt-firewall-country__runtime.is-queued > .dashicons,
.pdt-firewall-country__runtime.is-updating > .dashicons {
  color: #2563eb;
  animation: pdt-firewall-country-spin 1.2s linear infinite;
}

.pdt-firewall-country__license {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.6;
}

.pdt-firewall-country__license a {
  font-weight: 700;
  white-space: nowrap;
}

.rtl .pdt-firewall-country::before {
  right: 0;
  left: auto;
}

.rtl .pdt-firewall-country__toolbar .dashicons {
  right: 12px;
  left: auto;
}

.rtl .pdt-firewall-country__toolbar input[type="search"] {
  padding-right: 38px;
  padding-left: 8px;
}

.rtl .pdt-firewall-country__list input {
  right: 12px;
  left: auto;
}

.rtl .pdt-firewall-country__list label > span {
  padding-right: 38px;
  padding-left: 10px;
}

@keyframes pdt-firewall-country-spin {
  to { transform: rotate(360deg); }
}

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

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

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

  .pdt-firewall-country__selected {
    display: block;
  }

  .pdt-firewall-country__selected-list {
    margin-top: 7px;
  }

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

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

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

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

@media (max-width: 720px) {
  .pdt-firewall-section {
    width: 100%;
    min-width: 0;
  }

  .pdt-firewall-hero,
  .pdt-firewall-card__head,
  .pdt-firewall-modal__head {
    flex-direction: column;
  }

  .pdt-firewall-hero {
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
  }

  .pdt-firewall-hero h2 {
    font-size: 25px;
  }

  .pdt-firewall-hero__status {
    width: 100%;
    min-width: 0;
    padding: 14px;
  }

  .pdt-firewall-card {
    padding: 16px;
    border-radius: 16px;
  }

  .pdt-firewall-safe-note,
  .pdt-firewall-country__consent,
  .pdt-firewall-country__runtime {
    padding: 12px;
  }

  .pdt-firewall-details summary {
    align-items: flex-start;
    gap: 10px;
  }

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

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

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

  .pdt-firewall-integrity__summary,
  .pdt-firewall-findings-filters {
    grid-template-columns: 1fr;
  }

  .pdt-firewall-country__summary,
  .pdt-firewall-country__list {
    grid-template-columns: 1fr;
  }

  .pdt-firewall-country__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .pdt-firewall-country__toolbar label {
    flex-basis: auto;
    max-width: none;
  }

  .pdt-firewall-country__toolbar .button,
  .pdt-firewall-integrity__actions > .button,
  .pdt-firewall-integrity__actions > form,
  .pdt-firewall-integrity__actions > form .button,
  .pdt-firewall-submit .button {
    width: 100%;
    text-align: center;
  }

  .pdt-firewall-integrity__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pdt-firewall-integrity__actions p {
    flex-basis: auto;
  }

  .pdt-firewall-integrity__progress-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pdt-firewall-country__selected,
  .pdt-firewall-country__response {
    padding: 13px;
  }

  .pdt-firewall-country__chip {
    max-width: 100%;
  }

  .pdt-firewall-country__chip > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pdt-firewall-modal {
    padding: 8px;
  }

  .pdt-firewall-modal__dialog.pdt-firewall-findings-modal__dialog {
    width: 100%;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 14px;
    border-radius: 14px;
  }

  .pdt-firewall-findings-modal .pdt-firewall-modal__head {
    flex-direction: row;
  }

  .pdt-firewall-findings-table {
    min-height: 170px;
    max-height: none;
  }

  .pdt-firewall-findings-table table {
    min-width: 760px;
  }

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

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

@media (max-width: 420px) {
  .pdt-firewall-hero,
  .pdt-firewall-card {
    padding: 14px;
  }

  .pdt-firewall-country__summary > span,
  .pdt-firewall-country__response,
  .pdt-firewall-country__selected {
    border-radius: 12px;
  }

  .pdt-firewall-new-badge {
    font-size: 8px;
  }
}
