/* pixel-modal — SweetAlert2 theme overrides (do not replace Swal) */

.swal2-popup.pixel-modal,
.swal2-popup.cq-swal-popup {
  background-color: var(--panel) !important;
  border: var(--border-width) solid var(--border) !important;
  box-shadow: var(--pixel-shadow) !important;
  border-radius: var(--radius) !important;
  color: var(--text-main) !important;
  font-family: var(--font-body) !important;
  padding: var(--space-lg) !important;
}

.swal2-popup.pixel-modal .swal2-title,
.swal2-popup.cq-swal-popup .swal2-title {
  font-family: var(--font-pixel) !important;
  font-size: var(--font-size-sm) !important;
  color: var(--btn-gold) !important;
  text-transform: uppercase;
}

.swal2-popup.pixel-modal .swal2-html-container,
.swal2-popup.cq-swal-popup .swal2-html-container {
  color: var(--text-main) !important;
  font-size: var(--font-size-base) !important;
}

.swal2-popup.pixel-modal .swal2-icon,
.swal2-popup.cq-swal-popup .swal2-icon {
  border-color: var(--border) !important;
}

.swal2-popup.pixel-modal .swal2-icon.swal2-success [class^='swal2-success-line'],
.swal2-popup.cq-swal-popup .swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: var(--btn-green) !important;
}

.swal2-popup.pixel-modal .swal2-icon.swal2-success .swal2-success-ring,
.swal2-popup.cq-swal-popup .swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(107, 203, 119, 0.3) !important;
}

.swal2-popup.pixel-modal .swal2-icon.swal2-error [class^='swal2-x-mark-line'],
.swal2-popup.cq-swal-popup .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: var(--btn-red) !important;
}

.swal2-popup.pixel-modal .swal2-icon.swal2-warning,
.swal2-popup.cq-swal-popup .swal2-icon.swal2-warning {
  border-color: var(--btn-gold) !important;
  color: var(--btn-gold) !important;
}

.swal2-popup.pixel-modal .swal2-actions,
.swal2-popup.cq-swal-popup .swal2-actions {
  gap: var(--space-sm) !important;
}

.swal2-popup.pixel-modal .swal2-confirm,
.swal2-popup.cq-swal-popup .swal2-confirm {
  background-color: var(--btn-green) !important;
  color: var(--text-dark) !important;
  border: var(--border-width) solid var(--border) !important;
  box-shadow: var(--pixel-shadow) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-pixel) !important;
  font-size: var(--font-size-pixel-min) !important;
  min-height: 44px !important;
  padding: var(--space-sm) var(--space-md) !important;
}

.swal2-popup.pixel-modal .swal2-confirm:active,
.swal2-popup.cq-swal-popup .swal2-confirm:active {
  transform: translate(2px, 2px) !important;
  box-shadow: none !important;
}

.swal2-popup.pixel-modal .swal2-cancel,
.swal2-popup.cq-swal-popup .swal2-cancel {
  background-color: var(--btn-red) !important;
  color: var(--text-main) !important;
  border: var(--border-width) solid var(--border) !important;
  box-shadow: var(--pixel-shadow) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-pixel) !important;
  font-size: var(--font-size-pixel-min) !important;
  min-height: 44px !important;
}

.swal2-popup.pixel-modal .swal2-close,
.swal2-popup.cq-swal-popup .swal2-close {
  color: var(--text-muted) !important;
}

.swal2-container {
  backdrop-filter: none !important;
  background: rgba(22, 22, 29, 0.85) !important;
}

@media (max-width: 479px) {
  .swal2-popup.pixel-modal .swal2-title,
  .swal2-popup.pixel-modal .swal2-confirm,
  .swal2-popup.pixel-modal .swal2-cancel {
    font-family: var(--font-body) !important;
    font-weight: 700;
    text-transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swal2-popup.pixel-modal .swal2-confirm:active {
    transform: none !important;
  }
}
