/* =====================================================================
   ALERT TOASTS (nk-alerts)
   - minimal, gyors, nem zavarja a layoutot
   - JS: /assets/js/alerts.js
   ===================================================================== */

.nk-alerts {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}

.nk-toast {
  pointer-events: auto;
  border-radius: 14px;
  padding: 12px 12px 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  transform: translateY(-6px);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.nk-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nk-toast__msg {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(15, 23, 42, .92);
}

.nk-toast__close {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  color: rgba(15, 23, 42, .72);
}

.nk-toast--success {
  background: rgba(240, 253, 244, .95);
  border: 1px solid rgba(34, 197, 94, .25);
}

.nk-toast--error {
  background: rgba(254, 242, 242, .95);
  border: 1px solid rgba(239, 68, 68, .25);
}

.nk-toast--info {
  background: rgba(239, 246, 255, .95);
  border: 1px solid rgba(59, 130, 246, .25);
}

.nk-toast--warning {
  background: rgba(255, 251, 235, .95);
  border: 1px solid rgba(245, 158, 11, .25);
}

@media (max-width: 520px) {
  .nk-alerts {
    right: 10px;
    top: 10px;
  }
}

/* =====================================================================
   OpenX custom modal alerts (no SweetAlert dependency)
   ===================================================================== */

html.ox-alert-open {
  overflow: hidden;
}

.ox-alertModal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 16px;
}

.ox-alertModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .52);
  opacity: 0;
  transition: opacity .22s ease;
  backdrop-filter: blur(2px);
}

.ox-alertModal__panel {
  position: relative;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .98));
  color: var(--wx-fg-on-light, rgba(15, 23, 42, 1));
  box-shadow: 0 34px 84px rgba(15, 23, 42, .34);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}

.ox-alertModal.is-visible .ox-alertModal__backdrop {
  opacity: 1;
}

.ox-alertModal.is-visible .ox-alertModal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ox-alertModal__body {
  padding: 18px 18px 8px;
}

.ox-alertIcon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(15, 23, 42, .16);
}

.ox-alertIcon--success {
  color: rgba(21, 128, 61, 1);
  background: rgba(240, 253, 244, .95);
}

.ox-alertIcon--error {
  color: rgba(185, 28, 28, 1);
  background: rgba(254, 242, 242, .95);
}

.ox-alertIcon--warning {
  color: rgba(146, 64, 14, 1);
  background: rgba(255, 251, 235, .95);
}

.ox-alertIcon--info,
.ox-alertIcon--question {
  color: rgba(30, 64, 175, 1);
  background: rgba(239, 246, 255, .95);
}

.ox-alertModal__title {
  font-size: 21px;
  line-height: 1.22;
  font-weight: 900;
  color: var(--wx-fg-on-light, rgba(15, 23, 42, 1));
  margin: 0 0 8px;
}

.ox-alertModal__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--wx-muted-on-light, rgba(51, 65, 85, 1));
}

.ox-alertModal__html {
  margin-top: 6px;
}

.ox-alertModal__footer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.ox-alertBtn {
  appearance: none;
  border-radius: 12px;
  min-height: 42px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 850;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .14s ease, filter .14s ease;
}

.ox-alertBtn:focus-visible {
  outline: 2px solid rgba(249, 115, 22, .35);
  outline-offset: 2px;
}

.ox-alertBtn--primary {
  background: linear-gradient(180deg, rgba(249, 115, 22, 1), rgba(234, 88, 12, 1));
  color: #fff;
  box-shadow: 0 10px 22px rgba(234, 88, 12, .28);
}

.ox-alertBtn--secondary {
  background: rgba(15, 23, 42, .92);
  color: #fff;
  border-color: rgba(15, 23, 42, .7);
}

.ox-alertBtn--ghost {
  background: rgba(255, 255, 255, .98);
  color: rgba(15, 23, 42, .92);
  border-color: rgba(15, 23, 42, .16);
}

@media (hover:hover) and (pointer:fine) {
  .ox-alertBtn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
  }
}

@media (max-width: 640px) {
  .ox-alertModal__panel {
    width: calc(100vw - 16px);
    border-radius: 14px;
  }

  .ox-alertModal__title {
    font-size: 18px;
  }

  .ox-alertModal__footer {
    justify-content: stretch;
  }

  .ox-alertBtn {
    width: 100%;
    justify-content: center;
  }
}

/* Checkout review content in OpenX modal */
.ox-checkoutReview {
  display: grid;
  gap: 10px;
}

.ox-checkoutReview__box {
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .94);
}

.ox-checkoutReview__title {
  font-weight: 900;
  font-size: 12px;
  margin: 0 0 6px;
  color: rgba(15, 23, 42, 1);
}

.ox-checkoutReview__line {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(30, 41, 59, .95);
}

.ox-checkoutReview__label {
  color: rgba(100, 116, 139, 1);
}

.ox-checkoutReview__total {
  font-size: 14px;
  font-weight: 950;
  color: rgba(15, 23, 42, 1);
}
