/* Cart reminder: welcome-back card (desktop), slim strip (phones). inc/cart-reminder.php
   Same look as the header ZIP popover: Outfit, 320px, light border and shadow. */
.bwo-cart-rem {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9990;
  width: 320px;
  max-width: calc(100vw - 32px);
  border: 1px solid #ececec;
  border-top: 3px solid #d01010;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  color: #111;
  font-family: Outfit, sans-serif;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .25s, transform .25s;
}
.bwo-cart-rem.is-in { opacity: 1; transform: none; }
.bwo-cart-rem__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #111;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.bwo-cart-rem__close:hover,
.bwo-cart-rem__close:focus { background: #f5f5f5; color: #d01010; }
.bwo-cart-rem__full { padding: 14px 16px 16px; }
.bwo-cart-rem__hello { margin: 0 30px 10px 0; font-size: 18px; font-weight: 500; }
.bwo-cart-rem__items { display: flex; gap: 12px; align-items: center; }
.bwo-cart-rem__icon { flex: none; display: flex; color: #222; }
.bwo-cart-rem__full .bwo-cart-rem__icon {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f2f2f2;
}
.bwo-cart-rem__full .bwo-cart-rem__icon svg { width: 28px; height: 28px; }
.bwo-cart-rem__names { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bwo-cart-rem__names strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 500; }
.bwo-cart-rem__sub,
.bwo-cart-rem__more { color: #666; font-size: 13px; }
.bwo-cart-rem__totals {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fdf3f3;
  font-size: 14px;
}
.bwo-cart-rem__totals strong { font-size: 18px; font-weight: 500; }
.bwo-cart-rem__save { color: #1a8a3c; font-weight: 500; }
.bwo-cart-rem__eta { margin: 0 0 10px; color: #1a8a3c; font-size: 13px; }
.bwo-cart-rem__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px !important;
  font-weight: 500;
  text-decoration: none;
}
.bwo-cart-rem__strip { display: none; }

/* Cart icon nudge: two pulses, then a note on hover (or briefly after the pulse on touch screens). */
.bwo-has-cart-tip { position: relative; }
/* The icon's own wrapper: Astra's outer cart elements can't be scaled. */
.bwo-cart-pulse .ast-addon-cart-wrap { animation: bwo-cart-pulse 1s ease-in-out 2; transform-origin: center; }
@keyframes bwo-cart-pulse {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.25); }
  60% { transform: scale(.95); }
}
.bwo-cart-tip {
  position: absolute;
  top: calc(100% + 8px);
  right: -10px;
  z-index: 9995;
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 220px;
  padding: 12px 14px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  color: #111;
  font-family: Outfit, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}
/* The header gives its items a tall line height and block spacing; reset it inside the note. */
.bwo-cart-tip > * {
  display: block;
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 1.35 !important;
}
.bwo-cart-tip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
}
.bwo-cart-tip strong { font-size: 16px; font-weight: 500; }
.bwo-cart-tip span { color: #444; }
.bwo-cart-tip a { margin-top: 4px; color: #d01010; font-weight: 500; text-decoration: none; }
.bwo-cart-tip a:hover { text-decoration: underline; }
@media (hover: hover) {
  .bwo-has-cart-tip:hover .bwo-cart-tip { display: flex; }
  /* Invisible bridge over the 10px gap, so moving down to "Checkout" keeps the note open. */
  .bwo-has-cart-tip:hover::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    height: 12px;
  }
}
.bwo-cart-tip-open .bwo-cart-tip { display: flex; }
@media (prefers-reduced-motion: reduce) {
  .bwo-cart-pulse .ast-addon-cart-wrap { animation: none; }
}

@media (max-width: 767px) {
  .bwo-cart-rem {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    border-top-width: 3px;
    border-radius: 12px;
  }
  .bwo-cart-rem__full { display: none; }
  .bwo-cart-rem__strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 44px 12px 14px;
    color: #111;
    text-decoration: none;
  }
  .bwo-cart-rem__strip-text { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 14px; }
  .bwo-cart-rem__go {
    flex: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: #d01010;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
  }
  .bwo-cart-rem__strip .bwo-cart-rem__icon {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f2f2f2;
  }
  .bwo-cart-rem__strip .bwo-cart-rem__icon svg { width: 28px; height: 28px; }
  .bwo-cart-rem__close {
    top: -10px;
    right: -6px;
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
}
