/* Spend-to-save pill, WOULD YOU LIKE strip, view-cart save row.
   Lives here — do not restyle .rwx-be-design-canvas in explorer.css. */

.rwx-be-spend-pill {
  position: absolute;
  top: 0.7rem;
  left: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  height: 40px;
  width: max-content;
  min-width: 40rem;
  max-width: min(72rem, calc(100% - 14rem));
  padding: 0 0.7rem 0 0.5rem;
  overflow: hidden;
  border: 2px solid #c9a227;
  border-radius: 8px;
  transform: skewX(var(--rwx-be-lean, 14deg));
  transform-origin: center;
  pointer-events: auto;
  cursor: pointer;
  font: 300 12px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #f5f8fc;
  background: linear-gradient(180deg, rgba(42, 51, 68, 0.86) 0%, rgba(11, 18, 32, 0.82) 52%, rgba(6, 8, 13, 0.86) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -3px 6px rgba(0, 0, 0, 0.4) inset,
    0 8px 22px rgba(0, 0, 0, 0.45);
}

.rwx-be-classic ~ .rwx-be-spend-pill,
.rwx-be-chrome .rwx-be-spend-pill {
  display: none;
}

.rwx-be-spend-pill > * {
  transform: skewX(calc(var(--rwx-be-lean, 14deg) * -1));
}

.rwx-be-spend-pill-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rwx-be-spend-pill-icon .rwx-be-so-cart-icon {
  display: block;
  width: 1.7rem;
  height: 1.48rem;
}

.rwx-be-spend-pill-icon .rwx-be-so-cart-icon [stroke="#000"] {
  stroke: #f5f8fc;
}

.rwx-be-spend-pill-icon .rwx-be-so-cart-icon circle[fill="#000"] {
  fill: #f5f8fc;
}

.rwx-be-spend-pill-cart {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #f5f8fc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.rwx-be-spend-strip {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 0;
  min-width: 100%;
  max-width: 100%;
  margin: 0.55rem 0 0;
  padding: 1.1rem 0.65rem 1.2rem;
  border: 0;
  border-radius: 14px;
  /* First-pass wash — Michael will lock the red on render. Lighter than the qty decision. */
  background: rgba(168, 36, 42, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: none;
  font: 300 var(--rwx-be-so-title-size, 1.65rem)/1.15 var(--rwx-be-overlay-font, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  color: #f5f8fc;
}

.rwx-be-spend-strip[hidden] {
  display: none;
}

.rwx-be-spend-strip-title {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  min-height: var(--rwx-be-so-bar-min, 10mm);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.9rem;
  border: 0;
  border-radius: 10px;
  background: rgba(245, 248, 252, 0.16);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 8px 16px rgba(0, 0, 0, 0.35);
  font-size: var(--rwx-be-so-title-size, 1.65rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #f5f8fc;
}

.rwx-be-spend-strip-folders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: 100%;
}

.rwx-be-spend-strip-folder {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #f5f8fc;
  font: inherit;
  font-weight: 300;
  cursor: pointer;
  box-sizing: border-box;
}

.rwx-be-spend-thumb,
.rwx-be-spend-soon {
  display: block;
  width: 80%;
  height: auto;
  max-height: 7.36rem;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  margin: 0 auto;
  border-radius: 10px;
}

.rwx-be-spend-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.6rem;
  box-sizing: border-box;
}

.rwx-be-spend-strip-name {
  display: none;
}

.rwx-be-spend-lure {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.rwx-be-spend-lure-track {
  position: relative;
  width: 100%;
  height: 2.85rem;
  min-height: max(2.6rem, var(--rwx-be-so-bar-min, 10mm));
  border-radius: 10px;
  overflow: hidden;
  background: rgba(6, 8, 12, 0.82);
  border: 0;
  box-shadow: none;
}

.rwx-be-spend-lure-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 8, 10, 0.55),
    rgba(36, 92, 186, 0.68),
    rgba(232, 118, 36, 0.72)
  );
  box-shadow: none;
  animation: rwx-be-spend-lure-grow 7s ease-in-out infinite;
  pointer-events: none;
}

.rwx-be-spend-strip-move {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: var(--rwx-be-so-bar-min, 10mm);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.008em;
  text-transform: uppercase;
  color: #f5f8fc;
  text-align: center;
  white-space: nowrap;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.82), 0 0 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

@keyframes rwx-be-spend-lure-grow {
  0% {
    width: 0;
    background: linear-gradient(
      90deg,
      rgba(8, 8, 10, 0.45),
      rgba(8, 8, 10, 0.55)
    );
  }
  58% {
    width: var(--rwx-be-lure-to, 0%);
    background: linear-gradient(
      90deg,
      rgba(8, 8, 10, 0.55),
      rgba(36, 92, 186, 0.68),
      rgba(232, 118, 36, 0.72)
    );
  }
  74% {
    width: var(--rwx-be-lure-to, 0%);
    background: linear-gradient(
      90deg,
      rgba(8, 8, 10, 0.55),
      rgba(36, 92, 186, 0.68),
      rgba(232, 118, 36, 0.72)
    );
  }
  100% {
    width: 0;
    background: linear-gradient(
      90deg,
      rgba(8, 8, 10, 0.45),
      rgba(8, 8, 10, 0.55)
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .rwx-be-spend-lure-fill {
    animation: none;
    width: var(--rwx-be-lure-to, 0%);
  }
}

.rwx-be-spend-pill.is-best-price .rwx-be-spend-lure-fill,
.rwx-be-spend-lure-track.is-best-price .rwx-be-spend-lure-fill {
  animation: none;
  width: 100%;
  background: #e87624;
}

/* Best-price only: solid orange would hide the sentence if it stayed under the fill.
   Guest / apply-on keep fill z-index 2 over the sentence (see-through wash). */
.rwx-be-spend-pill.is-best-price .rwx-be-spend-strip-move,
.rwx-be-spend-lure-track.is-best-price .rwx-be-spend-strip-move {
  z-index: 3;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(11, 18, 32, 0.92), 0 0 8px rgba(11, 18, 32, 0.55);
}

.rwx-be-spend-pill .rwx-be-spend-lure-track {
  flex: 1 1 auto;
  width: auto;
  height: 22px;
  max-height: 22px;
  min-height: 22px;
  min-width: 12rem;
}

.rwx-be-spend-pill.is-best-price .rwx-be-spend-lure-track {
  min-width: 6.8rem;
}

.rwx-be-spend-pill .rwx-be-spend-strip-move {
  font-size: 12px;
  min-height: 0;
  padding: 0 0.45rem;
}

.rwx-be-spend-pill.is-best-price .rwx-be-spend-strip-move {
  letter-spacing: 0;
}

.rwx-be-spend-save {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font: 300 1rem/1.3 var(--rwx-be-overlay-font, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  color: #f5f8fc;
}

.rwx-be-spend-save[hidden] {
  display: none;
}

.rwx-be-spend-save-amt {
  font-weight: 300;
  min-width: 14ch;
  text-align: right;
}
