/* Fix the recipe/step confirmation modal without changing its JS behavior. */
.rf-root dialog.ops-delete-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid var(--rf-border, #34373e);
  border-radius: 16px;
  background: var(--rf-modal, var(--rf-surface, #202227));
  color: var(--rf-text, #f5f5f2);
  box-shadow: var(--rf-shadow, 0 14px 38px rgba(0, 0, 0, .25));
}

.rf-root dialog.ops-delete-dialog::backdrop {
  background: var(--rf-overlay, rgba(0, 0, 0, .58));
  backdrop-filter: blur(4px);
}

.rf-root dialog.ops-delete-dialog > form {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.rf-root dialog.ops-delete-dialog .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  margin-top: 18px;
}

.rf-root dialog.ops-delete-dialog .actions > button {
  box-sizing: border-box;
  flex: 1 1 140px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--rf-border, #34373e);
  border-radius: 10px;
  color: var(--rf-text, #f5f5f2);
  font: inherit;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.rf-root dialog.ops-delete-dialog .actions > button[value="cancel"] {
  background: var(--rf-field, #202227);
}

.rf-root dialog.ops-delete-dialog .actions > button[value="delete"] {
  border-color: #b42332;
  background: #b42332;
  color: #ffffff;
  font-weight: 700;
}

.rf-root dialog.ops-delete-dialog .actions > button:hover {
  filter: brightness(.96);
}

.rf-root dialog.ops-delete-dialog .actions > button:focus-visible {
  outline: 3px solid var(--rf-focus, #2447d7);
  outline-offset: 2px;
}

.rf-root dialog.ops-delete-dialog .actions > button:disabled {
  cursor: wait;
  opacity: .6;
}

@media (max-width: 420px) {
  .rf-root dialog.ops-delete-dialog {
    padding: 18px;
  }

  .rf-root dialog.ops-delete-dialog .actions > button {
    flex-basis: 100%;
  }
}
