/* ===== Zimoo Dialog & Toast — matches user app chrome ===== */
.zd-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.zd-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
}

.zd-overlay[hidden] {
  display: none !important;
}

.zd-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.zd-card {
  position: relative;
  width: min(100%, 340px);
  background: var(--white, #fff);
  border-radius: 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
  overflow: hidden;
}

.zd-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.zd-card--soon::before {
  background: linear-gradient(90deg, #7c4dff, #b388ff);
}

.zd-card--success::before,
.zd-card--accepted::before {
  background: linear-gradient(90deg, #2e7d32, #66bb6a);
}

.zd-card--warning::before,
.zd-card--error::before {
  background: linear-gradient(90deg, #e53935, #ff7043);
}

.zd-card--logout::before {
  background: linear-gradient(90deg, #e65100, #ffb74d);
}

.zd-card--copy::before {
  background: linear-gradient(90deg, #424242, #9e9e9e);
}

.zd-card--notice::before,
.zd-card--info::before {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.zd-overlay.is-open .zd-card {
  transform: translateY(0) scale(1);
}

.zd-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zd-icon svg {
  width: 26px;
  height: 26px;
}

.zd-icon--info,
.zd-icon--notice {
  background: #f0f4ff;
  color: #2563eb;
}

.zd-icon--success,
.zd-icon--accepted {
  background: #e8f5e9;
  color: #2e7d32;
}

.zd-icon--warning,
.zd-icon--error {
  background: var(--red-light, #ffe8e8);
  color: var(--red, #e53935);
}

.zd-icon--logout {
  background: #fff3e0;
  color: #e65100;
}

.zd-icon--copy {
  background: #f5f5f5;
  color: #1a1a1a;
}

.zd-icon--soon {
  background: #f3ebff;
  color: #7c4dff;
}

.zd-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: 8px;
  line-height: 1.3;
}

.zd-message {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary, #888);
  margin-bottom: 20px;
  white-space: pre-line;
}

.zd-actions {
  display: flex;
  gap: 10px;
}

.zd-actions.zd-actions--single {
  justify-content: center;
}

.zd-actions.zd-actions--single .zd-btn {
  min-width: 140px;
}

.zd-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
}

.zd-btn:active {
  transform: scale(0.98);
}

.zd-btn--ghost {
  background: #f3f3f3;
  color: var(--text, #1a1a1a);
}

.zd-btn--primary {
  background: var(--text, #1a1a1a);
  color: #fff;
}

.zd-btn--danger {
  background: var(--red, #e53935);
  color: #fff;
}

/* Toast */
.zd-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height, 64px) + 16px);
  transform: translateX(-50%) translateY(16px);
  z-index: 11000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(calc(100% - 32px), 360px);
  padding: 12px 16px;
  background: var(--white, #fff);
  color: var(--text, #1a1a1a);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border, #e8e8e8);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.zd-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.zd-toast[hidden] {
  display: none !important;
}

.zd-toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zd-toast-icon svg {
  width: 16px;
  height: 16px;
}

.zd-toast--success .zd-toast-icon {
  background: #e8f5e9;
  color: #2e7d32;
}

.zd-toast--copy .zd-toast-icon {
  background: #f0f0f0;
  color: #1a1a1a;
}

.zd-toast--notice .zd-toast-icon,
.zd-toast--info .zd-toast-icon {
  background: #f0f4ff;
  color: #2563eb;
}

.zd-toast--error .zd-toast-icon,
.zd-toast--warning .zd-toast-icon {
  background: var(--red-light, #ffe8e8);
  color: var(--red, #e53935);
}

.zd-toast--accepted .zd-toast-icon {
  background: #e8f5e9;
  color: #2e7d32;
}

.zd-toast-text {
  flex: 1;
  text-align: left;
}

@media (max-width: 380px) {
  .zd-card {
    padding: 18px 16px 16px;
  }

  .zd-title {
    font-size: 16px;
  }

  .zd-message {
    font-size: 12px;
  }
}

/* ===== Signup submit progress (delivery / retailer create account) ===== */
.zsp-overlay {
  position: fixed;
  inset: 0;
  z-index: 12500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.zsp-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
}

.zsp-overlay[hidden] {
  display: none !important;
}

.zsp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.zsp-card {
  position: relative;
  width: min(100%, 320px);
  background: var(--white, #fff);
  border-radius: 18px;
  padding: 24px 22px 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  text-align: center;
  overflow: hidden;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.zsp-overlay.is-open .zsp-card {
  transform: translateY(0) scale(1);
}

.zsp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c4dff, #b388ff);
}

.zsp-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #f3ebff;
  color: #7c4dff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zsp-spin 1.1s linear infinite;
}

.zsp-icon svg {
  width: 26px;
  height: 26px;
  animation: zsp-spin-reverse 1.1s linear infinite;
}

@keyframes zsp-spin {
  to { transform: rotate(360deg); }
}

@keyframes zsp-spin-reverse {
  to { transform: rotate(-360deg); }
}

.zsp-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: 6px;
}

.zsp-status {
  font-size: 13px;
  color: var(--text-secondary, #888);
  margin-bottom: 16px;
  min-height: 1.4em;
}

.zsp-bar-track {
  height: 8px;
  background: #f0f0f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.zsp-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c4dff, #b388ff);
  transition: width 0.28s ease;
}

.zsp-percent {
  font-size: 22px;
  font-weight: 800;
  color: #7c4dff;
  letter-spacing: -0.02em;
  margin: 0;
}
