/**
 * Narrow-column / Ghost Boost theme compatibility for single product layout.
 * Loaded after frontend.css (handle affc-frontend).
 */

.single-aff_catalog_item .affc-shell {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

.single-aff_catalog_item .affc-container.affc-single {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

/* Replace fixed 340px min track so grid fits narrow main columns. */
.single-aff_catalog_item .affc-single-layout {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, min(100%, 340px));
}

.single-aff_catalog_item .affc-single-media,
.single-aff_catalog_item .affc-single-buy-box,
.single-aff_catalog_item .affc-single-description {
	min-width: 0;
	max-width: 100%;
}

.single-aff_catalog_item .affc-single-media img {
	max-width: 100%;
	height: auto;
}

.single-aff_catalog_item .affc-single-buy-box {
	overflow-x: clip;
	box-sizing: border-box;
}

.single-aff_catalog_item .affc-single-buy-box h1 {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.single-aff_catalog_item .affc-single-buy-box .affc-price-large-wrap {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.single-aff_catalog_item .affc-single-buy-box .affc-price-current {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	overflow-wrap: anywhere;
}

.single-aff_catalog_item .affc-actions-single {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.single-aff_catalog_item .affc-actions-single .affc-button-large,
.single-aff_catalog_item .affc-single-buy-box .affc-button-large {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
	text-align: center;
}

@media (max-width: 991px) {
	.single-aff_catalog_item .affc-single-layout {
		grid-template-columns: 1fr;
	}
}
