/**
 * AMC Choose One Bundle – frontend theme (adapted from Easy Product Bundles).
 * Bundle product page gets body/post classes from the primary product (product-type-*, product_cat_*)
 * so the theme layout matches the primary. Wrapper has .amc-cob-layout-primary-{type} for targeting.
 */
/* Wrapper: match reference layout (e.g. Elementor/Porto widget spacing) */
.amc_cob_bundle_wrapper,
.amc-easy-product-bundle {
	box-sizing: border-box;
	line-height: 1.618;
	margin-block-end: 20px;
	margin-bottom: var(--kit-widget-spacing, 20px);
	width: 100%;
}

.amc-cob-bundle-title {
	display: flex !important;
	margin: 1rem 0 !important;
	width: 100%;
}
.amc-cob-bundle-title:after,
.amc-cob-bundle-title:before {
	border-bottom: 3px solid !important;
	content: "" !important;
	flex: 1 !important;
	margin: auto -1px !important;
}
.amc-cob-bundle-title h2 {
	background: linear-gradient(currentcolor, currentcolor) no-repeat top, linear-gradient(currentcolor, currentcolor) no-repeat bottom !important;
	background-size: calc(100% - 34px) 2px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1px !important;
	line-height: 1.214 !important;
	margin: 0 !important;
	overflow: hidden !important;
	padding: 6px 10px !important;
	position: relative !important;
	text-align: center !important;
	width: fit-content !important;
}

.amc-cob-bundle-description {
	background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	color: #333;
	margin-bottom: 20px;
	overflow: hidden;
	padding: 19px 18px 16px 16px;
	position: relative;
}
.amc-cob-bundle-description > .icon {
	color: rgba(0, 0, 0, 0.22);
	font-size: 22px;
	position: absolute;
	right: 6px;
	top: 3px;
}
.amc-cob-bundle-description > .text {
	color: #000;
	font-size: 12px;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Grid / list container (EPB-like) */
.amc-cob-App-GridItem-wrapper {
	display: flex;
	flex-wrap: wrap;
	grid-column-gap: 6px;
	grid-row-gap: 15px;
	margin: 0 3px;
	position: relative;
}

.amc-cob-BundleGridItem-ProductBox {
	align-items: center;
	border: 0 solid rgba(237, 237, 242, 0);
	display: flex;
	flex-direction: column;
	text-align: center;
}
.amc-cob-BundleGridItem-ProductBox.asnp-medium { width: 94px; }
.amc-cob-BundleGridItem-imageBox {
	background-color: #eee;
	border-radius: 7px;
	overflow: hidden;
	position: relative;
	width: 100%;
	z-index: 0;
}
.amc-cob-BundleGridItem-imageBox.asnp-medium { height: 94px; }
.amc-cob-BundleGridItem-imageBox img {
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.5s !important;
	width: 100% !important;
}
.amc-cob-BundleGridItem-product-info {
	align-items: stretch;
	background-color: hsla(0, 0%, 100%, 0.87);
	border-radius: 7px;
	box-shadow: 0 34px 28px -15px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-around;
	margin-bottom: 5px;
	margin-top: -15px;
	overflow: hidden;
	position: relative;
}
.amc-cob-BundleGridItem-product-info.asnp-medium {
	margin-top: -12px;
	min-height: 50px;
	padding: 4px;
	width: 82px;
}
.amc-cob-product-name {
	-webkit-line-clamp: 8;
	-webkit-box-orient: vertical;
	color: #606060;
	display: -webkit-box;
	flex: 3;
	font-weight: 700 !important;
	line-height: 1.218 !important;
	margin: 0 !important;
	overflow: hidden;
	padding: 0 !important;
	text-overflow: ellipsis;
}
.amc-cob-product-Price {
	display: flex;
	flex: 2;
	flex-wrap: wrap;
	font-weight: 600;
	line-height: normal;
	padding: 7px 0;
}
.amc-cob-product-Price bdi,
.amc-cob-product-Price > .woocommerce-Price-amount.amount { color: #606060; padding: 0 !important; }
.amc-cob-product-Price del,
.amc-cob-product-Price .asnp-selectedProduct-regularPrice { color: #ababab; margin-right: 0 !important; }

/* Total price box – reference layout */
.amc-cob-totalPrice-wrapper {
	align-items: center;
	background-color: #f8f8f8;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	display: flex;
	justify-content: space-between;
	margin: 20px 0;
	margin-block-end: var(--kit-widget-spacing, 20px);
	padding: 14px 16px;
	position: relative;
}
.amc-cob-totalPrice-wrapper .amc-cob-totalPrice-title { font-size: 13px; font-weight: 700; }
.amc-cob-totalPrice-wrapper .amc-cob-totalPrice-section {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	font-weight: 700;
	gap: 6px;
	justify-content: flex-end;
}
.amc-cob-totalPrice-wrapper .amc-cob-totalPrice-section .woocommerce-Price-amount.amount { color: #606060; }
.amc-cob-totalPrice-wrapper .amc-cob-totalPrice-section s,
.amc-cob-totalPrice-wrapper .amc-cob-totalPrice-section s .woocommerce-Price-amount.amount { color: #ababab; }
.amc-cob-totalPrice-wrapper .amc-cob-totalPrice-section .amc-cob-savedPrice {
	background-color: #019267;
	color: #fff;
	font-size: 12px;
	padding: 0 4px;
}
.amc-cob-totalPrice-wrapper .amc-cob-totalPrice-section .amc-cob-savedPrice .woocommerce-Price-amount.amount { color: #fff; padding-left: 2px; }

/* Selector block – reference layout: Includes, then Choose one, then grid */
.amc-cob-bundle-selector {
	margin: 0;
	margin-block-end: 20px;
	margin-bottom: var(--kit-widget-spacing, 20px);
}
.amc-cob-bundle-selector .amc-cob-primary {
	margin: 0 0 20px;
	font-size: 1em;
}
.amc-cob-bundle-selector .amc-cob-choose {
	margin: 0 0 12px;
}
.amc-cob-bundle-selector .amc-cob-choose-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0;
}
.amc-cob-bundle-selector .amc-cob-total-price { margin-top: 1rem; padding: 10px 0; }
.amc-cob-bundle-selector .amc-cob-total-amount { font-weight: 700; }

/* Secondary options grid – clean horizontal grid like reference */
.amc-cob-secondary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 20px;
	margin: 0 0 20px;
	width: 100%;
}
@media (min-width: 600px) {
	.amc-cob-secondary-grid {
		grid-template-columns: repeat(3, 1fr);
		max-width: 100%;
	}
}
.amc-cob-secondary-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #fff;
}
.amc-cob-secondary-card:hover {
	border-color: #bbb;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.amc-cob-secondary-card.amc-cob-selected {
	border-color: #019267;
	border-width: 2px;
	box-shadow: 0 0 0 1px rgba(1, 146, 103, 0.2);
}
.amc-cob-secondary-card .amc-cob-secondary-radio {
	position: absolute;
	width: 1px;
	height: 1px;
	clip: rect(0, 0, 0, 0);
	overflow: hidden;
}
.amc-cob-secondary-card .amc-cob-BundleGridItem-imageBox {
	aspect-ratio: 1;
	flex-shrink: 0;
	background: #f5f5f5;
}
.amc-cob-secondary-card .amc-cob-BundleGridItem-imageBox img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.amc-cob-secondary-card .amc-cob-BundleGridItem-product-info {
	margin-top: 0;
	padding: 12px 10px;
	flex: 1;
	min-height: auto;
	width: auto;
	background: #fff;
	box-shadow: none;
	border-radius: 0;
}
.amc-cob-secondary-card .amc-cob-product-name {
	display: block;
	font-size: 14px;
	line-height: 1.35;
	margin: 0 0 6px;
	color: #333;
	overflow: visible;
	word-wrap: break-word;
}
.amc-cob-secondary-card .amc-cob-product-Price {
	font-size: 14px;
	font-weight: 600;
	padding: 0;
	color: #333;
}
.amc-cob-secondary-card .amc-cob-product-Price .amount { font-weight: 600; }

/* Quantity + Add to cart below bundle (reference layout) */
.amc-cob-bundle-cart-form .amc-cob-cart-actions {
	margin-block-start: 20px;
	margin-top: var(--kit-widget-spacing, 20px);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

/* Plus icon between items */
.amc-cob-plus-icon {
	align-items: center;
	display: flex;
	justify-content: center;
}
.amc-cob-plus-icon .dashicons-plus-alt { font-size: 22px !important; }

@media (min-width: 481px) {
	.amc-cob-bundle-title h2 { font-size: 14px !important; }
	.amc-cob-totalPrice-wrapper { padding: 16px 11px; }
	.amc-cob-totalPrice-wrapper .amc-cob-totalPrice-title { font-size: 14px; }
	.amc-cob-totalPrice-wrapper .amc-cob-totalPrice-section { font-size: 15px; }
}
@media (min-width: 768px) {
	.amc-cob-BundleGridItem-ProductBox.asnp-medium { width: 118px; }
	.amc-cob-BundleGridItem-imageBox.asnp-medium { height: 118px; }
	.amc-cob-BundleGridItem-product-info.asnp-medium { width: 103px; }
	.amc-cob-bundle-title h2 { font-size: 13px !important; padding: 6px 12px !important; }
	.amc-cob-totalPrice-wrapper { padding: 16px 7px; }
}
@media (min-width: 1024px) {
	.amc-cob-BundleGridItem-imageBox.asnp-medium { height: 120px; }
	.amc-cob-BundleGridItem-ProductBox.asnp-medium { width: 120px; }
	.amc-cob-bundle-title h2 { font-size: 14px !important; padding: 6px 13px !important; }
	.amc-cob-totalPrice-wrapper { padding: 17px 11px; }
	.amc-cob-totalPrice-wrapper .amc-cob-totalPrice-section { font-size: 16px; }
}
@media (min-width: 1280px) {
	.amc-cob-bundle-title h2 { font-size: 15px !important; }
	.amc-cob-totalPrice-wrapper .amc-cob-totalPrice-section { font-size: 17px; }
}
