/* Biotech Peptides: blue laboratory-inspired controls, scoped to product grids. */
ul.products li.product.btlq-ready { position: relative; }

ul.products li.product .btlq-layer {
	position: absolute;
	z-index: 4;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--btlq-image-height, auto);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	pointer-events: none;
	background: rgba(5, 46, 77, .12);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease;
}

ul.products li.product.btlq-ready:hover .btlq-layer,
ul.products li.product.btlq-ready:focus-within .btlq-layer { opacity: 1; transform: none; }

ul.products li.product .btlq-action {
	pointer-events: auto;
	box-sizing: border-box;
	width: auto;
	min-width: 138px;
	min-height: 44px;
	max-width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 14px;
	border: 0 !important;
	border-radius: 6px;
	background: linear-gradient(125deg, #08538b, #1388bd);
	box-shadow: none !important;
	outline: 0 !important;
	color: #fff !important;
	font: 700 10px/1.25 Poppins, Arial, sans-serif;
	letter-spacing: .09em;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .2s ease, box-shadow .2s ease;
}

ul.products li.product .btlq-action:hover,
ul.products li.product .btlq-action:focus-visible {
	background: #063d68;
	box-shadow: none !important;
	color: #fff !important;
}

ul.products li.product .btlq-action:focus-visible { text-decoration: underline !important; }

ul.products li.product .btlq-action svg { flex: 0 0 18px; }
ul.products li.product .btlq-action.btlq-options { background: linear-gradient(125deg, #092b47, #11618f); }
ul.products li.product .btlq-action.btlq-options:hover { background: #155c89; }
ul.products li.product .btlq-action.btlq-busy { cursor: progress; opacity: .78; }
ul.products li.product .btlq-action.btlq-added { background: #168674; }

/* WooCommerce creates this link next to AJAX controls after an add. The
   QuickShop cart panel already provides the cart link. */
ul.products li.product.btlq-ready a.added_to_cart.wc-forward { display: none !important; }

ul.products li.product .btlq-feedback {
	position: absolute;
	right: 9px;
	top: calc(50% + 33px);
	left: 9px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #c1d5e5;
	box-shadow: 0 5px 18px rgba(5, 39, 66, .13);
	color: #9a2929;
	font: 600 11px/1.4 Poppins, Arial, sans-serif;
	text-align: center;
	pointer-events: none;
}

/* Compact, persistent icons for portrait thumbnails on phones and tablets. */
@media (hover: none), (pointer: coarse), (max-width: 767px) {
	ul.products li.product.btlq-ready .btlq-layer { opacity: 1; transform: none; align-items: flex-end; justify-content: flex-end; padding: 8px; background: none; }
	ul.products li.product .btlq-action {
		position: relative;
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		padding: 0;
		justify-content: center;
		border: 0 !important;
		border-radius: 11px;
		background: #0b5e9c;
		box-shadow: none !important;
	}
	ul.products li.product .btlq-feedback { top: auto; bottom: 60px; }
	ul.products li.product .btlq-action svg { width: 21px; height: 21px; flex: none; }
	ul.products li.product .btlq-action .btlq-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
	ul.products li.product .btlq-action.btlq-busy svg,
	ul.products li.product .btlq-action.btlq-added svg { visibility: hidden; }
	ul.products li.product .btlq-action.btlq-busy::after {
		content: '';
		position: absolute;
		width: 17px;
		height: 17px;
		border: 2px solid #fff;
		border-right-color: transparent;
		border-radius: 50%;
		animation: btlq-spin .8s linear infinite;
	}
	ul.products li.product .btlq-action.btlq-added::after {
		content: '✓';
		position: absolute;
		font: 700 22px/1 Arial, sans-serif;
	}
}

@keyframes btlq-spin { to { transform: rotate(360deg); } }

body.btlq-panel-open { overflow: hidden; }
.btlq-panel[hidden] { display: none !important; }
.btlq-panel {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	justify-content: flex-end;
	font-family: Poppins, Helvetica, Arial, sans-serif;
}
.btlq-shade { position: absolute; inset: 0; background: rgba(5, 24, 39, .62); backdrop-filter: blur(2px); }
.btlq-sheet {
	position: relative;
	width: min(100%, 455px);
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -16px 0 45px rgba(2, 27, 45, .2);
	color: #133249;
	overflow: hidden;
}
.btlq-head {
	min-height: 66px;
	padding: 0 25px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #083d68;
	border-bottom: 3px solid #35b5df;
}
.btlq-brand { color: #c5eafa; font-size: 11px; font-weight: 700; letter-spacing: .19em; }
.btlq-close {
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 2px;
	background: none;
	color: #fff;
	font: 300 28px/1 Arial, sans-serif;
	cursor: pointer;
}
.btlq-close:hover, .btlq-close:focus-visible { background: #126b9b; color: #fff; }
.btlq-sheet-body { overflow: auto; padding: 30px 28px 36px; }
.btlq-product { display: flex; align-items: center; gap: 18px; margin-bottom: 31px; }
.btlq-photo {
	width: 84px;
	height: 112px;
	flex: 0 0 84px;
	display: grid;
	place-items: center;
	background: #f3f9fc;
	border: 1px solid #dfedf4;
}
.btlq-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.btlq-kicker { color: #0b78b5; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.btlq-sheet #btlq-heading { margin: 7px 0 0; color: #102f49; font: 700 20px/1.28 Poppins, Arial, sans-serif; }
.btlq-prompt { margin: 0 0 13px; color: #557080; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.btlq-choices { display: grid; gap: 8px; max-height: 45vh; overflow: auto; }
.btlq-choice {
	width: 100%;
	min-height: 66px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 12px;
	padding: 13px 16px;
	border: 1px solid #d6e5ef;
	border-left: 3px solid transparent;
	border-radius: 2px;
	background: #fff;
	color: #17364d;
	font: 600 13px/1.4 Poppins, Arial, sans-serif;
	text-align: left;
	cursor: pointer;
}
.btlq-choice:hover, .btlq-choice:focus-visible, .btlq-choice.btlq-selected { border-color: #1988c1; border-left-color: #1988c1; background: #f2faff; }
.btlq-choice strong { color: #116ba1; font-size: 13px; white-space: nowrap; }
.btlq-choice small { width: 100%; color: #667d8b; }
.btlq-choice:disabled { opacity: .54; cursor: not-allowed; }
.btlq-actions { display: flex; gap: 10px; align-items: end; margin-top: 28px; }
.btlq-quantity { display: grid; gap: 6px; color: #607785; font-size: 11px; font-weight: 700; }
.btlq-quantity input {
	width: 75px;
	height: 47px;
	box-sizing: border-box;
	padding: 8px;
	border: 1px solid #bbd2df;
	border-radius: 2px;
	color: #133249;
	background: #fff;
	font: 600 15px Poppins, Arial, sans-serif;
	text-align: center;
}
.btlq-add {
	flex: 1;
	min-height: 47px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px 16px;
	border: 1px solid #0b5e9c;
	border-radius: 2px;
	background: #0b5e9c;
	color: #fff;
	font: 700 12px/1.2 Poppins, Arial, sans-serif;
	letter-spacing: .09em;
	text-transform: uppercase;
	cursor: pointer;
}
.btlq-add:hover:not(:disabled), .btlq-add:focus-visible:not(:disabled) { background: #083d68; color: #fff; }
.btlq-add:disabled { opacity: .48; cursor: not-allowed; }
.btlq-add.btlq-busy { opacity: .7; cursor: progress; }
.btlq-status { min-height: 18px; margin: 12px 0 5px; color: #a72e39; font-size: 12px; line-height: 1.5; }
.btlq-product-link { color: #0b5e9c; font-size: 12px; font-weight: 700; text-decoration: underline; }
.btlq-panel[data-mode="cart"] .btlq-photo,
.btlq-panel[data-mode="cart"] .btlq-kicker,
.btlq-panel[data-mode="cart"] .btlq-prompt,
.btlq-panel[data-mode="cart"] .btlq-choices,
.btlq-panel[data-mode="cart"] .btlq-actions,
.btlq-panel[data-mode="cart"] .btlq-status,
.btlq-panel[data-mode="cart"] .btlq-product-link { display: none; }
.btlq-panel[data-mode="cart"] .btlq-product { margin: 0 0 25px; padding-bottom: 17px; border-bottom: 1px solid #d9e7f0; }
.btlq-panel[data-mode="options"] .btlq-cart-body { display: none; }
.btlq-cart-list { display: grid; gap: 0; font-size: 13px; }
.btlq-cart-item {
	display: flex;
	gap: 13px;
	padding: 13px 0;
	border-bottom: 1px solid #e4edf3;
	color: #143550 !important;
	text-decoration: none !important;
}
.btlq-cart-photo { flex: 0 0 60px; width: 60px; height: 76px; display: grid; place-items: center; background: #f3f9fc; }
.btlq-cart-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.btlq-cart-details { min-width: 0; display: grid; align-content: center; gap: 2px; }
.btlq-cart-details strong { font-size: 12px; line-height: 1.4; }
.btlq-cart-details small { color: #627c8f; font-size: 10px; }
.btlq-cart-price { color: #1272aa; font-size: 11px; font-weight: 700; }
.btlq-cart-foot { margin-top: 25px; }
.btlq-subtotal { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-top: 17px; border-top: 1px solid #b9d2e2; font-size: 14px; }
.btlq-subtotal strong { color: #0b5e9c; }
.btlq-cart-links { display: flex; gap: 9px; }
.btlq-cart-links a { flex: 1; display: grid; place-items: center; min-height: 44px; padding: 5px; border: 1px solid #0b5e9c; border-radius: 2px; font-size: 11px; font-weight: 700; text-align: center; text-decoration: none !important; }
.btlq-cart-link { background: #fff; color: #0b5e9c !important; }
.btlq-checkout-link { background: #0b5e9c; color: #fff !important; }
.mini-cart-custom-nav-wrap .minicart-content:has(.btlq-cart-item) { flex-direction: column; }
.mini-cart-custom-nav-wrap .minicart-content .btlq-cart-item { width: 100%; box-sizing: border-box; }

@media (max-width: 480px) {
	.btlq-sheet { width: min(100%, 390px); }
	.btlq-head { min-height: 59px; padding: 0 18px; }
	.btlq-sheet-body { padding: 23px 18px 30px; }
	.btlq-choices { max-height: 40vh; }
}
@media (prefers-reduced-motion: reduce) {
	ul.products li.product .btlq-layer, ul.products li.product .btlq-action { transition: none; }
	ul.products li.product .btlq-action.btlq-busy::after { animation-duration: 2s; }
}
