#af-sticky-cart {
  position: fixed;
  inset: auto 0 0;
  z-index: 80;
  margin: 0;
  padding: 14px max(20px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border-top: 1px solid var(--af-card-border, #e5e7eb);
  background: #fff;
  color: var(--af-ink, #18242e);
  box-shadow: 0 -4px 24px rgb(0 0 0 / 7%);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 240ms ease, visibility 0s linear 240ms;
  font: 400 15px/1.4 var(--af-font-sans, sans-serif);
}
#af-sticky-cart.is-visible { transform: translateY(0); visibility: visible; transition-delay: 0s; }
#af-sticky-cart[hidden], .af-sticky-cart-space[hidden], #af-sticky-cart [hidden] { display: none !important; }
.af-sticky-cart-space { height: var(--af-sticky-cart-height, 90px); }
#af-sticky-cart *, #af-sticky-cart { box-sizing: border-box; }
#af-sticky-cart .af-sticky-cart__inner { display: flex; align-items: center; gap: 28px; max-width: var(--af-container, 1200px); margin-inline: auto; }
#af-sticky-cart .af-sticky-cart__product { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
#af-sticky-cart .af-sticky-cart__image { flex: 0 0 56px; }
#af-sticky-cart .af-sticky-cart__image img { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0; }
#af-sticky-cart .af-sticky-cart__details { min-width: 0; }
#af-sticky-cart .af-sticky-cart__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: inherit; text-decoration: none; font-weight: 650; }
#af-sticky-cart .af-sticky-cart__price { margin-top: 4px; font-size: 14px; font-weight: 700; }
#af-sticky-cart .af-sticky-cart__price del { opacity: .65; font-weight: 400; margin-right: 4px; }
#af-sticky-cart .af-sticky-cart__price ins { background: none; text-decoration: none; }
#af-sticky-cart .af-sticky-cart__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
#af-sticky-cart .af-sticky-cart__quantity { display: flex; align-items: center; background: #f3f4f4; border-radius: 999px; overflow: hidden; }
#af-sticky-cart .af-sticky-cart__quantity button, #af-sticky-cart .af-sticky-cart__quantity input {
  width: 44px; min-width: 0; height: 46px; min-height: 46px; padding: 0; margin: 0; border: 0; border-radius: 0;
  background: transparent; color: inherit; text-align: center; box-shadow: none; font: inherit;
}
#af-sticky-cart .af-sticky-cart__quantity button { font-size: 22px; cursor: pointer; }
#af-sticky-cart input[type=number] { appearance: textfield; -moz-appearance: textfield; }
#af-sticky-cart input::-webkit-inner-spin-button, #af-sticky-cart input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#af-sticky-cart .af-sticky-cart__submit {
  min-width: 190px; min-height: 46px; margin: 0; padding: 11px 24px; border: 2px solid transparent; border-radius: 999px;
  background: var(--af-primary, #005a9c); color: #fff; box-shadow: none; font: 700 14px/1.4 var(--af-font-sans, sans-serif); cursor: pointer;
}
#af-sticky-cart .af-sticky-cart__submit:hover { background: var(--af-ocean, #173e54); }
#af-sticky-cart button:disabled { opacity: .45; cursor: not-allowed; }
#af-sticky-cart :is(a, button, input):focus-visible { outline: 2px solid var(--af-primary, #005a9c); outline-offset: -3px; }
@media (max-width: 600px) {
  #af-sticky-cart { padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
  #af-sticky-cart .af-sticky-cart__inner { flex-wrap: wrap; gap: 10px; }
  #af-sticky-cart .af-sticky-cart__product, #af-sticky-cart .af-sticky-cart__actions { width: 100%; }
  #af-sticky-cart .af-sticky-cart__product { gap: 12px; }
  #af-sticky-cart .af-sticky-cart__image { flex-basis: 40px; }
  #af-sticky-cart .af-sticky-cart__image img { width: 40px; height: 40px; }
  #af-sticky-cart .af-sticky-cart__name { font-size: 13px; }
  #af-sticky-cart .af-sticky-cart__price { margin-top: 2px; font-size: 13px; }
  #af-sticky-cart .af-sticky-cart__submit { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #af-sticky-cart { transition: none; }
}
