/**
 * Lucky Bee Store - storefront styles.
 *
 * The compare block's visual hierarchy is deliberate: our price is the largest
 * thing in the block and the Amazon figure is small and secondary. Indian
 * shoppers distrust large struck-through prices, so that ordering is load
 * bearing, not decorative.
 */

.lbs-compare {
	--lbs-ink: #14181f;
	--lbs-muted: #667085;
	--lbs-line: #e4e7ec;
	--lbs-success: #067647;
	--lbs-success-bg: #ecfdf3;
	--lbs-warning: #b54708;
	--lbs-warning-bg: #fffaeb;
	--lbs-accent: #175cd3;
	--lbs-accent-bg: #eff8ff;

	margin: 0 0 18px;
	padding: 16px 18px;
	border: 1px solid var(--lbs-line);
	border-radius: 12px;
	background: #fff;
	color: var(--lbs-ink);
	font-size: 14px;
	line-height: 1.45;
}

/* 1. Our price - the hero. */
.lbs-our-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.lbs-our-price-value,
.lbs-our-price-value .woocommerce-Price-amount,
.lbs-our-price-value bdi {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--lbs-ink);
	letter-spacing: -0.01em;
}

/* The label naming whose price this is, e.g. "Lucky Bee price". */
.lbs-our-price-label {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--lbs-muted, #667085);
}

/* 2. Saving badge - rupees and percent, both always present. */
.lbs-saving-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--lbs-success-bg);
	color: var(--lbs-success);
	font-size: 13px;
	font-weight: 600;
}

.lbs-saving-badge .woocommerce-Price-amount,
.lbs-saving-badge bdi {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.lbs-saving-sep {
	opacity: 0.55;
}

/* 3. Divider, then the Amazon reference. */
.lbs-divider {
	height: 1px;
	margin: 13px 0 10px;
	background: var(--lbs-line);
}

.lbs-amazon-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.lbs-amazon-label {
	color: var(--lbs-muted);
	font-size: 13px;
}

.lbs-amazon-price {
	text-align: right;
}

.lbs-amazon-price del,
.lbs-amazon-price del .woocommerce-Price-amount,
.lbs-amazon-price del bdi {
	color: var(--lbs-muted);
	font-size: 15px;
	font-weight: 500;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
	opacity: 1;
}

/* 4. Timestamp left, verify link right. */
.lbs-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
	font-size: 12px;
}

.lbs-checked {
	color: var(--lbs-muted);
}

/* Keeps the link right-aligned even when the timestamp is suppressed. */
.lbs-meta-row .lbs-verify:only-child {
	margin-left: auto;
}

.lbs-verify {
	color: var(--lbs-accent);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.lbs-verify:hover,
.lbs-verify:focus-visible {
	text-decoration: underline;
}

/* 5. Condition badge. Sits above the block's 14px base: it is a disclosure, not
   fine print, and it still stays well under the price so the hierarchy holds. */
.lbs-condition {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 8px;
	border-left: 3px solid currentColor;
	font-size: 15px;
}

/* Standing on its own, the badge carries the block's outer spacing itself, and
   the type is set from here because there is no .lbs-compare wrapper above it. */
.lbs-condition-standalone {
	margin: 0 0 18px;
	line-height: 1.45;
}

.lbs-condition-standalone .lbs-condition {
	margin-top: 0;
}

.lbs-condition-label {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.lbs-condition-sub {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	opacity: 0.85;
	color: var(--lbs-ink);
}

.lbs-tone-success {
	background: var(--lbs-success-bg);
	color: var(--lbs-success);
}

.lbs-tone-warning {
	background: var(--lbs-warning-bg);
	color: var(--lbs-warning);
}

.lbs-tone-accent {
	background: var(--lbs-accent-bg);
	color: var(--lbs-accent);
}

/* Low stock indicator - the honest replacement for the viewer counter. */
.lbs-low-stock {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 12px;
	color: #b54708;
	font-size: 14px;
	font-weight: 600;
}

.lbs-low-stock-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
}

/* Shop by price. */
.lbs-bands {
	margin: 0 0 28px;
}

.lbs-bands-title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 700;
}

.lbs-bands-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lbs-band a {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 16px 18px;
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	background: #fff;
	color: #14181f;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.lbs-band a:hover,
.lbs-band a:focus-visible {
	border-color: #175cd3;
	transform: translateY(-2px);
}

.lbs-band-label {
	font-size: 17px;
	font-weight: 700;
}

.lbs-band-count {
	color: #667085;
	font-size: 13px;
}

/* Free gift progress. */
.lbs-gift-bar {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f9fafb;
	border: 1px solid #e4e7ec;
}

.lbs-gift-text {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
}

.lbs-gift-track {
	height: 6px;
	border-radius: 999px;
	background: #e4e7ec;
	overflow: hidden;
}

.lbs-gift-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: #067647;
	transition: width 0.3s ease;
}

.lbs-gift-won {
	background: #ecfdf3;
	border-color: #abefc6;
	color: #067647;
	font-weight: 600;
}

.lbs-gift-badge,
.lbs-gift-free {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #ecfdf3;
	color: #067647;
	font-size: 12px;
	font-weight: 700;
}

/* Deal of the Day. */
.lbs-deal {
	margin: 0 0 28px;
}

.lbs-deal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.lbs-deal-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.lbs-countdown {
	display: flex;
	gap: 8px;
}

.lbs-cd-part {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 46px;
	padding: 6px 8px;
	border-radius: 8px;
	background: #14181f;
	color: #fff;
}

.lbs-cd-part b {
	font-size: 18px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.lbs-cd-part i {
	font-size: 10px;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.7;
}

.lbs-deal-items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.lbs-deal-item {
	display: flex;
	gap: 16px;
	padding: 16px;
	border: 1px solid #e4e7ec;
	border-radius: 12px;
	background: #fff;
}

.lbs-deal-thumb img {
	width: 120px;
	height: auto;
	border-radius: 8px;
}

.lbs-deal-body h3 {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.35;
}

.lbs-deal-body .lbs-compare {
	margin-top: 10px;
	padding: 12px;
}

.lbs-deal-body .lbs-our-price-value,
.lbs-deal-body .lbs-our-price-value bdi {
	font-size: 24px;
}

/* Shop filters. */
.lbs-filter {
	margin: 0 0 24px;
}

.lbs-filter-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
}

.lbs-filter ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lbs-filter li {
	margin-bottom: 6px;
}

.lbs-filter a {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #344054;
	font-size: 14px;
	text-decoration: none;
}

.lbs-filter a:hover,
.lbs-filter a:focus-visible {
	color: #175cd3;
}

.lbs-filter .lbs-active > a {
	color: #175cd3;
	font-weight: 700;
}

.lbs-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
}

.lbs-filter .lbs-tone-success {
	color: #067647;
}

.lbs-filter .lbs-tone-warning {
	color: #b54708;
}

.lbs-filter .lbs-tone-accent {
	color: #175cd3;
}

/* Mobile. */
@media (max-width: 600px) {
	.lbs-compare {
		padding: 14px;
	}

	.lbs-our-price-value,
	.lbs-our-price-value .woocommerce-Price-amount,
	.lbs-our-price-value bdi {
		font-size: 28px;
	}

	.lbs-meta-row {
		flex-wrap: wrap;
		gap: 6px;
	}

	.lbs-deal-item {
		flex-direction: column;
	}

	.lbs-deal-thumb img {
		width: 100%;
	}
}

/* The block must never shift layout while the variation script swaps it. */
.lbs-compare[hidden] {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.lbs-band a,
	.lbs-gift-fill {
		transition: none;
	}
}
