.sbf-product-configurator {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
}
.sbf-product-configurator h3 {
	margin: 0 0 16px;
	font-size: 20px;
}
.sbf-product-description {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e5e5;
	color: #333;
	line-height: 1.6;
}
.sbf-product-description h1,
.sbf-product-description h2,
.sbf-product-description h3 {
	font-size: 16px;
	margin: 12px 0 8px 0;
}
.sbf-product-description p {
	margin: 8px 0;
}
.sbf-product-description ul,
.sbf-product-description ol {
	margin-left: 20px;
	margin: 8px 0;
}
.sbf-field {
	margin-bottom: 22px;
}
.sbf-field label,
.sbf-field-title {
	display: block;
	margin-bottom: 8px;
}
.sbf-field small {
	display: block;
	margin-top: 6px;
	color: #666;
	font-size: 12px;
}
.sbf-field select,
.sbf-field textarea {
	width: 100%;
	max-width: 520px;
}
.sbf-choice-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 16px;
}
.sbf-choice-tab {
	display: inline-flex;
	cursor: pointer;
	margin: 0;
}
.sbf-choice-tab input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.sbf-choice-tab span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 16px;
	border: 2px solid #e5e5e5;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sbf-choice-tab input:checked + span {
	border-color: #111;
	box-shadow: 0 6px 18px rgba(0,0,0,.10);
	transform: translateY(-1px);
}
.sbf-subtitle {
	margin-top: 10px;
}
.sbf-swatch-grid,
.sbf-foot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 12px;
	margin-top: 12px;
}
.sbf-swatch-option,
.sbf-foot-option {
	display: block;
	cursor: pointer;
	margin: 0;
}
.sbf-swatch-option input,
.sbf-foot-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.sbf-swatch-card,
.sbf-foot-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	min-height: 132px;
	padding: 9px;
	border: 2px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sbf-swatch-card img,
.sbf-foot-card img {
	width: 100%;
	height: 86px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 8px;
}
.sbf-foot-card img {
	object-fit: contain;
}
.sbf-swatch-label,
.sbf-foot-label {
	font-size: 12px;
	line-height: 1.25;
	text-align: center;
	color: #222;
}
.sbf-swatch-option input:checked + .sbf-swatch-card,
.sbf-foot-option input:checked + .sbf-foot-card {
	border-color: #111;
	box-shadow: 0 6px 18px rgba(0,0,0,.10);
	transform: translateY(-1px);
}
.sbf-fabric-color-panel[hidden],
.sbf-foot-color-panel[hidden] {
	display: none !important;
}
@media (max-width: 480px) {
	.sbf-product-configurator {
		padding: 16px;
	}
	.sbf-swatch-grid,
	.sbf-foot-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sbf-order-config-image {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	padding: 2px;
	display: inline-block;
	vertical-align: middle;
}

/* Checkout premium bed layouts */
.sbf-checkout-product-title {
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
	margin: 4px 0 10px 0 !important;
	max-width: 100% !important;
}

.sbf-checkout-product-name {
	font-weight: 700 !important;
	font-size: 15px !important;
	color: #1e293b !important;
	display: block !important;
	line-height: 1.2 !important;
}

/* Ensure links containing the name inherit the color and don't turn blue */
.woolentor-checkout__product-name a,
.cart-product-label-link,
.cart-product-label-link span,
.sbf-checkout-product-title a,
.sbf-checkout-product-name a {
	color: #1e293b !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}

.sbf-checkout-product-size-wrapper {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #475569 !important;
	background-color: #f1f5f9 !important;
	padding: 4px 12px !important;
	border-radius: 9999px !important;
	width: fit-content !important;
	border: 1px solid #e2e8f0 !important;
	line-height: 1 !important;
	margin-top: 4px !important;
}

.sbf-checkout-bed-icon {
	width: 22px !important;
	height: 22px !important;
	vertical-align: middle !important;
	display: inline-block !important;
	filter: invert(34%) sepia(13%) saturate(983%) hue-rotate(180deg) brightness(95%) contrast(92%) !important; /* Tailwind slate-600 */
	margin-right: 0 !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	background: transparent !important;
}

.sbf-checkout-product-size-text {
	vertical-align: middle !important;
	color: #475569 !important;
}

/* Hide price and subtotal for beds */
.woolentor-checkout__product:has(.sbf-checkout-product-title) .woolentor-checkout__product-price-box,
.woolentor-checkout__product:has(.sbf-checkout-product-title) .woolentor-checkout__product-price {
	display: none !important;
}

tr.cart_item:has(.sbf-checkout-product-title) .product-total,
tr.cart_item:has(.sbf-checkout-product-title) .product-price,
tr.cart_item:has(.sbf-checkout-product-title) .product-subtotal,
tr.cart_item:has(.sbf-checkout-product-title) .wd-checkout-prod-total {
	display: none !important;
}
