/* Unified store notifications (toast + confirm) */

.store-toast-container.swal2-container {
  z-index: 12000 !important;
  padding: 1rem !important;
}

.swal2-popup.store-toast {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: min(420px, calc(100vw - 1.5rem)) !important;
  max-width: 420px !important;
  padding: 0 !important;
  margin: 0.5rem auto 0 !important;
  border-radius: 14px !important;
  border: 1px solid #E8E8EA !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14) !important;
  overflow: hidden;
  font-family: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.swal2-popup.store-toast.swal2-toast {
  flex-direction: column !important;
}

.swal2-popup.store-toast .swal2-header,
.swal2-popup.store-toast .swal2-title,
.swal2-popup.store-toast .swal2-icon,
.swal2-popup.store-toast .swal2-image,
.swal2-popup.store-toast .swal2-actions,
.swal2-popup.store-toast .swal2-footer {
  display: none !important;
}

.swal2-popup.store-toast .swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  display: block !important;
  text-align: right !important;
  color: inherit !important;
}

.store-toast-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1.1rem 1.05rem;
}

.store-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-toast-icon .mdi {
  font-size: 1.4rem;
  line-height: 1;
}

.store-toast-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding-left: 1.5rem;
}

.store-toast-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.store-toast-message {
  font-size: 0.95rem;
  font-weight: 650;
  color: #252423;
  line-height: 1.45;
}

.swal2-popup.store-toast .swal2-close {
  top: 0.45rem !important;
  left: 0.45rem !important;
  right: auto !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  font-size: 1.25rem !important;
  color: #8A8886 !important;
  box-shadow: none !important;
}

.swal2-popup.store-toast .swal2-close:hover {
  background: #F3F2F1 !important;
  color: #323130 !important;
}

.swal2-popup.store-toast .swal2-timer-progress-bar {
  height: 3px !important;
  background: currentColor !important;
  opacity: 0.35;
}

.swal2-popup.store-toast--success {
  border-color: rgba(16, 124, 16, 0.28) !important;
}

.swal2-popup.store-toast--success .store-toast-icon {
  background: rgba(16, 124, 16, 0.12);
  color: #107C10;
}

.swal2-popup.store-toast--success .store-toast-label,
.swal2-popup.store-toast--success .swal2-timer-progress-bar {
  color: #107C10;
}

.swal2-popup.store-toast--error {
  border-color: rgba(209, 52, 56, 0.28) !important;
}

.swal2-popup.store-toast--error .store-toast-icon {
  background: rgba(209, 52, 56, 0.12);
  color: #D13438;
}

.swal2-popup.store-toast--error .store-toast-label,
.swal2-popup.store-toast--error .swal2-timer-progress-bar {
  color: #D13438;
}

.swal2-popup.store-toast--warning {
  border-color: rgba(255, 185, 0, 0.45) !important;
}

.swal2-popup.store-toast--warning .store-toast-icon {
  background: rgba(255, 185, 0, 0.16);
  color: #8A6116;
}

.swal2-popup.store-toast--warning .store-toast-label,
.swal2-popup.store-toast--warning .swal2-timer-progress-bar {
  color: #8A6116;
}

.swal2-popup.store-toast--info {
  border-color: rgba(0, 120, 212, 0.28) !important;
}

.swal2-popup.store-toast--info .store-toast-icon {
  background: rgba(0, 120, 212, 0.12);
  color: #0078D4;
}

.swal2-popup.store-toast--info .store-toast-label,
.swal2-popup.store-toast--info .swal2-timer-progress-bar {
  color: #0078D4;
}

@keyframes store-toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes store-toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

.store-toast.store-toast-in {
  animation: store-toast-in 220ms ease both;
}

.store-toast.store-toast-out {
  animation: store-toast-out 160ms ease both;
}

/* Confirm dialog */
.store-confirm-container.swal2-container {
  z-index: 12100 !important;
  background: rgba(15, 23, 42, 0.42) !important;
}

.swal2-popup.store-confirm {
  width: min(460px, calc(100vw - 1.5rem)) !important;
  max-width: 460px !important;
  padding: 0 !important;
  border-radius: 16px !important;
  border: 1px solid #E8E8EA !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22) !important;
  font-family: inherit !important;
  overflow: hidden;
}

.swal2-popup.store-confirm .swal2-header,
.swal2-popup.store-confirm .swal2-title,
.swal2-popup.store-confirm .swal2-icon,
.swal2-popup.store-confirm .swal2-image,
.swal2-popup.store-confirm .swal2-close {
  display: none !important;
}

.swal2-popup.store-confirm .swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
  text-align: right !important;
  color: inherit !important;
}

.store-confirm-inner {
  padding: 1.35rem 1.25rem 0.35rem;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
}

.store-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-confirm-icon .mdi {
  font-size: 1.75rem;
  line-height: 1;
}

.store-confirm-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 750;
  color: #1B1B1B;
  line-height: 1.4;
}

.store-confirm-message {
  margin: 0;
  font-size: 0.92rem;
  color: #605E5C;
  line-height: 1.65;
  max-width: none;
  white-space: normal;
  text-wrap: pretty;
}

.swal2-popup.store-confirm .swal2-actions {
  margin: 0 !important;
  padding: 1rem 1.25rem 1.25rem !important;
  gap: 0.55rem !important;
  width: 100%;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: stretch;
}

.swal2-popup.store-confirm .swal2-styled {
  margin: 0 !important;
  flex: 1 1 120px;
  height: 42px;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  border: 0 !important;
}

.swal2-popup.store-confirm .swal2-confirm {
  background: #0078D4 !important;
  color: #fff !important;
}

.swal2-popup.store-confirm .swal2-confirm:hover {
  background: #106EBE !important;
}

.swal2-popup.store-confirm .swal2-cancel {
  background: #F3F2F1 !important;
  color: #323130 !important;
}

.swal2-popup.store-confirm .swal2-cancel:hover {
  background: #EDEBE9 !important;
}

.swal2-popup.store-confirm--danger .store-confirm-icon {
  background: rgba(209, 52, 56, 0.12);
  color: #D13438;
}

.swal2-popup.store-confirm--danger .swal2-confirm {
  background: #D13438 !important;
}

.swal2-popup.store-confirm--danger .swal2-confirm:hover {
  background: #A4262C !important;
}

.swal2-popup.store-confirm--warning .store-confirm-icon {
  background: rgba(255, 185, 0, 0.16);
  color: #8A6116;
}

.swal2-popup.store-confirm--info .store-confirm-icon {
  background: rgba(0, 120, 212, 0.12);
  color: #0078D4;
}

.swal2-popup.store-confirm--success .store-confirm-icon {
  background: rgba(16, 124, 16, 0.12);
  color: #107C10;
}
