/* Better Print product option cards */
.bp-option-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	gap: 28px 34px;
	align-items: start;
}

.bp-option-card {
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: #f7f7f4;
	box-shadow: 0 3px 8px rgba(17, 24, 39, 0.16);
	color: #ffffff;
	text-align: center;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.bp-option-card:hover,
.bp-option-card:focus-visible {
	box-shadow: 0 9px 20px rgba(17, 24, 39, 0.18);
	outline: none;
	transform: translateY(-2px);
}

.bp-option-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 12px;
	background: #f5f5f2;
}

.bp-option-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bp-option-card__title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 7px 8px;
	background: #176da7;
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.bp-option-card__meta {
	display: block;
	padding: 9px 10px 0;
	background: #ffffff;
	color: #374151;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
}

.bp-option-card__meta .amount {
	color: inherit;
	font-weight: inherit;
}

.bp-option-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	margin: 12px auto 14px;
	padding: 0 18px;
	border-radius: 999px;
	background: #176da7;
	color: #ffffff;
	font-size: 12px;
	font-weight: 850;
	line-height: 1;
}

/* Spec page related options */
body.bp-product-layout-spec .bp-spec-related-options {
	position: relative;
	z-index: 1;
	clear: both;
	display: block;
	width: min(94vw, 980px);
	margin: 96px auto 54px;
	padding: 0;
}

body.bp-product-layout-spec .bp-spec-related-options h2 {
	margin: 0 0 28px;
	color: #111111;
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 900;
	line-height: 1.08;
	text-align: center;
}

body.bp-product-layout-spec .bp-spec-related-options .bp-option-card-grid {
	padding: 26px 34px 34px;
	border: 2px solid rgba(17, 24, 39, 0.66);
	grid-template-columns: repeat(4, minmax(120px, 1fr));
}

/* Default single product related options */
body.single-product:not(.bp-product-layout-spec) .bp-default-related-options {
	clear: both;
	width: min(94vw, 1240px);
	margin: 76px auto 54px;
	padding: 0;
}

body.single-product:not(.bp-product-layout-spec) .bp-default-related-options h2 {
	margin: 0 0 34px;
	color: #333333;
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 850;
	line-height: 1.15;
	text-align: center;
}

body.single-product:not(.bp-product-layout-spec) .bp-default-related-products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(26px, 3vw, 42px);
	align-items: start;
	list-style: none;
	margin: 0 !important;
	padding: 0;
}

body.single-product:not(.bp-product-layout-spec) .bp-default-related-products:before,
body.single-product:not(.bp-product-layout-spec) .bp-default-related-products:after {
	display: none !important;
	content: none !important;
}

body.single-product:not(.bp-product-layout-spec) .bp-default-related-products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	text-align: center;
}

body.single-product:not(.bp-product-layout-spec) .bp-default-related-products li.product img {
	max-height: 280px;
	object-fit: contain;
}

body.single-product:not(.bp-product-layout-spec) .bp-default-related-products li.product .woocommerce-loop-product__title {
	max-width: 220px;
	margin: 14px auto 6px;
	color: #333333;
	font-size: 18px;
	font-weight: 850;
	line-height: 1.12;
}

body.single-product:not(.bp-product-layout-spec) .bp-default-related-products li.product .price {
	display: block;
	margin-top: 6px;
	color: #333333;
	font-size: 17px;
	font-weight: 850;
	line-height: 1.2;
}

/* Category option page shortcode */
.bp-category-options-template {
	width: min(92vw, 820px);
	margin: 0 auto;
	padding: 0;
}

.bp-category-options-group {
	margin: 0 0 44px;
}

.bp-category-options-group h3 {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	min-height: 34px;
	margin: 0 0 26px;
	background: #155b8d;
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

.bp-category-options-template .bp-option-card-grid {
	grid-template-columns: repeat(var(--bp-category-columns, 4), minmax(112px, 1fr));
}

@media only screen and (max-width: 760px) {
	body.bp-product-layout-spec .bp-spec-related-options .bp-option-card-grid,
	body.single-product:not(.bp-product-layout-spec) .bp-default-related-products,
	.bp-category-options-template .bp-option-card-grid {
		grid-template-columns: repeat(2, minmax(110px, 1fr));
		gap: 22px;
	}
}

/* Single product Typeform */
.bp-single-product-typeform {
	clear: both;
	width: min(92vw, 980px);
	margin: 58px auto 40px;
	padding: 0;
	text-align: center;
}

.bp-single-product-typeform__inner {
	padding: 34px 24px 28px;
	border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.bp-single-product-typeform h3 {
	margin: 0 0 8px;
	color: #333333;
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 800;
	line-height: 1.12;
}

.bp-single-product-typeform p {
	margin: 0 0 24px;
	color: #6b7280;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}
