.sp2d-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(18, 27, 40, 0.62);
  backdrop-filter: blur(2px);
}

dialog.sp2d-choice-dialog {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: min(960px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  max-height: 88vh;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid #a7b8cb;
  border-top: 4px solid #32699b;
  border-radius: 8px;
  background: #fff;
  color: #202b39;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), 0 6px 20px rgba(0, 0, 0, 0.2);
}

dialog.sp2d-choice-dialog::backdrop {
  background: transparent;
}

.sp2d-choice-dialog .admin-dialog-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.sp2d-choice-dialog .admin-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  margin: 0;
  background: #edf3f9;
  border-bottom: 1px solid #d2dfec;
}

.sp2d-choice-dialog .admin-dialog-head h2 {
  margin: 0;
  color: #254c71;
  font-size: 20px;
  line-height: 1.3;
}

.sp2d-choice-dialog .admin-dialog-close {
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #c3d1df;
  border-radius: 4px;
  background: #fff;
  color: #425369;
  font-size: 16px;
  text-decoration: none;
}

.sp2d-choice-dialog .admin-dialog-close:hover {
  background: #e2ebf5;
}

.sp2d-choice-dialog .admin-dialog-body {
  padding: 22px 24px;
}

.sp2d-choice-dialog .admin-dialog-body > p {
  margin: 0 0 18px;
  color: #4a5869;
  line-height: 1.5;
}

.sp2d-choice-dialog table th {
  background: #f0f4f8;
  color: #43566d;
}

.sp2d-choice-dialog table td,
.sp2d-choice-dialog table th {
  padding: 14px 12px;
  border-bottom: 1px solid #dde5ee;
}

.sp2d-choice-dialog tr:has(input:checked) {
  background: #e7f2fb;
  color: #214b72;
}

.sp2d-choice-dialog tr:hover td {
  background: #f2f7fc;
}

.sp2d-choice-dialog input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #32699b;
}

.sp2d-choice-dialog .form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px -24px -22px;
  padding: 16px 24px;
  border-top: 1px solid #dbe3ec;
  background: #f6f8fb;
}

@media (max-width: 600px) {
  .sp2d-choice-dialog .admin-dialog-head {
    padding: 16px;
  }
  .sp2d-choice-dialog .admin-dialog-body {
    padding: 18px 16px;
  }
  .sp2d-choice-dialog .form-actions {
    margin: 18px -16px -18px;
    padding: 14px 16px;
  }
}
