.b3-confirm-root[hidden] { display: none; }
body.b3-confirm-open { overflow: hidden; }
.b3-confirm-root {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
}
.b3-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(9 25 45 / 58%);
}
.b3-confirm-dialog {
  position: relative;
  width: min(100%, 440px);
  overflow: hidden;
  border: 1px solid var(--border, #d9d5cc);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--ink, #111c31);
  box-shadow: 0 24px 64px rgb(9 25 45 / 24%);
}
.b3-confirm-body { padding: 24px; }
.b3-confirm-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}
.b3-confirm-body p {
  margin: 0;
  color: var(--muted, #52627b);
  font-size: 15px;
  line-height: 1.5;
}
.b3-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border, #d9d5cc);
  background: var(--surface-soft, #f7f6f2);
}
@media (max-width: 520px) {
  .b3-confirm-root { align-items: end; padding: 0; }
  .b3-confirm-dialog { width: 100%; border-radius: 8px 8px 0 0; }
  .b3-confirm-actions { flex-direction: column-reverse; }
  .b3-confirm-actions .btn { width: 100%; }
}
