/* ============================================================
   Goadver AOV Booster — Frontend styles v3.0
   ============================================================ */

:root {
	--gab-card-border: #d8d8d8;
	--gab-active-border: #7f9b63;
	--gab-active-bg: #f8fbf4;
	--gab-badge-bg: #111;
	/* Bundle component name links — override these (or the classes
	   .gab-bundle-item__name / .gab-contents-list a) to restyle without
	   affecting other links on the site. */
	--gab-bundle-link: #222;
	--gab-bundle-link-hover: #7f9b63;
}

/* Hide the theme's native qty + add-to-cart when our selector is present,
   plus the duplicated single price. */
.gab-product-page form.cart > .quantity,
.gab-product-page form.cart .single_add_to_cart_button {
	display: none !important;
}
.gab-product-page .single-product-content .price:first-of-type,
.gab-product-page .product .summary > .price {
	/* keep — some themes need it; comment out if duplicated */
}

.gab-offers {
	margin: 0 0 18px;
}
.gab-pack-selector {
	margin: 0 0 20px;
}

.gab-pack-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.gab-pack-card {
	position: relative;
	flex: 1 1 120px;
	min-width: 110px;
	border: 2px solid var(--gab-card-border);
	border-radius: 10px;
	padding: 14px 12px;
	cursor: pointer;
	text-align: center;
	background: #fff;
	transition: border-color .15s ease, background .15s ease;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.gab-pack-card:hover {
	border-color: var(--gab-active-border);
}
.gab-pack-card.is-active {
	border-color: var(--gab-active-border);
	background: var(--gab-active-bg);
}

.gab-pack-card__label {
	font-weight: 700;
	font-size: 16px;
}
.gab-pack-card__price {
	font-size: 14px;
}
.gab-pack-card__price del {
	opacity: .6;
	font-size: 12px;
	margin-right: 4px;
}
.gab-pack-card__badge {
	position: absolute;
	top: -10px;
	right: -8px;
	background: var(--gab-badge-bg);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 10px;
}

/* Flavor slots */
.gab-flavor-slots {
	display: none;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
}
.gab-pack-card.is-active .gab-flavor-slots {
	display: flex;
}
.gab-flavor-slots select {
	width: 100%;
	font-size: 13px;
	padding: 5px 6px;
}

/* Add-to-cart button */
.gab-add-to-cart {
	width: 100%;
	position: relative;
}
.gab-add-to-cart.loading {
	opacity: .7;
	pointer-events: none;
}
.gab-add-to-cart.loading::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 2px solid rgba(255, 255, 255, .5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: gab-spin .7s linear infinite;
}
@keyframes gab-spin {
	to { transform: rotate(360deg); }
}

/* ---- Bundle "what's inside" block (vertical, 2 columns: image | name) ---- */
.gab-bundle-block {
	margin: 0 0 16px;
}
.gab-bundle-block__title {
	font-weight: 700;
	margin-bottom: 12px;
}
.gab-bundle-items {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.gab-bundle-item {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 18px;
	align-items: center;
	text-decoration: none;
	padding: 14px 0;
}
.gab-bundle-item + .gab-bundle-item {
	border-top: 1px solid var(--gab-card-border);
}
.gab-bundle-item__img {
	display: flex;
	align-items: center;
	justify-content: center;
}
.gab-bundle-item__img img {
	width: 84px;
	height: 84px;
	object-fit: contain;
	border-radius: 10px;
	background: #f6f6f4;
	display: block;
}
.gab-bundle-item__name {
	font-size: 15px;
	line-height: 1.4;
	font-weight: 500;
	color: var(--gab-bundle-link);
}
.gab-bundle-item:hover .gab-bundle-item__name {
	color: var(--gab-bundle-link-hover);
	text-decoration: underline;
}
.gab-bundle-price {
	margin-top: 14px;
	font-size: 20px;
	font-weight: 700;
}
.gab-bundle-add { margin-top: 12px; }

/* ---- Upsells under the summary (boxed to group them) ---- */
.gab-upsells {
	margin: 26px 0 10px;
}
.gab-upsells__title {
	font-size: 16px;
	margin-bottom: 12px;
}
.gab-upsells .gab-bundle-block {
	border: 1px solid var(--gab-card-border);
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 14px;
}

/* ---- Contents list (stored in the bundle's long description) ---- */
.gab-contents-intro { font-weight: 600; margin-bottom: 6px; }
.gab-contents-list {
	margin: 8px 0 12px !important;
	padding-left: 12px !important;
	list-style: disc outside !important;
}
.gab-contents-list li {
	margin: 0 0 6px !important;
	padding-left: 2px;
}
.gab-contents-list a {
	color: var(--gab-bundle-link);
	text-decoration: underline;
}
.gab-contents-list a:hover {
	color: var(--gab-bundle-link-hover);
}

