/*
 * Interlab Core's buy box pieces in the new look (Roddy's request on #3, 12 Nov 2026). Look only: the markup and
 * behaviour stay in Interlab Core. Core's own styles (assets/frontend.css, the inline quantity-breaks styles) carry
 * many !important rules from the Avada days, so these use `body` for weight and !important where Core does.
 * Tokens: Ink #1c2b3a, body #4a6170, muted #5b7082, hairline #e4ecf4, surface #f4f7fb, selected tint #e8f4fb,
 * cyan #0c92d3, action #00679e, in stock #17723a on #e5f3ea, low/backorder #8a5600 on #fff1d4, out #a3262a on #fbe7e7.
 */

/* ---------- Suggested alternatives: a tinted pill in the stock-pill family, and a calm card ---------- */
body .ilc-alt { margin: 6px 0 4px; }
body .ilc-alt-pill {
	gap: 6px;
	height: 24px;
	padding: 0 10px !important;
	border-radius: 99px !important;
	background: #e8f4fb !important;
	color: #00679e !important;
	border: 1px solid #cfe6f5 !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
}
body .ilc-alt-pill:hover,
body .ilc-alt.is-open .ilc-alt-pill { background: #d6ecf8 !important; border-color: #9fcfec !important; }
body .ilc-alt-pill:focus-visible { outline: 2px solid #0c92d3; outline-offset: 2px; }
body .ilc-alt-caret { border-top-color: #00679e; }

body .ilc-alt-pop,
body .ilc-alt-pop * { font-family: inherit; }
body .ilc-alt-pop {
	background: #fff !important;
	color: #1c2b3a !important;
	border: 1px solid #e4ecf4 !important;
	border-radius: 10px !important;
	box-shadow: 0 12px 32px rgba(0, 47, 96, .16) !important;
	padding: 8px !important;
}
body .ilc-alt-pop-head {
	padding: 4px 6px 8px !important;
	margin: 0 0 4px !important;
	border-bottom: 1px solid #e4ecf4;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #4a6170 !important;
}
body .ilc-alt-item {
	gap: 12px;
	padding: 8px 6px !important;
	border-radius: 8px !important;
	border-top: 0 !important;
}
body .ilc-alt-item:hover,
body .ilc-alt-item:focus-visible { background: #f4f7fb !important; }
body .ilc-alt-thumb {
	width: 48px !important;
	height: 48px !important;
	max-width: 48px !important;
	border: 1px solid #e4ecf4;
	border-radius: 6px !important;
	padding: 2px;
	box-sizing: border-box;
}
body .ilc-alt-name { font-size: 14px !important; font-weight: 600 !important; line-height: 1.35 !important; color: #1c2b3a !important; }
body .ilc-alt-price { font-size: 13px !important; font-weight: 600; color: #1c2b3a !important; }
body .ilc-alt-stock {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	height: 20px;
	padding: 0 8px !important;
	border-radius: 99px !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
}
body .ilc-alt-stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body .ilc-alt-stock.in-stock { background: color-mix(in srgb, var(--wp--preset--color--stock-in, #17723a) 12%, #fff) !important; color: var(--wp--preset--color--stock-in, #17723a) !important; }
body .ilc-alt-stock.on-backorder { background: #fff1d4 !important; color: #8a5600 !important; }
body .ilc-alt-stock.out-of-stock { background: #fbe7e7 !important; color: #a3262a !important; }
/* The site is light only: keep the card light on phones set to dark mode (Core darkens it). */
@media (prefers-color-scheme: dark) {
	body .ilc-alt-pop { background: #fff !important; color: #1c2b3a !important; border-color: #e4ecf4 !important; }
	body .ilc-alt-pop-head { color: #4a6170 !important; }
	body .ilc-alt-name, body .ilc-alt-price { color: #1c2b3a !important; }
	body .ilc-alt-item:hover { background: #f4f7fb !important; }
}

/* ---------- Quantity breaks: the same table look as the buy table above it ---------- */
body .ilab-qb { margin: 20px 0 0; font-size: 14px; }
body .ilab-qb__title {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--heading, 'Outfit'), sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #1c2b3a;
}
body .ilab-qb__pick { color: #5b7082; font-size: 13px; }
body .ilab-qb__table {
	border: 1px solid #e4ecf4;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
body .ilab-qb__table th {
	padding: 10px 14px;
	background: #f4f7fb;
	border-bottom: 1px solid #e4ecf4;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #5b7082;
}
body .ilab-qb__table td { padding: 10px 14px; border-top: 1px solid #e4ecf4; color: #1c2b3a; }
body .ilab-qb__table tbody tr:first-child td { border-top: 0; }
body .ilab-qb__table td:nth-child(3) { color: var(--wp--preset--color--stock-in, #17723a); font-weight: 600; }
body .ilab-qb__table tr.is-active td { background: #e8f4fb; font-weight: 600; }
body .ilab-qb__table tr.is-active td:first-child { box-shadow: inset 3px 0 0 #0c92d3; }
body .ilab-qb__hint {
	margin: 8px 0 0;
	padding: 8px 12px;
	border-radius: 8px;
	background: #e8f4fb;
	color: #00679e;
	font-size: 13px;
	font-weight: 600;
}
@media (max-width: 600px) {
	body .ilab-qb__table th,
	body .ilab-qb__table td { padding: 9px 10px; }
}

/* ---------- Full carton line under the pack ---------- */
body .il-ctn { display: block; margin-top: 2px; font-size: 12px; color: #5b7082; }

/* ---------- Same-day dispatch countdown: a soft note in the in-stock colours ---------- */
body .ilc-cd-pill {
	border-radius: 8px !important;
	padding: 8px 12px !important;
	font-size: 14px !important;
	background: color-mix(in srgb, var(--wp--preset--color--stock-in, #17723a) 12%, #fff) !important;
	color: var(--wp--preset--color--stock-in, #17723a) !important;
}
body .ilc-cd-pill.is-urgent { background: #fff1d4 !important; color: #8a5600 !important; }

/* ---------- "Your price" saving ---------- */
body .ilc-yp-label { color: var(--wp--preset--color--stock-in, #17723a); }
body .ilc-yp .ilc-yp-was { color: #5b7082 !important; }
body .ilc-yp--compact .ilc-yp-save { background: #17723a !important; }

/* ---------- Category description video (Core keeps a .video-container and id headings, shown under the intro) ---------- */
body .il-cat-media { max-width: 760px; margin: 16px 0 28px; }
body .il-cat-media h2,
body .il-cat-media h3,
body .il-cat-media h4 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; color: #1c2b3a; scroll-margin-top: 140px; }
body .il-cat-media .video-container { border-radius: 10px; overflow: hidden; background: #f4f7fb; }
body .il-cat-media .video-container + h2,
body .il-cat-media .video-container + h3 { margin-top: 24px; }
