/* ================================================================================
 * SIDE CART CROSS-SELL: "Pairs well with your order" card + "Why add this?" sheet
 * 2026-10-02
 * ================================================================================
 *
 * Markup comes from BB_Sub_Cart::inject_crosssell(). Class names are new (bb-pair*),
 * so none of the older .bb-fk-crosssell / .bb-fk-cs-* rules in bb-fkcart.css or the
 * inline skin CSS apply here. The cart skins style buttons and links broadly, which
 * is why the rules below set their own values with !important.
 *
 * The sheet is mounted by bb-cart-pair.js inside .fkcart-preview-ui. That panel is
 * position:fixed with a transform, so an absolutely positioned layer inside it
 * covers exactly the cart, on the phone and in the desktop drawer.
 * ------------------------------------------------------------------------------ */

html body .bb-pair {
	--bbp-pink: #c83784;
	--bbp-pink-dark: #a02c6f;
	--bbp-tint: #fdf3f8;
	--bbp-line: #f1e4ec;
	--bbp-ink: #1f2937;
	--bbp-muted: #6b7280;
	margin: 6px 16px 16px !important;
	padding: 0 !important;
	background: #fff !important;
	border: 1px solid var(--bbp-line) !important;
	border-radius: 16px !important;
	box-shadow: 0 1px 2px rgba(31, 41, 55, .04), 0 6px 18px rgba(200, 55, 132, .06) !important;
	overflow: hidden !important;
	text-align: left !important;
}

/* header band */
html body .bb-pair .bb-pair__head {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 11px 16px !important;
	background: var(--bbp-tint) !important;
	border-bottom: 1px solid var(--bbp-line) !important;
	color: var(--bbp-pink) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .08em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
}
html body .bb-pair .bb-pair__head .bb-pair-i { width: 18px !important; height: 18px !important; flex: 0 0 18px !important; }

/* product row */
html body .bb-pair .bb-pair__body {
	display: flex !important;
	align-items: flex-start !important;
	gap: 14px !important;
	padding: 14px 16px 4px !important;
}
html body .bb-pair .bb-pair__img {
	flex: 0 0 76px !important;
	width: 76px !important;
	height: 76px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #faf7f9 !important;
	border-radius: 12px !important;
	overflow: hidden !important;
}
html body .bb-pair .bb-pair__img img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 4px !important;
}
html body .bb-pair .bb-pair__info { flex: 1 1 auto !important; min-width: 0 !important; }
html body .bb-pair .bb-pair__top {
	display: flex !important;
	align-items: baseline !important;
	justify-content: space-between !important;
	gap: 10px !important;
}
html body .bb-pair .bb-pair__name {
	color: var(--bbp-ink) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
}
html body .bb-pair .bb-pair__name:hover { text-decoration: underline !important; }
html body .bb-pair .bb-pair__price,
html body .bb-pair .bb-pair__price .woocommerce-Price-amount {
	flex: 0 0 auto !important;
	color: var(--bbp-ink) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	white-space: nowrap !important;
}
html body .bb-pair .bb-pair__meta {
	margin: 2px 0 8px !important;
	color: var(--bbp-muted) !important;
	font-size: 12.5px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
}
html body .bb-pair .bb-pair__points {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
html body .bb-pair .bb-pair__points li {
	display: flex !important;
	align-items: flex-start !important;
	gap: 8px !important;
	margin: 0 0 5px !important;
	padding: 0 !important;
	color: #374151 !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	list-style: none !important;
}
html body .bb-pair .bb-pair__points li::before,
html body .bb-pair .bb-pair__points li::marker { content: none !important; display: none !important; }
html body .bb-pair .bb-pair__points .bb-pair-i {
	flex: 0 0 18px !important;
	width: 18px !important;
	height: 18px !important;
	margin-top: 0 !important;
	color: var(--bbp-pink) !important;
	stroke-width: 1.9 !important;
}

/* buttons: shared by the card and the sheet */
html body .bb-pair__add {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	width: calc(100% - 32px) !important;
	min-height: 46px !important;
	margin: 12px 16px 0 !important;
	padding: 10px 16px !important;
	background: #c83784 !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 12px !important;
	box-shadow: 0 2px 8px rgba(200, 55, 132, .22) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	cursor: pointer !important;
	transition: background-color .15s ease, transform .15s ease !important;
}
html body .bb-pair__add::after,
html body .bb-pair__add::before { content: none !important; display: none !important; }
html body .bb-pair__add:hover { background: #a02c6f !important; }
html body .bb-pair__add:active { transform: translateY(1px) !important; }
html body .bb-pair__add:disabled { opacity: .6 !important; cursor: wait !important; }
html body .bb-pair__add .woocommerce-Price-amount,
html body .bb-pair__add .woocommerce-Price-currencySymbol { color: #fff !important; font-weight: 600 !important; font-size: inherit !important; }
html body .bb-pair__add .bb-pair__dot { opacity: .75 !important; }

html body .bb-pair .bb-pair__why {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 2px !important;
	width: 100% !important;
	margin: 4px 0 0 !important;
	padding: 10px 16px 14px !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--bbp-pink) !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
	min-height: 0 !important;
}
html body .bb-pair .bb-pair__note {
	margin: -4px 16px 12px !important;
	padding: 0 !important;
	color: #a3a8b1 !important;
	font-size: 10px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	text-align: center !important;
}
html body .bb-pair .bb-pair__why:hover { color: var(--bbp-pink-dark) !important; text-decoration: underline !important; }
html body .bb-pair .bb-pair__why .bb-pair-i { width: 15px !important; height: 15px !important; stroke-width: 2.2 !important; }

/* headings and buttons do not inherit the cart font on their own; the theme gives h3 a display face */
html body .bb-pair, html body .bb-pair button, html body .bb-pair-layer, html body .bb-pair-layer button,
html body .bb-pair-sheet__title { font-family: inherit !important; }

/* Focus ring sits inside the control. The "why" link is full card width, so an outside
 * ring showed only its top edge, as a pink line across the card. */
html body .bb-pair button:focus { outline: none !important; }
html body .bb-pair button:focus-visible,
html body .bb-pair-layer button:focus-visible { outline: 2px solid #c83784 !important; outline-offset: -3px !important; border-radius: 12px !important; }

/* ---- sheet ------------------------------------------------------------------- */

html body .bb-pair-layer {
	position: absolute !important;
	inset: 0 !important;
	z-index: 2147483000 !important;
	display: block !important;
	pointer-events: none;
}
html body .bb-pair-layer.is-open { pointer-events: auto; }
html body .bb-pair-backdrop {
	position: absolute !important;
	inset: 0 !important;
	background: rgba(24, 18, 31, .38) !important;
	opacity: 0;
	transition: opacity .25s ease;
}
html body .bb-pair-layer.is-open .bb-pair-backdrop { opacity: 1; }

html body .bb-pair-sheet {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	max-height: 88% !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
	margin: 0 !important;
	padding: 10px 22px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
	background: #fff !important;
	border-radius: 22px 22px 0 0 !important;
	box-shadow: 0 -10px 40px rgba(24, 18, 31, .18) !important;
	text-align: left !important;
	transform: translateY(102%);
	transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
html body .bb-pair-layer.is-open .bb-pair-sheet { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	html body .bb-pair-sheet, html body .bb-pair-backdrop { transition: none !important; }
}

html body .bb-pair-sheet__grip {
	width: 40px !important;
	height: 4px !important;
	margin: 0 auto 14px !important;
	border-radius: 4px !important;
	background: #e5e7eb !important;
}
html body .bb-pair-sheet__close {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	width: 36px !important;
	height: 36px !important;
	min-height: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #f6f4f6 !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	color: #4b5563 !important;
	cursor: pointer !important;
}
html body .bb-pair-sheet__close:hover { background: #eeeaee !important; color: #111827 !important; }
html body .bb-pair-sheet__close .bb-pair-i { width: 18px !important; height: 18px !important; }

html body .bb-pair-sheet__title {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin: 4px 44px 10px 0 !important;
	padding: 0 !important;
	color: #1f2937 !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
html body .bb-pair-sheet__title .bb-pair-i { flex: 0 0 22px !important; width: 22px !important; height: 22px !important; color: #c83784 !important; }
html body .bb-pair-sheet__intro {
	margin: 0 0 16px !important;
	color: #4b5563 !important;
	font-size: 14.5px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
}
html body .bb-pair-sheet__rows {
	list-style: none !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
	border-top: 1px solid #f1eef1 !important;
}
html body .bb-pair-sheet__rows li {
	display: flex !important;
	align-items: flex-start !important;
	gap: 14px !important;
	margin: 0 !important;
	padding: 13px 0 !important;
	border-bottom: 1px solid #f1eef1 !important;
	list-style: none !important;
}
html body .bb-pair-sheet__rows li::before,
html body .bb-pair-sheet__rows li::marker { content: none !important; display: none !important; }
html body .bb-pair-sheet__ico {
	flex: 0 0 38px !important;
	width: 38px !important;
	height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	background: #fdf3f8 !important;
	color: #c83784 !important;
}
html body .bb-pair-sheet__ico .bb-pair-i { width: 20px !important; height: 20px !important; }
html body .bb-pair-sheet__txt { display: block !important; min-width: 0 !important; }
html body .bb-pair-sheet__txt strong {
	display: block !important;
	color: #1f2937 !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	margin: 0 0 2px !important;
}
html body .bb-pair-sheet__txt > span {
	display: block !important;
	color: #6b7280 !important;
	font-size: 13.5px !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
}
html body .bb-pair-sheet .bb-pair__add--sheet {
	width: 100% !important;
	margin: 16px 0 0 !important;
	min-height: 50px !important;
	font-size: 16px !important;
}
html body .bb-pair-sheet__note {
	margin: 10px 0 0 !important;
	color: #b8bcc4 !important;
	font-size: 9px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	text-align: center !important;
}

/* desktop drawer: a little more air */
@media (min-width: 768px) {
	html body .bb-pair .bb-pair__head { padding: 12px 18px !important; }
	html body .bb-pair .bb-pair__body { padding: 16px 18px 4px !important; }
	html body .bb-pair-sheet { padding-left: 26px !important; padding-right: 26px !important; }
}

/* Cart item cards use the same 16px side gutter as the cross-sell card, so the two
 * line up edge to edge. The lumen skin sets 22px inline as
 * `body .fkcart-modal.bb-skin-lumen .fkcart-item-wrap` (3 classes), so this needs 4. */
html body .fkcart-modal .fkcart-preview-ui .fkcart-slider-body .fkcart-item-wrap {
	padding-left: 16px !important;
	padding-right: 16px !important;
}

html body .bb-pair-sheet:focus { outline: none !important; }

/* Narrow phones (iPhone SE, small Android): keep the card heading on one line. */
@media (max-width: 360px) {
	html body .bb-pair .bb-pair__head { padding: 11px 12px !important; gap: 6px !important; font-size: 11px !important; letter-spacing: .04em !important; white-space: nowrap !important; }
	html body .bb-pair .bb-pair__head .bb-pair-i { width: 16px !important; height: 16px !important; flex-basis: 16px !important; }
	html body .fkcart-modal .bb-pair .bb-pair__head > span { white-space: nowrap !important; min-width: 0 !important; overflow: hidden !important; text-overflow: clip !important; }
}
