/**
 * Bounded public presentation owned by FANZA Site Tools.
 *
 * Keep selectors inside the Plugin component namespace. Base Product Card
 * presentation remains in the site theme; this asset owns the interactive
 * public-pilot CTA introduced by the Plugin runtime.
 */

.fst-product-card--pilot-text .fst-product-card__image {
	display: block;
	width: auto;
	max-width: calc(100% - 2rem);
	height: auto;
	margin: 1rem auto 0;
}

.fst-product-card--pilot-text .fst-product-card__ad {
	margin: 0 1rem 0.25rem;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.fst-product-card--pilot-text .fst-product-card__cta {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	max-width: calc(100% - 2rem);
	margin: 0 1rem 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid #536b7a;
	border-radius: 0.375rem;
	background: #536b7a;
	color: #fff;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.fst-product-card--pilot-text .fst-product-card__cta:visited {
	color: #fff;
}

.fst-product-card--pilot-text .fst-product-card__cta:hover {
	background: #405663;
	color: #fff;
}

.fst-product-card--pilot-text .fst-product-card__cta:focus-visible {
	outline: 3px solid #1f6feb;
	outline-offset: 3px;
}

@media (max-width: 47.999em) {
	.fst-product-card--pilot-text .fst-product-card__cta {
		display: flex;
		width: calc(100% - 2rem);
	}
}

@media (min-width: 48em) {
	.fst-product-card--pilot-text .fst-product-card__ad {
		margin-inline: 1.5rem;
	}

	.fst-product-card--pilot-text .fst-product-card__cta {
		max-width: calc(100% - 3rem);
		margin-inline: 1.5rem;
	}
}

/* A001-only Sample Gallery runtime; public release gate defaults to OFF. */
.fst-sample-gallery {
	margin-block: 2rem;
}

.fst-sample-gallery__title {
	margin-block: 0 1rem;
}

.fst-sample-gallery__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.fst-sample-gallery__item {
	margin: 0;
	padding: 0.75rem;
	background: #f7f8f9;
}

.fst-sample-gallery__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
}

@media (min-width: 48em) {
	.fst-sample-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
