/* The Brand nxt — branded SweetAlert2 (auth / OTP) */

.yw-swal-container.swal2-container {
  backdrop-filter: blur(4px);
}

.yw-swal-popup.swal2-popup {
  width: min(420px, calc(100vw - 32px));
  padding: 36px 28px 28px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  font-family: "DM Sans", "Urbanist", sans-serif;
  color: var(--text, #000);
  background: #fff;
}

.yw-swal-title.swal2-title {
  margin: 0 0 6px;
  padding: 0;
  font-family: "Urbanist", "DM Sans", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text, #000);
}

.yw-swal-html.swal2-html-container {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.62);
}

.yw-swal-icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.yw-swal-icon-wrap.is-success {
  background: var(--text, #000);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.yw-swal-icon-wrap.is-success::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary, #dc4646);
  opacity: 0.35;
}

.yw-swal-icon-wrap.is-error {
  background: #fff5f5;
  border: 2px solid rgba(220, 70, 70, 0.25);
}

.yw-swal-icon-wrap svg {
  display: block;
}

.yw-swal-lead {
  font-family: "Urbanist", "DM Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text, #000);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.yw-swal-sub {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(0, 0, 0, 0.58);
  line-height: 1.5;
}

.yw-swal-actions.swal2-actions {
  margin: 22px 0 0;
  gap: 10px;
  width: 100%;
}

.yw-swal-btn.swal2-styled {
  margin: 0;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 60px !important;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: none !important;
}

.yw-swal-btn-primary.swal2-confirm {
  background: var(--text, #000) !important;
  color: #fff !important;
}

.yw-swal-btn-primary.swal2-confirm:hover {
  background: var(--primary, #dc4646) !important;
}

.yw-swal-btn-outline.swal2-cancel {
  background: transparent !important;
  color: var(--text, #000) !important;
  border: 1px solid var(--text, #000) !important;
}

.yw-swal-input.swal2-input {
  margin: 14px auto 0;
  width: 100%;
  max-width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  box-shadow: none;
}

.yw-swal-input.swal2-input:focus {
  border-color: var(--text, #000);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.yw-swal-popup .swal2-input.yw-swal-input {
  margin: 8px 0 0;
}

.yw-swal-popup .swal2-input.yw-swal-input:first-of-type {
  margin-top: 4px;
}

.yw-swal-popup .swal2-timer-progress-bar {
  background: var(--primary, #dc4646);
}

.yw-swal-popup.swal2-icon-show .swal2-icon {
  display: none !important;
}

@keyframes yw-swal-pop-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.yw-swal-popup.swal2-show {
  animation: yw-swal-pop-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes yw-swal-check-draw {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.yw-swal-icon-wrap.is-success svg {
  animation: yw-swal-check-draw 0.45s ease 0.1s both;
}
