/**
 * BK Price Widget Styles
 * Author: Bùi Đức Hạnh (https://buhaweb.com/)
 * Prefix: bdh-bk-
 * Kit 4 Global Design System Compliant (Tông Xanh Lá & Đỏ Chính cho Giá)
 */

/* ==========================================================================
   1. PRICE ROOT CONTAINER
   ========================================================================== */
.bdh-bk-price {
	position: relative;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	box-sizing: border-box;
	line-height: 1.2;
}

.bdh-bk-price *,
.bdh-bk-price *::before,
.bdh-bk-price *::after {
	box-sizing: border-box;
}

/* Inline vs Stacked */
.bdh-bk-price--inline {
	flex-direction: row;
	align-items: baseline;
}

.bdh-bk-price--stacked {
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

/* ==========================================================================
   2. PREFIX & SUFFIX
   ========================================================================== */
.bdh-bk-price__prefix {
	color: var(--e-global-color-d27c3cc, #1f2328);
	font-size: var(--e-global-typography-afd6f4d-font-size, 16px);
	font-weight: 600;
	margin-right: 6px;
	display: inline-block;
}

.bdh-bk-price__suffix {
	color: var(--e-global-color-76ff1c6, #4b5563);
	font-size: var(--e-global-typography-afd6f4d-font-size, 14px);
	font-weight: 400;
	margin-left: 6px;
	display: inline-block;
}

/* ==========================================================================
   3. PRICE AMOUNT WRAPPER & VALUES
   ========================================================================== */
.bdh-bk-price__amount-wrap {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
}

.bdh-bk-price--stacked .bdh-bk-price__amount-wrap {
	flex-direction: column;
	align-items: flex-start;
}

/* Main Price / Sale Price */
.bdh-bk-price__current {
	color: var(--e-global-color-d0d47e8, #ee3338);
	font-size: var(--e-global-typography-8dc9564-font-size, 24px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	display: inline-block;
}

.bdh-bk-price__current .amount,
.bdh-bk-price__current ins .amount {
	color: var(--e-global-color-d0d47e8, #ee3338);
	text-decoration: none;
	font-weight: 700;
}

.bdh-bk-price__current ins {
	text-decoration: none;
	color: var(--e-global-color-d0d47e8, #ee3338);
}

/* Regular Price Strikethrough */
.bdh-bk-price__regular,
.bdh-bk-price__regular del,
.bdh-bk-price__current del {
	color: var(--e-global-color-47f60d3, #9ca3af);
	font-size: var(--e-global-typography-afd6f4d-font-size, 16px);
	font-weight: 400;
	text-decoration: line-through;
	margin-left: 10px;
	display: inline-block;
	opacity: 0.85;
}

.bdh-bk-price__regular .amount,
.bdh-bk-price__regular del .amount,
.bdh-bk-price__current del .amount {
	color: var(--e-global-color-47f60d3, #9ca3af);
	font-weight: 400;
}

/* Variable range styling */
.bdh-bk-price__current--variable {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
}

/* ==========================================================================
   4. CONTACT PRICE ("GIÁ: LIÊN HỆ" WHEN PRICE = 0)
   ========================================================================== */
.bdh-bk-price__contact-wrap {
	display: inline-flex;
	align-items: center;
}

.bdh-bk-price__contact-text {
	color: var(--e-global-color-d0d47e8, #ee3338);
	font-size: var(--e-global-typography-8dc9564-font-size, 24px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	display: inline-block;
}

.bdh-bk-price__contact-link {
	color: var(--e-global-color-d0d47e8, #ee3338);
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

.bdh-bk-price__contact-link:hover {
	color: var(--e-global-color-97923db, #1e6b3a);
}

/* ==========================================================================
   5. DISCOUNT BADGE
   ========================================================================== */
.bdh-bk-price__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--e-global-color-d0d47e8, #ee3338);
	color: var(--e-global-color-8d5d81d, #ffffff);
	font-size: var(--e-global-typography-79e5d5b-font-size, 13px);
	font-weight: 700;
	line-height: 1;
	padding: 3px 8px;
	border-radius: 4px;
	margin-left: 10px;
	vertical-align: middle;
	letter-spacing: 0.02em;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (Tablet <= 1024px, Mobile <= 767px)
   ========================================================================== */
@media (max-width: 767px) {
	.bdh-bk-price__current,
	.bdh-bk-price__contact-text {
		font-size: var(--e-global-typography-30bf004-font-size, 20px);
	}

	.bdh-bk-price__regular {
		font-size: 14px;
		margin-left: 6px;
	}

	.bdh-bk-price__badge {
		font-size: 11px;
		padding: 2px 6px;
		margin-left: 6px;
	}
}
