/* Loader con marquito animado (registro, checkout-like, product detail) */

/* —— Modal standalone (registro) —— */
#mmbox-status-loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

#mmbox-status-loader[hidden] {
  display: none !important;
}

#mmbox-status-loader.is-open {
  display: grid;
}

#mmbox-status-loader .mmbox-status-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* —— Overlay de precios (product detail) —— */
#overlay-loading .mmbox-price-loader-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* —— Card + marquito compartidos —— */
.mmbox-status-card {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 24px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.mmbox-status-title {
  margin: 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: Montserrat-Bold, Montserrat, sans-serif;
}

.mmbox-status-text {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  font-family: Montserrat-Regular, Montserrat, sans-serif;
}

.mmbox-frame-stage {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
}

.mmbox-frame {
  position: relative;
  width: 88px;
  height: 88px;
  overflow: hidden;
}

.mmbox-frame-glass {
  position: absolute;
  inset: 12px;
  background: #f3f6f8;
}

.mmbox-frame-bar {
  position: absolute;
  background: #ffc107;
  transform-origin: center;
}

.mmbox-frame-bar--t,
.mmbox-frame-bar--b {
  left: 0;
  height: 10px;
  width: 100%;
}

.mmbox-frame-bar--t {
  top: 0;
  animation: mmbox-frame-h 1.6s ease-in-out infinite;
}

.mmbox-frame-bar--b {
  bottom: 0;
  animation: mmbox-frame-h 1.6s ease-in-out 0.4s infinite;
}

.mmbox-frame-bar--l,
.mmbox-frame-bar--r {
  top: 0;
  width: 10px;
  height: 100%;
}

.mmbox-frame-bar--l {
  left: 0;
  animation: mmbox-frame-v 1.6s ease-in-out 0.2s infinite;
}

.mmbox-frame-bar--r {
  right: 0;
  animation: mmbox-frame-v 1.6s ease-in-out 0.6s infinite;
}

@keyframes mmbox-frame-h {
  0% { transform: scaleX(0); opacity: 0.35; }
  35%, 70% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0.35; }
}

@keyframes mmbox-frame-v {
  0% { transform: scaleY(0); opacity: 0.35; }
  35%, 70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0.35; }
}
