/** AdFlux WooCommerce conversion components. */

.single-product .woocommerce div.product .summary {
	border-color: #eadfd7;
	box-shadow: 0 12px 34px rgba(51, 32, 18, 0.08);
}

.single-product .woocommerce div.product .summary > .price,
.single-product .woocommerce div.product .summary > .price ins {
	color: #d12c74;
}

.single-product .woocommerce div.product form.cart .adflux-buy-now {
	flex: 1 1 190px;
	background: #151515;
	box-shadow: none;
}

.single-product .woocommerce div.product form.cart .adflux-buy-now:hover {
	background: #000;
}

.adflux-cart-drawer {
	position: fixed;
	z-index: 1001;
	top: 0;
	right: 0;
	width: min(390px, calc(100vw - 32px));
	height: 100dvh;
	overflow-y: auto;
	background: #fff;
	box-shadow: -24px 0 60px rgba(0, 0, 0, 0.28);
	transform: translateX(105%);
	transition: transform 240ms ease;
}

.adflux-cart-drawer.is-open {
	transform: none;
}

.adflux-cart-drawer__header {
	position: sticky;
	z-index: 2;
	top: 0;
	display: flex;
	min-height: 68px;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #eadfd7;
	background: #fff;
}

.adflux-cart-drawer__header h2 {
	margin: 0;
	font-size: 1.2rem;
}

.adflux-cart-drawer__close {
	display: grid;
	width: 42px;
	height: 42px;
	padding: 0;
	place-items: center;
	border: 1px solid #d7ccc4;
	border-radius: 8px;
	background: #fff;
	color: #17211f;
	font-size: 1.6rem;
	line-height: 1;
}

.adflux-cart-drawer__close:hover,
.adflux-cart-drawer__close:focus-visible {
	border-color: #ff7a1a;
	color: #e85f00;
}

.adflux-cart-drawer__body {
	padding: 1rem;
}

.adflux-cart-drawer ul.woocommerce-mini-cart {
	display: grid;
	gap: 0.8rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.adflux-cart-drawer .woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	min-height: 78px;
	align-items: start;
	gap: 0.25rem 0.75rem;
	grid-template-columns: 72px minmax(0, 1fr);
	padding: 0.65rem 1.75rem 0.65rem 0.65rem;
	border: 1px solid #eadfd7;
	border-radius: 9px;
}

.adflux-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) {
	color: #17211f;
	font-size: 0.84rem;
	font-weight: 700;
}

.adflux-cart-drawer .woocommerce-mini-cart-item img {
	float: none;
	width: 64px;
	height: 64px;
	margin: 0;
	border-radius: 6px;
	object-fit: cover;
}

.adflux-cart-drawer .woocommerce-mini-cart-item .remove {
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 50%;
	color: #b42318 !important;
}

.adflux-cart-drawer .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid #eadfd7;
	margin: 0;
}

.adflux-cart-drawer .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	margin: 1rem 0 0;
}

.adflux-cart-drawer .woocommerce-mini-cart__buttons .button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	border-radius: 7px;
	background: #151515;
	color: #fff;
	font-weight: 750;
}

.adflux-cart-drawer .woocommerce-mini-cart__buttons .checkout {
	background: #ff7a1a;
}

.adflux-sticky-cta {
	display: none;
}

@media (max-width: 640px) {
	.single-product {
		padding-bottom: 78px;
	}

	.single-product .woocommerce div.product form.cart .button {
		width: 100%;
	}

	.adflux-sticky-cta {
		position: fixed;
		z-index: 90;
		right: 0;
		bottom: 0;
		left: 0;
		display: grid;
		align-items: center;
		gap: 0.45rem;
		grid-template-columns: auto 1fr 1fr;
		padding: 0.6rem max(0.65rem, env(safe-area-inset-right)) max(0.6rem, env(safe-area-inset-bottom)) max(0.65rem, env(safe-area-inset-left));
		border-top: 1px solid #eadfd7;
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 -8px 28px rgba(30, 42, 38, 0.12);
		backdrop-filter: blur(10px);
	}

	.adflux-sticky-cta__price {
		max-width: 90px;
		color: #d12c74;
		font-size: 0.78rem;
		font-weight: 800;
	}

	.adflux-sticky-cta .button {
		min-height: 46px;
		padding: 0.55rem 0.6rem;
		border: 0;
		border-radius: 7px;
		background: #ff7a1a;
		color: #fff;
		font-size: 0.78rem;
		font-weight: 800;
	}

	.adflux-sticky-cta .adflux-sticky-cta__buy {
		background: #151515;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adflux-cart-drawer {
		transition: none;
	}
}
