/* Overlay Please wait — patrón portalb / cargoTRACE, colores Tiffany Supplier Connect */
html.psc-wait-active {
  overflow: hidden;
}

.psc-wait {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.psc-wait.is-visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.psc-wait[hidden] {
  display: none !important;
}

.psc-wait.is-visible[hidden] {
  display: flex !important;
}

.psc-wait__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 28, 26, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.psc-wait__card {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  padding: 1.75rem 1.5rem 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(13, 148, 136, 0.28);
  background: linear-gradient(
    165deg,
    rgba(12, 48, 45, 0.98) 0%,
    rgba(8, 32, 30, 0.99) 100%
  );
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(45, 212, 191, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  animation: psc-wait-card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.psc-wait__rings {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.15rem;
}

.psc-wait__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  transform-origin: center center;
  will-change: transform;
}

.psc-wait__ring--outer {
  border-top-color: rgba(45, 212, 191, 0.95);
  border-right-color: rgba(45, 212, 191, 0.4);
  border-bottom-color: rgba(45, 212, 191, 0.1);
  animation: psc-wait-spin 0.9s linear infinite;
}

.psc-wait__ring--mid {
  inset: 10px;
  border-bottom-color: rgba(13, 148, 136, 0.95);
  border-left-color: rgba(13, 148, 136, 0.4);
  border-top-color: rgba(13, 148, 136, 0.1);
  animation: psc-wait-spin 0.65s linear infinite reverse;
}

.psc-wait__core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #5eead4 0deg,
    #2dd4bf 90deg,
    #0d9488 180deg,
    #0f766e 270deg,
    #5eead4 360deg
  );
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.35);
  transform-origin: center center;
  will-change: transform;
  animation: psc-wait-core-spin 1s linear infinite;
}

.psc-wait__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.psc-wait__hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
}

.psc-wait__track {
  margin: 1.1rem auto 0.65rem;
  height: 4px;
  max-width: 200px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.psc-wait__shimmer {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 212, 191, 0.35),
    rgba(45, 212, 191, 0.85),
    rgba(45, 212, 191, 0.35),
    transparent
  );
  animation: psc-wait-shimmer 1.35s ease-in-out infinite;
}

.psc-wait__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  height: 0.5rem;
}

.psc-wait__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  animation: psc-wait-dot 1.1s ease-in-out infinite;
}

.psc-wait__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.psc-wait__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes psc-wait-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes psc-wait-core-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes psc-wait-shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

@keyframes psc-wait-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes psc-wait-card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
