/* Advanced Cart - Menu Cart, Mini Cart, Floating Cart. All selectors scoped to .acw-* */

.acw-menu-cart {
	display: flex;
	align-items: center;
}

/* Keep the Mini Cart above sibling fixed mobile navigation when its Elementor widget creates a stacking context. */
.elementor-element.acw-mini-cart-layer {
	z-index: 2147483647 !important;
}

.acw-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Trigger --------------------------------------------------------------- */
.acw-trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	cursor: pointer;
	line-height: 1;
	color: #222;
	font: inherit;
}

.acw-trigger__icon {
	display: inline-flex;
	line-height: 1;
}

.acw-trigger__icon svg {
	width: 1em;
	height: 1em;
}

.acw-count-bubble {
	position: absolute;
	top: -8px;
	right: -8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	min-height: 18px;
	padding: 0 4px;
	font-size: 11px;
	line-height: 1;
	border-radius: 50%;
	background: #111;
	color: #fff;
}

/* Mini Cart ------------------------------------------------------------- */
.acw-mini-cart {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
}

.acw-mini-cart[hidden] {
	display: none;
}

.acw-mini-cart__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	transition: opacity .2s ease;
}

.acw-mini-cart.acw-is-open .acw-mini-cart__overlay {
	opacity: 1;
}

.acw-mini-cart__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(100%, 35%);
	max-width: 100%;
	padding: 20px;
	background: #fff;
	box-shadow: 0 0 40px rgba(0, 0, 0, .15);
	transition: transform .25s ease;
	overflow: hidden;
	outline: none;
}

.acw-mini-cart--right .acw-mini-cart__panel {
	right: 0;
	transform: translateX(100%);
}

.acw-mini-cart--left .acw-mini-cart__panel {
	left: 0;
	transform: translateX(-100%);
}

.acw-mini-cart.acw-is-open .acw-mini-cart__panel {
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.acw-mini-cart__panel,
	.acw-mini-cart__overlay {
		transition: none;
	}
}

.acw-mini-cart__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.acw-mini-cart__title {
	font-size: 18px;
	font-weight: 600;
}

.acw-mini-cart__close {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px;
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	color: #222;
	line-height: 1;
}

.acw-mini-cart__close svg {
	width: 1em;
	height: 1em;
}

.acw-mini-cart__sep {
	border-top: 1px solid rgba(0, 0, 0, .1);
	margin: 14px 0;
}

.acw-mini-cart__body {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
}

/*
 * Keep the two mini-cart sections independent:
 * 1) Cart items get their own vertical scroll.
 * 2) Upsell/cross-sell stays outside that scroll area and owns its
 *    horizontal scroll via .acw-products__scroll.
 */
.acw-mini-cart__items {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.acw-products {
	flex: 0 0 auto;
	min-height: 0;
	max-height: 34%;
	margin-top: 18px;
}

.acw-mini-cart__footer {
	flex: 0 0 auto;
	padding-top: 14px;
}

.acw-mini-cart__subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	font-weight: 600;
}

.acw-mini-cart__buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Cart item ------------------------------------------------------------- */
.acw-cart-item {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	background: #fff;
	color: #222;
	transition: background-color .2s ease;
}

.acw-cart-item__media {
	flex: 0 0 72px;
	width: 72px;
}

.acw-cart-item__media img {
	display: block;
	width: 100%;
	height: auto;
}

.acw-cart-item__body {
	flex: 1 1 auto;
	min-width: 0;
}

.acw-cart-item__title a {
	text-decoration: none;
	color: #222;
}

.acw-cart-item__variation {
	font-size: 12px;
	opacity: .8;
}

.acw-cart-item__variation p {
	margin: 0;
}

.acw-cart-item__price,
.acw-cart-item__line {
	margin-top: 2px;
}

.acw-cart-item__controls {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin-top: 8px;
}

.acw-qty,
.adv-cart-quantity {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 4px;
	overflow: hidden;
	width: 100%;
	min-width: 0;
}

.acw-qty__btn {

	min-width: 0;
	height: auto;
	flex: 0 1 auto;
	flex-shrink: 1;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	cursor: pointer;
	font: inherit;
	line-height: 0;
	color: #222;
}

.acw-qty__input,
.adv-qty-input {
	flex: 1;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 0;
	align-self: stretch;
	box-sizing: border-box;
	padding: 6px 8px;
	text-align: center;
	border: none !important;
	border-radius: 0;
	box-shadow: none !important;
	outline: none !important;
	outline-offset: 0;
	background: transparent;
	overflow: visible;
	font: inherit;
	color: #222;
	-moz-appearance: textfield;
}

.acw-qty__input::-webkit-outer-spin-button,
.acw-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.acw-cart-item__remove {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	padding: 0 4px;
	color: #222;
}

.acw-cart-item__remove svg { width:1em; height:1em; fill:currentColor; }

/* Empty state ----------------------------------------------------------- */
.acw-empty {
	display: none;
	padding: 24px 0;
	text-align: center;
}

.acw-is-empty .acw-empty {
	display: block;
}

.acw-is-empty .acw-mini-cart__items,
.acw-is-empty .acw-mini-cart__footer,
.acw-is-empty .acw-products {
	display: none;
}

.acw-empty__text {
	margin: 0 0 12px;
}

.acw-empty__btn {
	display: inline-block;
	padding: 10px 18px;
	background: #111;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
}

/* Buttons --------------------------------------------------------------- */
.acw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	font: inherit;
	text-decoration: none;
	background: #111;
	color: #fff;
	text-align: center;
}

.acw-btn--view {
	background: transparent;
	color: #222;
	border: 1px solid currentColor;
}

.acw-btn svg {
	width: 1em;
	height: 1em;
}

.acw-is-hidden {
	display: none !important;
}

/* Coupon ---------------------------------------------------------------- */
.acw-coupon {
	margin-bottom: 12px;
	color: #222;
}

.acw-coupon__toggle {
	display:flex;
	align-items:center;
	justify-content:space-between;
	width:100%;
	padding:10px 0;
	border:0;
	border-bottom:1px solid #e2e2e2;
	background:transparent;
	color:#222;
	cursor:pointer;
	font:inherit;
}

.acw-coupon__toggle[aria-expanded="true"] span { transform:rotate(45deg); }
.acw-coupon__toggle span { transition:transform .2s ease; }
.acw-coupon__body { padding-top:10px; }
.acw-coupon__body[hidden] { display:none; }

.acw-coupon__form {
	display: flex;
	gap: 8px;
}

.acw-coupon__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 4px;
	font: inherit;
	background: #fff;
	color: #222;
}

.acw-coupon__apply {
	padding: 10px 16px;
	border: 0;
	border-radius: 4px;
	background: #111;
	color: #fff;
	cursor: pointer;
	font: inherit;
}

.acw-coupon__applied {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.acw-coupon__applied-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 999px;
	font-size: 13px;
}

.acw-coupon__remove {
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0;
	color: #222;
}

/* Upsell / cross-sell --------------------------------------------------- */
.acw-products__heading {
	font-weight: 600;
}

.acw-products__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.acw-products__navigation {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 1 1 auto;
	gap: 8px;
}

.acw-products__nav-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #111;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.acw-products__nav-button svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.acw-products__nav-button:disabled {
	opacity: .35;
	cursor: default;
}

.acw-products__scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 6px;
}

.acw-products__scroll::-webkit-scrollbar {
	display: none;
}

.acw-products__track {
	display: flex;
	gap: 12px;
	min-width: min-content;
}

.acw-products__cell {
	scroll-snap-align: start;
}

/* Built-in card cells only - a Loop Item cell sizes itself from its own design. */
.acw-products__cell:not(.acw-products__cell--loop) {
	flex: 0 0 150px;
	width: 150px;
}

.acw-products__cell--loop {
	flex: 0 0 auto;
	width: auto;
	max-width: none;
}

.acw-products__cell--loop > .acw-products__loop {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.acw-product {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
}

.acw-product__media img {
	display: block;
	width: 100%;
	height: auto;
}

.acw-product__title {
	font-size: 13px;
	line-height: 1.3;
	text-decoration: none;
	color: #222;
}

.acw-product__price {
	font-size: 13px;
}

.acw-product__option {
	display: block;
	font-size: 12px;
}

.acw-product__option select {
	width: 100%;
	max-width: 100%;
	font-size: 12px;
	padding: 4px;
}

.acw-product__option select.acw-invalid {
	border-color: #c0392b;
}

.acw-product__add {
	margin-top: auto;
	padding: 8px 10px;
	border: 0;
	border-radius: 4px;
	background: #111;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
}

/* Floating cart --------------------------------------------------------- */
.acw-floating-cart {
	position: fixed;
	z-index: 99998;
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font: inherit;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
	--acw-float-v: 20px;
	--acw-float-h: 20px;
	--acw-float-b: 20px;
}

.acw-floating-cart__count-section,
.acw-floating-cart__price-section {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 12px 14px;
	background: #111;
}

.acw-floating-cart__count-section {
	flex-direction: column;
}

.acw-floating-cart__price-section {
	flex-direction: column;
}

.acw-floating-cart--right {
	right: var(--acw-float-h);
}

.acw-floating-cart--left {
	left: var(--acw-float-h);
}

.acw-floating-cart--v-top {
	top: var(--acw-float-v);
}

.acw-floating-cart--v-bottom {
	bottom: var(--acw-float-v);
}

.acw-floating-cart--v-center {
	top: 50%;
	transform: translateY(-50%);
}

.acw-floating-cart--v-custom {
	top: var(--acw-float-v);
}

.acw-floating-cart--bottom {
	bottom: var(--acw-float-b);
}

.acw-floating-cart--h-left {
	left: var(--acw-float-h);
}

.acw-floating-cart--h-right {
	right: var(--acw-float-h);
}

.acw-floating-cart--h-center {
	left: 50%;
	transform: translateX(-50%);
	margin-left: var(--acw-float-h);
}

.acw-floating-cart__icon {
	display: inline-flex;
	font-size: 22px;
	line-height: 1;
}

.acw-floating-cart__icon svg {
	width: 1em;
	height: 1em;
}

.acw-floating-cart__count,
.acw-floating-cart__price {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
}

.acw-floating-cart__divider {
	border-top: 1px solid rgba(255, 255, 255, .35);
	width: 100%;
	min-width: 16px;
	display: block;
}


/* State ----------------------------------------------------------------- */
.acw-is-busy {
	opacity: .55;
	pointer-events: none;
}

.acw-notice {
	padding: 8px 12px;
	margin-bottom: 8px;
	border-radius: 4px;
	font-size: 14px;
}

.acw-notice--error {
	background: #fdecea;
	color: #922;
}

.acw-notice--success {
	background: #edf7ed;
	color: #256029;
}

html.acw-mini-open {
	overflow: hidden;
}

/* Theme-color isolation for plugin-controlled interactive states. */
.acw-trigger:hover { color:#222; }
.acw-mini-cart__close:hover { color:#222; }
/* Block the active theme's global button hover background from leaking in.
   Elementor-configured hover backgrounds are emitted with !important and still apply. */
.acw-trigger:hover,.acw-trigger:focus,.acw-trigger:active,
.acw-mini-cart__close:hover,.acw-mini-cart__close:focus,.acw-mini-cart__close:active,
.acw-cart-item__remove:hover,.acw-cart-item__remove:focus,.acw-cart-item__remove:active,
.acw-qty__btn:hover,.acw-qty__btn:focus,.acw-qty__btn:active { background-color: transparent !important; background-image: none !important; box-shadow: none !important; }
/* Plus/Minus: block theme hover backgrounds while honouring Elementor-configured colors. */
.acw-qty .acw-qty__btn--minus:hover,.acw-qty .acw-qty__btn--minus:focus,.acw-qty .acw-qty__btn--minus:active { background-color: var(--acw-qty-minus-bg-hover, var(--acw-qty-minus-bg, transparent)) !important; background-image: none !important; box-shadow: none !important; }
.acw-qty .acw-qty__btn--plus:hover,.acw-qty .acw-qty__btn--plus:focus,.acw-qty .acw-qty__btn--plus:active { background-color: var(--acw-qty-plus-bg-hover, var(--acw-qty-plus-bg, transparent)) !important; background-image: none !important; box-shadow: none !important; }
.acw-cart-item__title,.acw-cart-item__title a,.acw-cart-item__price,.acw-cart-item__variation { color:#222; }
.acw-qty__btn:hover,.acw-cart-item__remove:hover,.acw-coupon__remove:hover { color:#222; }
.acw-btn--view:hover { background:transparent; color:#222; }
.acw-btn--checkout:hover,.acw-coupon__apply:hover,.acw-empty__btn:hover,.acw-product__add:hover { background:#111; color:#fff; }
.acw-floating-cart:hover { background:transparent; color:#fff; }
