/**
 * Gift match cart display for colour picker packs (v1.52). Side cart and checkout only.
 * Same look as the GIFT bundle nesting (snippet 172): camel guide line, 44px photos, Included.
 */

.jbb-pill {
	display: block;
	width: fit-content;
	margin-top: 4px;
	padding: 1px 6px;
	border-radius: 4px;
	background: #f4ece1;
	color: #02094b;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.6;
}

/* The rows wait here until bb-cart.js puts them under their line. */
.jbb-kidsdata:not(.is-placed) {
	display: none;
}

.jbb-kidsdata.is-placed {
	display: block;
}

.jbb-kids {
	display: grid;
	gap: 8px;
	margin: 0 0 4px 31px;
	padding: 4px 0 4px 14px;
	border-left: 2px solid #ead9c3;
	text-align: left;
}

.jbb-kid {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
}

.jbb-kid .jbb-kimg {
	display: block;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	object-fit: contain;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 6px;
}

.jbb-kt {
	display: grid;
	min-width: 0;
}

.jbb-kt b {
	color: #111;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
}

.jbb-kpre {
	color: #b23a26;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
}

.jbb-kr {
	color: #5b6170;
	font-size: 12px;
	font-weight: 400;
}

/* Parent photo: one pillow or both, no borders on the pillows. */
.jbb-pthumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
}

.jbb-pthumb img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	object-fit: contain;
	background: transparent;
}

.jbb-pthumb.is-two img {
	position: absolute;
	width: 66%;
	height: 66%;
}

.jbb-pthumb.is-two img:first-child {
	left: 3%;
	top: 5%;
}

.jbb-pthumb.is-two img:last-child {
	right: 3%;
	bottom: 5%;
}

/* The plain Bundle and Colour mix rows are replaced by the colour rows. */
.jbb-pack dl.variation {
	display: none !important;
}

/* CartFlows forces dl.variation to show with a longer selector: match it. */
.wcf-embed-checkout-form .woocommerce-checkout-review-order-table tr.cart_item.jbb-pack dl.variation,
.woocommerce-checkout-review-order-table tr.cart_item.jbb-pack dl.variation {
	display: none !important;
}

/* Checkout: the colour rows sit in a full-width row under the line. */
tr.jbb-kids-row td {
	padding: 0 12px 8px;
	border: 0;
}

/* CartFlows sizes its own photo box and forces cover on every image in it: fill the box and keep both pillows whole. */
.wcf-product-thumbnail .jbb-pthumb {
	width: 100% !important;
	height: 100% !important;
	border: 1px solid #e6e0d8;
}

.wcf-product-thumbnail .jbb-pthumb img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	border: 0 !important;
	border-radius: 0 !important;
}

.wcf-product-thumbnail .jbb-pthumb.is-two img {
	background: transparent !important;
	width: 66% !important;
	height: 66% !important;
	inset: auto !important;
}

.wcf-embed-checkout-form .woocommerce-checkout-review-order-table .wcf-product-thumbnail .jbb-pthumb.is-two img{width:66%!important;height:66%!important;min-width:0!important;max-width:66%!important;background:transparent!important}

.wcf-product-thumbnail .jbb-pthumb.is-two img:first-child {
	left: 3% !important;
	top: 5% !important;
}

.wcf-product-thumbnail .jbb-pthumb.is-two img:last-child {
	right: 3% !important;
	bottom: 5% !important;
}

.woocommerce-checkout-review-order-table .jbb-kids {
	margin-left: 26px;
	padding-left: 12px;
}

/* Side cart: the photo column keeps its own width. */
.xoo-wsc-img-col .jbb-pthumb {
	width: 100%;
}

.xoo-wsc-products .jbb-kidsdata.is-placed {
	padding: 0 12px;
}
