/* Country Access Blocker – Admin UI */

.cab-page {
  max-width: 980px;
}

.cab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}

.cab-row--right {
  justify-content: flex-end;
}

.cab-row--stack {
  flex-direction: column;
  align-items: flex-start;
}

.cab-help {
  margin: 10px 0 14px;
  color: #50575e;
  font-size: 13px;
}

.cab-ip-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
}

.cab-detected {
  margin: 8px 0 12px;
  font-size: 13px;
}

.cab-detected strong {
  font-size: 13px;
}

.cab-bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Table tweaks */
table.cab-table {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
}

table.cab-table th {
  font-weight: 600;
}

table.cab-table td,
table.cab-table th {
  vertical-align: middle;
}

.cab-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.cab-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8c8f94;
  display: inline-block;
}

.cab-status--blocked {
  color: #b32d2e;
}

.cab-status--blocked::before {
  background: #b32d2e;
}

.cab-status--allowed {
  color: #008a20;
  font-weight: 500;
}

.cab-status--allowed::before {
  background: #008a20;
}

/* Developer card */
.cab-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 980px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 14px;
  padding: 16px 16px;
  margin: 12px 0 18px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.cab-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #dcdcde;
  display: block;
  flex: 0 0 auto;
  margin-top: 2px;
}

.cab-card .cab-content {
  flex: 1;
  min-width: 0;
}

.cab-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #50575e;
  padding-right: 34px;
}

.cab-card strong {
  font-size: 13.5px;
  color: #1d2327;
}

.cab-card .cab-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cab-card .cab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid #111827;
  white-space: nowrap;
}

.cab-card .cab-btn:hover {
  background: #0b1220;
  border-color: #0b1220;
  color: #fff;
}

.cab-card .cab-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff;
  color: #1d2327;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid #dcdcde;
  white-space: nowrap;
}

.cab-card .cab-btn-secondary:hover {
  background: #f6f7f7;
  border-color: #bfc3c7;
  color: #1d2327;
}

.cab-card .cab-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  border: 1px solid #dcdcde;
  background: #fff;
  color: #1d2327;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 16px;
}

.cab-card .cab-close:hover {
  background: #f6f7f7;
  border-color: #bfc3c7;
}

/* Buttons (modern, WP-konform, nur CAB-Seite) */
.cab-page .button {
  border-radius: 10px;
  padding: 6px 12px;
  height: auto;
  line-height: 1.4;
  font-weight: 600;
  box-shadow: 0 1px 1px rgba(0,0,0,.06);
  transition: transform .05s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

.cab-page .button:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
}

.cab-page .button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* Primary (Save settings) */
.cab-page .button.button-primary,
.cab-page .cab-btn-primary {
  border-radius: 12px;
  padding: 9px 14px;
}

/* Secondary action buttons ("Block all..." / "Unblock all") */
.cab-page .cab-btn-secondary-action {
  background: #fff;
  border-color: #dcdcde;
  color: #1d2327;
}

.cab-page .cab-btn-secondary-action:hover {
  background: #f6f7f7;
  border-color: #bfc3c7;
  color: #1d2327;
}

/* Optional: slight grouping spacing */
.cab-bulk-actions .button {
  margin-right: 0;
}

/* ===== Enable Gate (when disabled) ===== */
.cab-page.cab-disabled .cab-enable-gate {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 8px;
}

.cab-page.cab-disabled .cab-enable-card {
  width: min(760px, 100%);
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  text-align: center;
}

.cab-page.cab-disabled .cab-enable-title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  color: #1d2327;
}

.cab-page.cab-disabled .cab-enable-sub {
  margin: 0 0 16px;
  color: #50575e;
  font-size: 13px;
}

.cab-page.cab-disabled .cab-enable-toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 14px;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  background: #f6f7f7;
  text-align: left;
  margin: 0 auto 16px;
  max-width: 680px;
}

.cab-page.cab-disabled .cab-enable-checkbox {
  margin-top: 3px;
  transform: scale(1.35);
  transform-origin: top left;
}

.cab-page.cab-disabled .cab-enable-label {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  color: #1d2327;
}

.cab-page.cab-disabled .cab-enable-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 10px;
}

.cab-page.cab-disabled .cab-enable-save.button.button-primary {
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
}

.cab-page.cab-disabled .cab-enable-notice.notice.inline {
  margin: 12px 0 0;
  text-align: left;
}

/* When enabled, keep the checkbox row "normal" */
.cab-page.cab-enabled .cab-ip-check input[type="checkbox"] {
  transform: none;
}
