/* Fixed-size icon and badge; only this isolated fixed control expands. */
#a4k-floating-cart {
  --cart-size: 62px;
  --cart-wide: 166px;
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(var(--a4k-cart-floor, 0px) + 22px + env(safe-area-inset-bottom));
  z-index: 351;
  isolation: isolate;
  display: block;
  width: var(--cart-size);
  height: var(--cart-size);
  max-width: calc(100vw - 40px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(22px) scale(.78) rotate(-12deg);
  transition: width .45s cubic-bezier(.16, 1, .3, 1), opacity .22s ease, visibility .22s, transform .48s cubic-bezier(.16, 1, .3, 1), bottom .25s ease;
  -webkit-tap-highlight-color: transparent;
}
#a4k-floating-cart[hidden] { display: none; }
#a4k-floating-cart.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
#a4k-floating-cart.is-drawer-open { opacity: 0; visibility: hidden; pointer-events: none; }
#a4k-floating-cart .a4k-floating-cart__surface {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  background: #3452f4;
  box-shadow: 0 7px 20px rgb(25 42 113 / 24%);
  transition: background-color .18s;
  pointer-events: none;
}
#a4k-floating-cart:focus-visible { outline: 3px solid #17295c; outline-offset: 4px; }
#a4k-floating-cart .a4k-floating-cart__icon {
  position: absolute;
  z-index: 2;
  width: 29px;
  height: 31px;
  left: calc((var(--cart-size) - 29px) / 2);
  top: calc((var(--cart-size) - 31px) / 2);
  background: url("icons/shopping-bag-rounded.svg") center / contain no-repeat;
  pointer-events: none;
}
#a4k-floating-cart .a4k-floating-cart__label {
  position: absolute;
  z-index: 2;
  left: calc(var(--cart-size) - 2px);
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .16s ease, transform .3s ease;
  pointer-events: none;
}
#a4k-floating-cart .a4k-floating-cart__count {
  position: absolute;
  z-index: 3;
  top: -4px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 20px;
  background: #ffc747;
  color: #17213d;
  font: 700 13px/1 Arial, sans-serif;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
#a4k-floating-cart .a4k-floating-cart__mascot {
  position: absolute;
  z-index: 0;
  right: 9px;
  bottom: 8px;
  display: block;
  width: 46px;
  height: 46px;
  max-width: none;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transform-origin: 70% 90%;
}
#a4k-floating-cart.is-expanded,
#a4k-floating-cart:focus-visible { width: var(--cart-wide); }
#a4k-floating-cart.is-expanded .a4k-floating-cart__label,
#a4k-floating-cart:focus-visible .a4k-floating-cart__label { opacity: 1; transform: none; transition-delay: .12s; }
@media (hover: hover) {
  #a4k-floating-cart:hover { width: var(--cart-wide); }
  #a4k-floating-cart:hover .a4k-floating-cart__label { opacity: 1; transform: none; transition-delay: .12s; }
  #a4k-floating-cart:hover .a4k-floating-cart__surface { background: #2442df; }
}
#a4k-floating-cart.is-peeking .a4k-floating-cart__mascot { animation: a4k-cart-peek 2.8s both; }
@keyframes a4k-cart-peek {
  0%, 100% { opacity: 0; transform: translate(0, 0) rotate(0); }
  20%, 68% { opacity: 1; transform: translate(-23px, -28px) rotate(-14deg); }
  80% { opacity: 1; transform: translate(-21px, -26px) rotate(-10deg); }
}
#a4k-floating-cart.is-updated .a4k-floating-cart__count { animation: a4k-cart-count .4s ease-out; }
@keyframes a4k-cart-count {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.22); }
}
body.a4k-has-floating-cart .scrollToTop {
  bottom: calc(var(--a4k-cart-floor, 0px) + 100px + env(safe-area-inset-bottom));
}
@media (max-width: 767px) {
  #a4k-floating-cart {
    --cart-size: 54px;
    --cart-wide: 148px;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(var(--a4k-cart-floor, 0px) + 16px + env(safe-area-inset-bottom));
  }
  #a4k-floating-cart .a4k-floating-cart__label { font-size: 18px; }
  #a4k-floating-cart .a4k-floating-cart__icon {
    width: 26px;
    height: 28px;
    left: calc((var(--cart-size) - 26px) / 2);
    top: calc((var(--cart-size) - 28px) / 2);
  }
  #a4k-floating-cart .a4k-floating-cart__mascot { width: 42px; height: 42px; right: 6px; bottom: 6px; }
  body.a4k-has-floating-cart .scrollToTop {
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(var(--a4k-cart-floor, 0px) + 84px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  #a4k-floating-cart { width: var(--cart-wide); transition: none; transform: none; }
  #a4k-floating-cart .a4k-floating-cart__label { opacity: 1; transform: none; transition: none; }
  #a4k-floating-cart .a4k-floating-cart__mascot { display: none; }
  #a4k-floating-cart.is-updated .a4k-floating-cart__count { animation: none; }
}
