/* WhatsApp auth modal — Profesia (OMV-style flow) */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.whatsapp-block {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.whatsapp-block[hidden] {
  display: none !important;
}

.whatsapp-block-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 40, 0.58);
  cursor: pointer;
}

.whatsapp-block-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  color: #1e293b;
  border-radius: 16px;
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  animation: mi-wa-pop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mi-wa-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.whatsapp-block-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f0;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: #6e6e6a;
}

.whatsapp-block-close:hover {
  background: #ecece7;
  color: #2d2d2b;
}

.whatsapp-block-title {
  margin: 0 0 0.75rem;
  padding-right: 2.2rem;
  font-size: 21px;
  font-weight: 800;
  color: #0050aa;
  letter-spacing: -0.02em;
}

.whatsapp-block-desc {
  margin: 0 0 0.65rem;
  font-size: 15px;
  line-height: 1.5;
  color: #475569;
}

.whatsapp-block-desc--extra {
  font-size: 14px;
  color: #64748b;
}

.whatsapp-auth-main-btn,
.btn-more-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #166fe0 0%, #0050aa 100%);
  color: #fff !important;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 80, 170, 0.28);
}

.whatsapp-auth-main-btn:hover,
.btn-more-info:hover {
  filter: brightness(1.04);
}

.whatsapp-auth-main-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.whatsapp-auth-error {
  margin: 0.85rem 0 0;
  font-size: 14px;
  color: #c6281a;
}

.whatsapp-code-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin: 1.1rem 0 1.3rem;
}

.whatsapp-code-row {
  display: flex;
  gap: 5px;
}

.whatsapp-code-box {
  width: 38px;
  height: 46px;
  background: #f3f6fb;
  border: 2px solid #c9d7ea;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0050aa;
  font-size: 18px;
  font-weight: 700;
}

.whatsapp-code-box--loading svg {
  opacity: 0.7;
  animation: mi-wa-spin 1.2s linear infinite;
}

@keyframes mi-wa-spin {
  to {
    transform: rotate(360deg);
  }
}

.whatsapp-code-sep {
  font-size: 20px;
  font-weight: 700;
  color: #adb5bd;
}

.whatsapp-steps {
  margin: 0;
  padding-left: 22px;
  list-style: decimal;
  line-height: 1.55;
  font-size: 14px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whatsapp-steps li {
  display: list-item;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px 12px 12px;
}

.parcel-success-block {
  position: fixed;
  inset: 0;
  z-index: 10110;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 28, 40, 0.58);
  padding: 20px;
}

.parcel-success-block[hidden] {
  display: none !important;
}

.parcel-success-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.2rem 1.6rem;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  animation: mi-wa-pop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.parcel-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: rgba(0, 80, 170, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0050aa;
}

.parcel-success-title {
  margin: 0 0 0.4rem;
  font-size: 28px;
  font-weight: 800;
  color: #0050aa;
}

.parcel-success-text {
  margin: 0;
  color: #64748b;
  font-size: 17px;
  line-height: 1.45;
}
