.aj-fc-fly{position:fixed;left:0;top:0;z-index:999999;object-fit:contain;border-radius:20px;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.2);pointer-events:none;will-change:transform,opacity;backface-visibility:hidden;transform:translate3d(-9999px,0,0)}
.aj-fc-bump{animation:ajfcBump .5s ease}
@keyframes ajfcBump{0%{transform:scale(1)}35%{transform:scale(1.25)}70%{transform:scale(.92)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){
	.aj-fc-bump{animation:none}
}

/* ---------- optional floating cart ---------- */
/* Every rule is prefixed with #aj-fc and buttons are reset, so theme button/link styles cannot break the layout. */
#aj-fc{position:fixed;bottom:calc(var(--ajfc-bottom,90px) + env(safe-area-inset-bottom,0px));z-index:99990;min-width:150px;min-height:48px;font-family:inherit;font-size:14px;line-height:1.3;pointer-events:none;writing-mode:horizontal-tb;text-align:left}
#aj-fc,#aj-fc *,#aj-fc *::before,#aj-fc *::after{box-sizing:border-box}
#aj-fc.aj-fc--right{right:var(--ajfc-side,20px)}
#aj-fc.aj-fc--left{left:var(--ajfc-side,20px)}
#aj-fc button{all:unset;box-sizing:border-box;cursor:pointer;font-family:inherit;-webkit-tap-highlight-color:transparent}
#aj-fc a{text-decoration:none;border:0;box-shadow:none}
#aj-fc ul,#aj-fc li{list-style:none;margin:0;padding:0}
#aj-fc p{margin:0}

/* pill: thumbnails on the left, arrow pinned to the far right */
#aj-fc .aj-fc__pill{position:absolute;bottom:0;display:flex;align-items:center;justify-content:flex-start;gap:8px;height:46px;padding:0 7px;border-radius:999px;color:#fff;
	background:linear-gradient(135deg,var(--ajfc-c1,#ff3b5c),var(--ajfc-c2,#e11d48));box-shadow:0 10px 28px rgba(0,0,0,.28);
	opacity:0;transform:translateY(24px) scale(.9);pointer-events:none;transition:opacity .3s,transform .3s cubic-bezier(.2,.9,.3,1.2)}
#aj-fc.aj-fc--right .aj-fc__pill{right:0}
#aj-fc.aj-fc--left .aj-fc__pill{left:0}
#aj-fc.has-items .aj-fc__pill{opacity:1;transform:none;pointer-events:auto}
#aj-fc.is-open .aj-fc__pill{opacity:0;transform:scale(.85);pointer-events:none}
#aj-fc .aj-fc__pill.is-bump{animation:ajfcBump .45s}
#aj-fc .aj-fc__thumbs{display:flex;align-items:center}
#aj-fc .aj-fc__thumb{width:32px;height:32px;flex:none;border-radius:50%;background:#fff;border:2px solid #fff;overflow:hidden;display:block;margin-left:-10px;box-shadow:0 2px 6px rgba(0,0,0,.2)}
#aj-fc .aj-fc__thumb:first-child{margin-left:0}
#aj-fc .aj-fc__thumb img{width:100%;height:100%;object-fit:contain;display:block;margin:0;border:0;border-radius:0}
#aj-fc .aj-fc__arrow{width:28px;height:28px;flex:none;border-radius:50%;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1;color:#fff;padding-bottom:2px}

/* panel */
#aj-fc .aj-fc__panel{position:absolute;bottom:0;width:340px;max-width:calc(100vw - 32px);padding:16px 14px 14px;border-radius:22px;color:#fff;
	background:linear-gradient(160deg,var(--ajfc-c1,#ff3b5c),var(--ajfc-c2,#e11d48));box-shadow:0 18px 50px rgba(0,0,0,.35);
	opacity:0;transform:scale(.55);pointer-events:none;transition:opacity .25s,transform .35s cubic-bezier(.2,.9,.3,1.15)}
#aj-fc.aj-fc--right .aj-fc__panel{right:0;transform-origin:bottom right}
#aj-fc.aj-fc--left .aj-fc__panel{left:0;transform-origin:bottom left}
#aj-fc.is-open .aj-fc__panel{opacity:1;transform:none;pointer-events:auto}

#aj-fc .aj-fc__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 12px;border-bottom:1px solid rgba(255,255,255,.22);margin-bottom:12px}
#aj-fc .aj-fc__title{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;color:#fff}
#aj-fc .aj-fc__title svg{width:18px;height:18px;flex:none}
#aj-fc .aj-fc__title em{font-style:normal;font-size:11px;background:rgba(255,255,255,.25);padding:1px 8px;border-radius:999px;color:#fff}
/* close: plain X, no background, far right */
#aj-fc .aj-fc__close{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-left:auto;color:#fff;background:none;font-size:26px;line-height:1;opacity:.85}
#aj-fc .aj-fc__close:hover{opacity:1;background:none}

#aj-fc .aj-fc__list{max-height:42vh;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:8px;padding-right:8px;-webkit-overflow-scrolling:touch}
/* always-visible scrollbar (also on phones, where the default one auto-hides) */
#aj-fc .aj-fc__list::-webkit-scrollbar{width:5px;-webkit-appearance:none}
#aj-fc .aj-fc__list::-webkit-scrollbar-track{background:rgba(255,255,255,.18);border-radius:999px}
#aj-fc .aj-fc__list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.7);border-radius:999px}
@supports not selector(::-webkit-scrollbar){#aj-fc .aj-fc__list{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.7) rgba(255,255,255,.18)}}
#aj-fc .aj-fc__item{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px;border-radius:20px;background:rgba(255,255,255,.15);transition:opacity .2s}
#aj-fc .aj-fc__item.is-busy{opacity:.55;pointer-events:none}
#aj-fc .aj-fc__img{width:46px;height:46px;border-radius:20px;background:#fff;overflow:hidden;display:block}
#aj-fc .aj-fc__img img{width:100%;height:100%;object-fit:contain;display:block;margin:0;border:0}
#aj-fc .aj-fc__info{display:flex;flex-direction:column;min-width:0;writing-mode:horizontal-tb}
#aj-fc .aj-fc__info small{display:block;font-size:10px;line-height:1.3;letter-spacing:.06em;text-transform:uppercase;color:#fff;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#aj-fc .aj-fc__name{display:block;color:#fff;font-size:13px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal}
#aj-fc .aj-fc__side{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
#aj-fc .aj-fc__price{font-weight:700;font-size:13px;line-height:1.2;white-space:nowrap;color:#fff}
#aj-fc .aj-fc__price *{color:#fff!important;font-size:inherit!important;background:none!important}
#aj-fc .aj-fc__qty{display:flex;align-items:center;gap:6px}
#aj-fc .aj-fc__qty span{min-width:14px;text-align:center;font-size:12px;font-weight:700;color:#fff}
#aj-fc .aj-fc__qbtn{display:flex;align-items:center;justify-content:center;width:22px;height:22px;flex:none;border-radius:50%;background:rgba(255,255,255,.25);color:#fff;font-size:14px;line-height:1}
#aj-fc .aj-fc__qbtn:hover{background:rgba(255,255,255,.4)}
#aj-fc .aj-fc__qbtn svg{width:11px;height:11px}
#aj-fc .aj-fc__msg{margin-top:10px;padding:6px 10px;border-radius:20px;background:rgba(0,0,0,.2);font-size:12px;color:#fff}

#aj-fc .aj-fc__sub{display:flex;justify-content:space-between;align-items:center;margin:14px 2px 10px;font-size:13px;color:#fff}
#aj-fc .aj-fc__sub strong{font-size:18px;color:#fff}
#aj-fc .aj-fc__sub strong *{color:#fff!important;font-size:inherit!important}
#aj-fc a.aj-fc__go{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;text-align:center;padding:13px 18px;border-radius:999px;transition:transform .15s;background:#fff;color:#111!important;font-weight:700;font-size:14px}
#aj-fc a.aj-fc__go span:last-child{font-size:12px;font-weight:600;opacity:.8;color:#111}
#aj-fc a.aj-fc__go:hover{filter:brightness(.96)}

#aj-fc a.aj-fc__go:active{transform:scale(.97)}
#aj-fc a.aj-fc__go .aj-fc__lbl{display:block;width:100%;text-align:center;transition:opacity .15s}
#aj-fc a.aj-fc__go.is-loading .aj-fc__lbl{opacity:0}
#aj-fc a.aj-fc__go .aj-fc__spin{position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border:2px solid rgba(0,0,0,.18);border-top-color:#111;border-radius:50%;animation:ajfcSpin .7s linear infinite}
#aj-fc a.aj-fc__go::after{content:"";position:absolute;top:0;bottom:0;left:0;width:60%;background:linear-gradient(110deg,transparent,rgba(0,0,0,.1),transparent);transform:translateX(-120%);pointer-events:none}
#aj-fc a.aj-fc__go.is-loading::after{animation:ajfcSweep .8s ease-in-out infinite}
@keyframes ajfcSweep{to{transform:translateX(260%)}}
@keyframes ajfcSpin{to{transform:rotate(360deg)}}

/* free shipping progress */
#aj-fc .aj-fc__panel .aj-fc__free,#aj-fc .aj-fc__free.is-done{margin-top:10px;padding:10px 12px 12px;border-radius:0!important;background:transparent!important;background-color:transparent!important;box-shadow:none!important;border:0!important;text-align:center!important}
#aj-fc .aj-fc__ftext{font-size:12px;line-height:1.3;color:#fff;margin-bottom:10px;text-align:center!important;width:100%;display:block}
#aj-fc .aj-fc__ftext strong,#aj-fc .aj-fc__ftext strong *{color:#fff!important;font-weight:700;font-size:inherit!important}
#aj-fc .aj-fc__track{position:relative;height:8px;border-radius:999px;background:rgba(255,255,255,.25)}
#aj-fc .aj-fc__fill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:999px;overflow:hidden;background:#fff;transition:width .9s cubic-bezier(.3,.8,.3,1)}
#aj-fc .aj-fc__fill::after{content:"";position:absolute;top:0;bottom:0;left:0;width:50%;background:linear-gradient(90deg,transparent,rgba(225,29,72,.35),transparent);animation:ajfcShine 1.6s linear infinite}
#aj-fc .aj-fc__truck{position:absolute;top:50%;left:0;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:#fff;color:var(--ajfc-c2,#e11d48);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.25);transition:left .9s cubic-bezier(.3,.8,.3,1)}
#aj-fc .aj-fc__truck svg{width:14px;height:14px}
#aj-fc .aj-fc__free.no-anim .aj-fc__fill,#aj-fc .aj-fc__free.no-anim .aj-fc__truck{transition:none}
#aj-fc .aj-fc__free.is-done .aj-fc__fill{background:#4ade80}
#aj-fc .aj-fc__free.is-done .aj-fc__truck{color:#16a34a}
#aj-fc .aj-fc__free.is-pop{animation:ajfcPop .6s ease .5s}
@keyframes ajfcShine{from{transform:translateX(-100%)}to{transform:translateX(300%)}}
@keyframes ajfcPop{0%{transform:scale(1)}40%{transform:scale(1.04)}100%{transform:scale(1)}}

@media (max-width:768px){
	#aj-fc{bottom:calc(var(--ajfc-m-bottom,80px) + env(safe-area-inset-bottom,0px))}
	#aj-fc.aj-fc--right{right:var(--ajfc-m-side,12px)}
	#aj-fc.aj-fc--left{left:var(--ajfc-m-side,12px)}
}
@media (prefers-reduced-motion:reduce){
	#aj-fc .aj-fc__pill,#aj-fc .aj-fc__panel,#aj-fc .aj-fc__fill,#aj-fc .aj-fc__truck{transition:none}
	#aj-fc .aj-fc__fill::after,#aj-fc a.aj-fc__go.is-loading::after{animation:none}
}

/* icon row is pinned while a product is being added: hide anything WooCommerce injects into it meanwhile (e.g. the "View cart" link) */
.aj-fc-frozen>:not([data-aj-fc-kept]){display:none!important}

/* Product card cart icon: after a product is added WooCommerce puts its own "added" tick (::after) on the button.
   That tick takes ~40px of invisible space, so the cart icon and the eye / heart / compare icons next to it
   slide sideways and stay shifted. Remove it, and the "View cart" link WooCommerce adds, on product cards only. */
.product-featured-icons .add_to_cart_button.added:not(.loading)::after,
ul.products li.product .add_to_cart_button.ajax_add_to_cart.added:not(.loading)::after,
.product .add_to_cart_button.ajax_add_to_cart.added:not(.loading)::after{content:none!important;display:none!important;margin:0!important;width:0!important;padding:0!important}
.product-featured-icons .added_to_cart,
ul.products li.product .added_to_cart.wc-forward{display:none!important}

/* Product card cart icon must not move while adding.
   WooCommerce adds ~42px right padding (2.618em) to the button in its loading state, which widens it and pushes the
   cart icon and the eye / heart / compare icons sideways until loading ends. Drop that extra padding (spinner is kept). */
html body .product-featured-icons a.add_to_cart_button.loading,
html body .product-featured-icons a.add_to_cart_button.added,
html body ul.products li.product .product-featured-icons a.add_to_cart_button.loading,
html body ul.products li.product .product-featured-icons a.add_to_cart_button.added,
html body .product .product-featured-icons .add_to_cart_button.loading{padding-right:0!important}
html body .product-featured-icons a.add_to_cart_button.added::after{content:none!important;display:none!important;margin:0!important;width:0!important}

/* ---------- placeholder row: product tapped, server not confirmed yet ---------- */
#aj-fc .aj-fc__item.is-pending{opacity:.8}
#aj-fc .aj-fc__item.is-pending .aj-fc__name{pointer-events:none}
#aj-fc .aj-fc__wait{display:block;width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:ajfcSpin .7s linear infinite}
#aj-fc a.aj-fc__go.is-wait{opacity:.55;pointer-events:none}

/* ---------- icon-only cart button on product cards (phones / tablets) ----------
   The tick shows the moment the button is tapped, in the exact spot of the cart icon.
   The loading spinner is hidden so the icon never jumps; the button keeps its size (see freezeIconRow in aj-fc.js). */
html body a.add_to_cart_button.aj-fc-tick{position:relative!important}
html body a.add_to_cart_button.aj-fc-tick>*{opacity:0!important}
html body a.add_to_cart_button.aj-fc-tick::after{content:none!important;display:none!important}
html body a.add_to_cart_button.aj-fc-tick::before{content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;
	width:18px!important;height:18px!important;margin:-9px 0 0 -9px!important;padding:0!important;border:0!important;border-radius:0!important;
	background:currentColor!important;opacity:1!important;transform:none!important;
	-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat!important;
	mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat!important;
	animation:ajfcTickIn .22s ease-out both!important}
@keyframes ajfcTickIn{from{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}


/* ==== AJ Round UI — shape-only overrides (border-radius only; nothing else changed) ==== */
html #aj-fc .aj-fc__img,html #aj-fc .aj-fc__msg{border-radius:20px!important}
html #aj-fc .aj-fc__item,html .aj-fc-fly{border-radius:24px!important}
html #aj-fc .aj-fc__panel{border-radius:28px!important}
