/* Base overlay */
.juice-throbber {
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 75%);
  z-index: 1500 !important;
  position: fixed;
  top: 0;
  left: 0;
}
.juice-throbber[hidden] {
  display: none !important;
}

/* Wrapper */
.juice-throbber__wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 150px;
  height: 150px;
}

/* Label */
.juice-throbber__label {
  color: #fff;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 125%;
  margin-top: 1rem;
}

/* ===========================================================
   MORPHING SVG ICONS
   =========================================================== */
.throbber-icon .icon-path {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.throbber-icon .envelope {
  opacity: 1; /* Always start visible */
}

/* Regular loading: Envelope ↔ House */
.throbber-icon.regular-mode .envelope,
.throbber-icon.regular-mode .house {
  animation: morph-loop 2.5s infinite;
}
.throbber-icon.regular-mode .house {
  animation-direction: reverse;
}

/* Add-to-cart: Envelope ↔ Cart */
.throbber-icon.cart-mode .envelope,
.throbber-icon.cart-mode .cart {
  animation: morph-loop 2.5s infinite;
}
.throbber-icon.cart-mode .cart {
  animation-direction: reverse;
}

/* Shared looping animation */
@keyframes morph-loop {
  0%   { opacity: 1; }
  40%  { opacity: 1; }
  50%  { opacity: 0; }
  90%  { opacity: 0; }
  100% { opacity: 1; }
}
