/* ------------------------------------------------------------ *\
	Offers popup — ported from the legacy bundle (_module.form.scss +
	_module.loader.scss) so the v3 PDP can drop dist/main.css, which
	otherwise repaints the v3 chrome (nav, buttons, …). The offers
	picker behaviour still ships in dist/main.js. Markup is rendered
	by fragments/v3/product/hero.php when the product has offers.
\* ------------------------------------------------------------ */

.cart-quantity-popup {
	position: fixed;
	top: 60px;
	right: 100%;
	z-index: 102;
	width: 80vw;
	max-width: 800px;
	max-height: 90vh;
	padding: 30px;
	overflow-y: auto;
	background-color: #fff;
	transition: all 0.4s ease-in;
}
.cart-quantity-popup.active {
	right: 50%;
	transform: translateX(50%);
}

.cart-quantity-popup .cart__head {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
	border-bottom: 2px solid #000;
}
.cart-quantity-popup .cart__head h3 {
	margin-bottom: 0;
	color: #000;
	font-family: Geist;
	font-size: 32px;
	font-weight: 500;
	text-align: left;
	text-transform: uppercase;
}
.cart-quantity-popup .cart__close {
	cursor: pointer;
}

.cart-quantity-popup .cart__selector {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: start;
	gap: 20px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cart-quantity-popup .cart__quantity {
	position: relative;
	cursor: pointer;
	transition: all 0.4s ease-in;
}
.cart-quantity-popup .cart__quantity::after {
	content: '';
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	box-shadow: inset 0 0 30px 0 rgba(0, 0, 0, 0.5);
	transition: all 0.4s ease-in;
}
.cart-quantity-popup .cart__quantity:hover::after {
	opacity: 1;
}

/* Responsive image swap (offers shipping table_image / mobile_image variants) */
.cart-quantity-popup .cart__quantity img.table_image,
.cart-quantity-popup .cart__quantity img.mobile_image {
	display: none;
}
@media (max-width: 834px) {
	.cart-quantity-popup .cart__head h3 {
		font-size: 16px;
	}
	.cart-quantity-popup .cart__quantity img:first-child {
		display: none;
	}
	.cart-quantity-popup .cart__quantity img.table_image {
		display: block;
	}
}
@media (max-width: 424px) {
	.cart-quantity-popup .cart__quantity img.table_image {
		display: none;
	}
	.cart-quantity-popup .cart__quantity img.mobile_image {
		display: block;
	}
}

/* Loader + overlay shown during the add-to-cart AJAX */
.app-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.5);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.15s, visibility 0.15s;
}
.app-loader::after {
	content: '';
	position: fixed;
	top: 50%;
	left: 50%;
	display: block;
	width: 60px;
	height: 60px;
	margin: -30px -30px 0 0;
	border: 7px solid #d6d6d6;
	border-top-color: #292929;
	border-radius: 50%;
	animation: spin 2s linear infinite;
}
.app-loader.active {
	visibility: visible;
	opacity: 1;
}

.app-loader-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 101;
	background: rgba(0, 0, 0, 0.7);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s, visibility 0.15s;
}
.app-loader-overlay.active {
	visibility: visible;
	opacity: 1;
}

@keyframes spin {
	100% {
		transform: rotate(360deg);
	}
}
