/* B2B role price HTML — used in shop archive, single product, cart, etc.
   Output by HK\Pricing::filter_price_html(). Theme can override via .hk-price-b2b. */

.hk-price-b2b {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 8px;
	line-height: 1.25;
}

.hk-price-b2b del {
	color: var(--ink-mute, #8a8579);
	font-weight: 400;
	font-size: 0.85em;
	text-decoration: line-through;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--ink-mute, #8a8579);
	opacity: 0.65;
}

.hk-price-b2b ins {
	color: var(--accent-deep, #00ac8a);
	font-weight: 700;
	text-decoration: none;
	font-size: 1em;
}

.hk-price-b2b ins .woocommerce-Price-amount,
.hk-price-b2b del .woocommerce-Price-amount {
	color: inherit;
	font-weight: inherit;
}

.hk-price-b2b__tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(0, 172, 138, 0.12);
	color: var(--accent-deep, #00ac8a);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	white-space: nowrap;
	line-height: 1.4;
}

/* Promo Day badge — distinct warm color so it reads differently from the role discount tag. */
.hk-price-b2b__tag--promo {
	background: rgba(220, 38, 38, 0.12);
	color: #b91c1c;
	letter-spacing: 0.04em;
}
.hk-price-b2b--detail.hk-price-b2b--promo {
	background: rgba(220, 38, 38, 0.05);
	border-color: rgba(220, 38, 38, 0.18);
}
.hk-price-b2b--detail.hk-price-b2b--promo .hk-price-b2b__disc {
	color: #b91c1c;
}

/* ADPW renders plain <del> in cart/checkout price cells with no muting — override to match B2B convention.
   pricing.css is only enqueued for TYPE_PRODUCT roles so this only affects reseller/wholesale users. */
td.product-price del,
td.product-subtotal del,
.woocommerce-checkout-review-order-table del {
	color: var(--ink-mute, #8a8579) !important;
	font-weight: 400 !important;
	font-size: 0.82em !important;
	opacity: 0.65 !important;
	text-decoration: line-through !important;
	text-decoration-thickness: 2px !important;
	text-decoration-color: var(--ink-mute, #8a8579) !important;
}

/* Tighter rendering in shop cards (price block has limited horizontal room) */
ul.products .hk-price-b2b,
.hk-card .hk-price-b2b {
	gap: 4px 6px;
}
ul.products .hk-price-b2b__tag,
.hk-card .hk-price-b2b__tag {
	font-size: 10px;
	padding: 1px 6px;
}

/* ============================================================
   Detailed labeled layout — single product page only
   ============================================================ */

.hk-price-b2b--detail {
	display: grid;
	grid-template-columns: minmax(120px, max-content) 1fr;
	column-gap: 18px;
	row-gap: 6px;
	align-items: center;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(0, 172, 138, 0.06);
	border: 1px solid rgba(0, 172, 138, 0.18);
	margin: 6px 0 4px;
	max-width: 460px;
}

.hk-price-b2b--detail .hk-price-b2b__row {
	display: contents;
}

.hk-price-b2b--detail .hk-price-b2b__caption {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-mute, #8a8579);
	line-height: 1.3;
}

.hk-price-b2b--detail .hk-price-b2b__orig {
	font-size: 15px;
	font-weight: 400;
	color: var(--ink-mute, #8a8579);
	text-decoration: line-through;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--ink-mute, #8a8579);
	opacity: 0.65;
	justify-self: start;
}

.hk-price-b2b--detail .hk-price-b2b__orig .woocommerce-Price-amount {
	color: inherit;
	font-weight: inherit;
}

.hk-price-b2b--detail .hk-price-b2b__row--tag .hk-price-b2b__tag {
	justify-self: start;
	font-size: 12px;
	padding: 3px 10px;
}

.hk-price-b2b--detail .hk-price-b2b__disc {
	font-size: 24px;
	font-weight: 800;
	color: var(--accent-deep, #00ac8a);
	text-decoration: none;
	justify-self: start;
	letter-spacing: -0.01em;
}

.hk-price-b2b--detail .hk-price-b2b__disc .woocommerce-Price-amount {
	color: inherit;
	font-weight: inherit;
}

/* Mobile — keep the labels but stack tighter */
@media (max-width: 640px) {
	.hk-price-b2b--detail {
		grid-template-columns: minmax(96px, max-content) 1fr;
		column-gap: 12px;
		padding: 12px 14px;
		max-width: 100%;
	}
	.hk-price-b2b--detail .hk-price-b2b__caption { font-size: 10.5px; }
	.hk-price-b2b--detail .hk-price-b2b__orig { font-size: 14px; }
	.hk-price-b2b--detail .hk-price-b2b__disc { font-size: 22px; }
}
