/* ==========================================================================
   SOURCE: published-form-drafts.css
   ========================================================================== */
/* ============================================================
   PUBLISHED FORM -DRAFT DELETE
   ============================================================ */

.published-form-delete-draft-button {
  border-color: #fca5a5;

  background: #ffffff;

  color: #b91c1c;
}
.published-form-delete-draft-button:hover:not(:disabled) {
  border-color: #dc2626;

  background: #fef2f2;

  color: #991b1b;
}

.published-form-draft-modal-backdrop {
  position: fixed;
  inset: 0;

  z-index: 5000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));

  background: rgba(15, 23, 42, 0.58);

  backdrop-filter: blur(2px);
  overscroll-behavior: contain;
}

.published-form-draft-modal {
  width: min(520px, 100%);
  max-width: calc(var(--if-ui-viewport-width, 100vw) - 32px) !important;
  max-height: calc(var(--if-ui-viewport-height, 100dvh) - 32px) !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  border: 1px solid var(--if-border, #e2e8f0);
  border-radius: 12px;

  background: var(--if-surface, #ffffff);

  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.published-form-draft-modal-header {
  padding: 20px 22px 18px;

  border-bottom: 1px solid var(--if-border, #e2e8f0);
}

.published-form-draft-modal-header h2 {
  margin: 2px 0 0;

  color: var(--if-primary, #041e42);

  font-size: 0.9rem;
  font-weight: 780;
}

.published-form-draft-modal-header p:last-child {
  margin: 8px 0 0;

  color: var(--if-text-muted, #64748b);

  font-size: 0.875rem;
  line-height: 1.55;
}

.published-form-draft-modal-error {
  margin: 16px 22px 0;
  padding: 10px 12px;

  border: 1px solid #fecaca;
  border-radius: 8px;

  background: #fef2f2;

  color: #991b1b;

  font-size: 0.875rem;
  line-height: 1.45;
}

.published-form-draft-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 10px;

  padding: 16px 22px;

  border-top: 1px solid var(--if-border, #e2e8f0);

  background: #fafbfc;
}

.published-form-delete-draft-confirm {
  border-color: #dc2626;

  background: #dc2626;

  color: #ffffff;
}

.published-form-delete-draft-confirm:hover:not(:disabled) {
  border-color: #b91c1c;

  background: #b91c1c;

  color: #ffffff;
}

@media (max-width: 600px) {
  .published-form-draft-modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .published-form-draft-modal-actions .if-btn {
    width: 100%;
  }
}
