/* The "Are you sure?" dialog (ConfirmDialog.razor, AB#103), in the host's tokens with neutral fallbacks. */
.cf-confirm {
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--cf-radius, 12px);
  background: var(--cf-surface, #fff);
  color: var(--cf-ink, #1b2430);
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.55);
}

.cf-confirm::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.cf-confirm-panel {
  padding: 1.5rem;
}

.cf-confirm-title {
  margin: 0 0 0.5rem;
  font-family: var(--cf-font-heading, inherit);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.cf-confirm-body {
  margin: 0 0 1.5rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cf-confirm-actions {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  gap: 0.75rem;
}

.cf-confirm-actions button {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cf-confirm-cancel {
  border-color: var(--cf-line, #c9d2dc) !important;
  background: transparent;
  color: inherit;
}

.cf-confirm-ok {
  background: var(--cf-primary, #0f766e);
  color: #fff;
}

.cf-confirm.is-danger .cf-confirm-ok {
  background: var(--cf-danger, #b42318);
}

.cf-confirm-actions button:focus-visible {
  outline: 3px solid var(--cf-primary, #0f766e);
  outline-offset: 2px;
}

.cf-confirm.is-danger .cf-confirm-ok:focus-visible {
  outline-color: var(--cf-danger, #b42318);
}

/* A phone: the buttons take the full width, the confirm button on top. */
@media (max-width: 30rem) {
  .cf-confirm-actions button {
    flex: 1 1 100%;
  }
}
