/* SweetAlert2 follows TradeWise light/dark (data-bs-theme). Tokens from theme.css. */

.swal2-popup.rt-swal {
  border-radius: 16px !important;
  font-family: inherit !important;
  background: var(--app-card-bg, var(--bs-body-bg, #fff)) !important;
  color: var(--field-text, var(--bs-body-color, #121212)) !important;
  border: 1px solid var(--bs-border-color, var(--field-line, #e4e0da)) !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .15) !important;
}

.swal2-popup .swal2-title {
  color: var(--field-text, var(--bs-emphasis-color, inherit)) !important;
  font-weight: 700 !important;
}

.swal2-popup .swal2-html-container,
.swal2-popup .swal2-content,
.swal2-popup .swal2-input-label {
  color: var(--field-muted, var(--bs-secondary-color, #5c5854));
  font-size: 14px;
}

.swal2-popup .swal2-styled.swal2-confirm,
.swal2-popup .swal2-styled.swal2-cancel,
.swal2-popup .swal2-styled.swal2-deny {
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: .55rem 1.1rem !important;
  box-shadow: none !important;
}

.swal2-popup .swal2-styled.swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb, 249, 103, 11), .3) !important;
}

.swal2-popup.rt-swal-toast {
  border-radius: 12px !important;
  border: 1px solid var(--bs-border-color, var(--field-line, #e4e0da));
  box-shadow: 0 8px 24px rgba(15, 23, 42, .1) !important;
  font-family: inherit !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: var(--bs-primary) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(var(--bs-primary-rgb), .3) !important;
}

.swal2-progress-bar {
  background: var(--bs-primary) !important;
}

.swal2-popup .swal2-footer {
  color: var(--field-muted, var(--bs-secondary-color)) !important;
  border-top-color: var(--bs-border-color, var(--field-line)) !important;
}

.swal2-popup .swal2-close {
  color: var(--field-muted, var(--bs-secondary-color)) !important;
}

.swal2-popup .swal2-close:hover {
  color: var(--field-text, var(--bs-body-color)) !important;
}

.swal2-popup .swal2-input,
.swal2-popup .swal2-textarea,
.swal2-popup .swal2-select,
.swal2-popup .swal2-file {
  background: var(--field, var(--bs-tertiary-bg, #f6f3ee)) !important;
  color: var(--field-text, var(--bs-body-color)) !important;
  border-color: var(--field-line, var(--bs-border-color)) !important;
  box-shadow: none !important;
}

.swal2-popup .swal2-input::placeholder,
.swal2-popup .swal2-textarea::placeholder {
  color: var(--field-muted, var(--bs-secondary-color)) !important;
}

html[data-bs-theme="dark"] .swal2-popup.rt-swal {
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6) !important;
}

html[data-bs-theme="dark"] .swal2-popup .swal2-validation-message {
  background: rgba(239, 68, 68, .16) !important;
  color: #FCA5A5 !important;
}

html[data-bs-theme="light"] .swal2-popup .swal2-validation-message {
  background: #f0f0f0 !important;
  color: #666 !important;
}

html[data-bs-theme="dark"] .swal2-popup .swal2-styled.swal2-cancel {
  background: rgba(255, 255, 255, .06) !important;
  color: var(--field-text) !important;
}

html[data-bs-theme="light"] .swal2-popup .swal2-styled.swal2-cancel {
  background: var(--field, #f6f3ee) !important;
  color: var(--field-text) !important;
}

html[data-bs-theme="dark"] .swal2-popup .swal2-styled.swal2-deny {
  background: rgba(239, 68, 68, .16) !important;
  color: #FCA5A5 !important;
}

html[data-bs-theme="dark"] .swal2-container.swal2-backdrop-show {
  background: rgba(0, 0, 0, .65) !important;
}

html[data-bs-theme="light"] .swal2-container.swal2-backdrop-show {
  background: rgba(15, 23, 42, .35) !important;
}

html[data-bs-theme="dark"] .swal2-popup .swal2-timer-progress-bar-container,
html[data-bs-theme="dark"] .swal2-popup .swal2-loader {
  background: rgba(255, 255, 255, .04) !important;
}
