/* ============================================================
   HBWeb Promo — Frontend CSS
   Version: 3.4.4
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
	--hbpr-primary:       #1a73e8;
	--hbpr-primary-light: rgba(26,115,232,.1);
	--hbpr-primary-ring:  rgba(26,115,232,.25);
	--hbpr-green:         #2e7d32;
	--hbpr-green-light:   rgba(46,125,50,.08);
	--hbpr-gift-badge:    #e65100;
	--hbpr-gift-bg:       #fff8f5;
	--hbpr-border:        #e8e8e8;
	--hbpr-radius-sm:     6px;
	--hbpr-radius-md:     10px;
	--hbpr-radius-pill:   999px;
	--hbpr-text:          #333;
	--hbpr-text-muted:    #888;
	--hbpr-shadow-sm:     0 1px 4px rgba(0,0,0,.08);
	--hbpr-shadow-md:     0 4px 16px rgba(0,0,0,.12);
	--hbpr-transition:    .18s ease;
}

/* ── Gift Selection (trang sản phẩm) ────────────────────────── */
.hbpr-gift-wrapper {
	margin-bottom: 20px;
	border: 1.5px solid var(--hbpr-border);
	border-radius: var(--hbpr-radius-md);
	background: #fff;
	overflow: hidden;
	box-shadow: var(--hbpr-shadow-sm);
}

.hbpr-gift-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 16px;
	border-bottom: 1px solid var(--hbpr-border);
	background: linear-gradient(135deg, #f8fffe 0%, #f0f7ff 100%);
}

.hbpr-gift-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--hbpr-text);
	display: flex;
	align-items: center;
	gap: 5px;
}


.hbpr-gift-value {
	font-size: 15px;
	font-weight: 700;
	color: var(--hbpr-green);
	background: var(--hbpr-green-light);
	padding: 2px 10px;
	border-radius: var(--hbpr-radius-pill);
}

.hbpr-gift-list {
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hbpr-gift-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: #fff;
	border: 1.5px solid var(--hbpr-border);
	border-radius: var(--hbpr-radius-sm);
	padding: 10px;
	transition: border-color var(--hbpr-transition), box-shadow var(--hbpr-transition),
	            background var(--hbpr-transition);
	cursor: pointer;
}

.hbpr-gift-item--selected,
.hbpr-gift-item:has(.hbpr-radio:checked) {
	border-color: var(--hbpr-primary);
	background: #f5f9ff;
	box-shadow: 0 0 0 3px var(--hbpr-primary-ring);
}

/* Hint text khi có nhiều quà */
.hbpr-gift-radio-hint {
	font-size: 11.5px;
	color: var(--hbpr-text-muted);
	padding: 4px 12px 0;
	font-style: italic;
}

.hbpr-gift-selector {
	display: flex;
	align-items: flex-start;
	padding-top: 14px;
	flex-shrink: 0;
}

/* Custom radio */
.hbpr-radio-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	position: relative;
}

.hbpr-radio-label input[type="radio"].hbpr-radio {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.hbpr-radio-custom {
	display: inline-block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #c8c8c8;
	background: #fff;
	flex-shrink: 0;
	transition: border-color var(--hbpr-transition), box-shadow var(--hbpr-transition);
	position: relative;
}

.hbpr-radio-custom::after {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hbpr-primary);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	transition: transform .15s cubic-bezier(.34,1.56,.64,1);
}

.hbpr-radio-label input[type="radio"].hbpr-radio:checked ~ .hbpr-radio-custom {
	border-color: var(--hbpr-primary);
	box-shadow: 0 0 0 3px var(--hbpr-primary-ring);
}

.hbpr-radio-label input[type="radio"].hbpr-radio:checked ~ .hbpr-radio-custom::after {
	transform: translate(-50%, -50%) scale(1);
}

.hbpr-radio-label:hover .hbpr-radio-custom {
	border-color: var(--hbpr-primary);
}

/* Gift thumbnail */
.hbpr-gift-thumb {
	position: relative;
	flex-shrink: 0;
	background: #f5f5f5;
	border-radius: var(--hbpr-radius-sm);
	border: 1px solid #ebebeb;
	overflow: visible;
}

.hbpr-gift-thumb img {
	border-radius: calc(var(--hbpr-radius-sm) - 1px);
	display: block;
}

.hbpr-gift-icon {
	position: absolute;
	top: -6px;
	left: -6px;
	background: var(--hbpr-gift-badge);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: var(--hbpr-radius-pill);
	letter-spacing: .3px;
	box-shadow: 0 1px 4px rgba(230,81,0,.3);
	white-space: nowrap;
}

.hbpr-gift-info {
	flex: 1;
	min-width: 0;
}

.hbpr-gift-name {
	font-size: 13.5px;
	font-weight: 500;
	color: #3a3a3a;
	margin: 0 0 6px;
	line-height: 1.4;
}

/* Variations (selects trong trang SP) */
.hbpr-gift-variations {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 10px;
	margin-bottom: 6px;
}

.hbpr-gift-attr-row {
	display: flex;
	align-items: center;
	gap: 5px;
}

.hbpr-gift-attr-label {
	font-size: 11px;
	color: var(--hbpr-text-muted);
	white-space: nowrap;
	margin: 0;
}

/* Select dropdown dạng pill */
.hbpr-gift-select {
	height: 26px;
	padding: 0 8px;
	font-size: 12px;
	border: 1.5px solid #d8d8d8;
	border-radius: var(--hbpr-radius-pill);
	background: #fafafa;
	cursor: pointer;
	color: var(--hbpr-text);
	appearance: auto;
	-webkit-appearance: auto;
	min-width: 68px;
	max-width: 120px;
	transition: border-color var(--hbpr-transition), box-shadow var(--hbpr-transition);
}

.hbpr-gift-select:hover {
	border-color: var(--hbpr-primary);
	background: #fff;
}

.hbpr-gift-select:focus {
	border-color: var(--hbpr-primary);
	box-shadow: 0 0 0 3px var(--hbpr-primary-ring);
	outline: none;
	background: #fff;
}

/* Upbill select trong trang SP */
.hbpr-upbill-select {
	width: 100%;
	padding: 7px 12px;
	border: 1.5px solid #d8d8d8;
	border-radius: var(--hbpr-radius-sm);
	font-size: 13px;
	background: #fff;
	margin-bottom: 6px;
	appearance: auto;
	-webkit-appearance: auto;
	transition: border-color var(--hbpr-transition);
}

.hbpr-upbill-select:hover { border-color: var(--hbpr-primary); }
.hbpr-upbill-select:focus {
	border-color: var(--hbpr-primary);
	box-shadow: 0 0 0 3px var(--hbpr-primary-ring);
	outline: none;
}

/* Gift price */
.hbpr-gift-price {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 5px;
}

.hbpr-gift-price strong {
	font-size: 15px;
	font-weight: 700;
	color: #111;
}

.hbpr-gift-price s {
	font-size: 12px;
	color: #bbb;
}

/* ── Upbill Popup ────────────────────────────────────────────── */
.hbpr-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0,0,0,.45);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	backdrop-filter: blur(2px);
}

.hbpr-popup-content {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 520px;
	padding: 26px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 24px 64px rgba(0,0,0,.22);
	animation: hbprPopupIn .22s cubic-bezier(.34,1.56,.64,1);
}

@keyframes hbprPopupIn {
	from { opacity: 0; transform: scale(.94) translateY(10px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hbpr-popup-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: #f5f5f5;
	border: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	color: #666;
	line-height: 1;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--hbpr-transition), color var(--hbpr-transition);
}

.hbpr-popup-close:hover {
	background: #eee;
	color: #222;
}

.hbpr-popup-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}

.hbpr-popup-icon {
	font-size: 34px;
	flex-shrink: 0;
	line-height: 1;
}

.hbpr-popup-header h3 {
	margin: 0 0 4px;
	font-size: 17px;
	color: var(--hbpr-green);
	font-weight: 700;
}

.hbpr-popup-header p {
	margin: 0;
	font-size: 13.5px;
	color: #666;
}

.hbpr-upbill-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hbpr-upbill-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	border: 1.5px solid var(--hbpr-border);
	border-radius: 10px;
	padding: 12px;
	background: #fafafa;
	transition: border-color var(--hbpr-transition), background var(--hbpr-transition);
}

.hbpr-upbill-item:hover {
	border-color: #d0d0d0;
	background: #f6f6f6;
}

.hbpr-upbill-thumb img {
	width: 76px;
	height: 76px;
	object-fit: cover;
	border-radius: var(--hbpr-radius-sm);
	display: block;
}

.hbpr-upbill-info { flex: 1; min-width: 0; }

.hbpr-upbill-name {
	font-size: 13.5px;
	font-weight: 600;
	color: #333;
	margin: 0 0 5px;
	line-height: 1.4;
}

.hbpr-upbill-price {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 9px;
}

.hbpr-upbill-price strong {
	font-size: 15px;
	font-weight: 700;
	color: #111;
}

.hbpr-upbill-price s {
	font-size: 12px;
	color: #bbb;
}

.hbpr-upbill-attrs { margin-bottom: 9px; }

.hbpr-upbill-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--hbpr-green);
	color: #fff;
	border: none;
	border-radius: var(--hbpr-radius-pill);
	padding: 7px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--hbpr-transition), transform var(--hbpr-transition),
	            box-shadow var(--hbpr-transition);
}

.hbpr-upbill-btn:hover {
	background: #236827;
	box-shadow: 0 3px 10px rgba(46,125,50,.35);
	transform: translateY(-1px);
}

.hbpr-upbill-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* ── Checkout: select đổi biến thể ─────────────────────────── */

/* Wrap toàn bộ các select của 1 item */
.hbpr-co-select-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-top: 7px;
	align-items: center;
}

/* Mỗi attribute (1 label + 1 select) */
.variation-select-row {
	display: flex;
	align-items: center;
	gap: 5px;
}

/* Label thuộc tính */
.variation-select-label {
	font-size: 11.5px;
	color: var(--hbpr-text-muted);
	white-space: nowrap;
	margin: 0;
	font-weight: 500;
}

.hbpr-co-select-wrap .variation-attr-select {
	height: 32px !important;
	padding: 0 28px 0 16px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	border: none !important;
	border-radius: var(--hbpr-radius-pill) !important;
	background-color: #f0f0f0 !important;
	/* background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23555%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E") !important; */
	background-repeat: no-repeat !important;
	background-position: right 10px center !important;
	background-size: 12px !important;
	cursor: pointer !important;
	color: #333 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	min-width: 70px !important;
	max-width: 140px !important;
	transition: background-color var(--hbpr-transition), box-shadow var(--hbpr-transition);
}

.hbpr-co-select-wrap .variation-attr-select:hover {
	background-color: #e6e6e6;
}

.hbpr-co-select-wrap .variation-attr-select:focus {
	box-shadow: 0 0 0 2px var(--hbpr-primary-ring);
	outline: none;
	background-color: #e6e6e6;
}

/* Trạng thái loading (khi đang gọi AJAX) */
.hbpr-co-select-wrap .variation-attr-select:disabled {
	opacity: .45;
	cursor: wait;
	background: #f0f0f0;
}

/* Toàn bộ hàng mờ khi đang xử lý */
tr.hbpr-loading {
	opacity: .5;
	pointer-events: none;
	transition: opacity var(--hbpr-transition);
}

/* Số lượng quà (x1, x2...) */
.hbpr-gift-qty-text {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	font-size: 14px;
	font-weight: 500;
	color: #777;
	background: transparent;
	padding: 0;
}

/* ── Checkout: gift item row & Clean alignment ───────────────── */

/* Ẩn chữ hiển thị biến thể tĩnh cũ của theme (Kích thước: L, Màu: Xanh lá) */
.shop_table.woocommerce-checkout-review-order-table .checkout-product-info p:not(.hbpr-co-select-wrap),
.shop_table.woocommerce-checkout-review-order-table .hbpr-checkout-product-info p:not(.hbpr-co-select-wrap),
.shop_table.woocommerce-checkout-review-order-table .checkout-variation,
.shop_table.woocommerce-checkout-review-order-table .wc-item-meta {
	display: none !important;
}

/* Style dl.variation tại checkout: hiển thị compact dạng inline pairs */
.shop_table.woocommerce-checkout-review-order-table dl.variation {
	margin: 4px 0 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	font-size: 12px;
	color: #777;
	line-height: 1.4;
	transition: opacity 0.2s ease;
}

.shop_table.woocommerce-checkout-review-order-table dl.variation dt,
.shop_table.woocommerce-checkout-review-order-table dl.variation dd {
	margin: 0;
	padding: 0;
	display: inline;
	font-weight: normal;
}

.shop_table.woocommerce-checkout-review-order-table dl.variation dt::after {
	content: '\a0';
}

.shop_table.woocommerce-checkout-review-order-table dl.variation dd::after {
	content: '·';
	margin: 0 4px;
	color: #ccc;
}

.shop_table.woocommerce-checkout-review-order-table dl.variation dd:last-of-type::after {
	content: '';
}

.shop_table.woocommerce-checkout-review-order-table dl.variation p {
	display: inline;
	margin: 0;
}

/* Định dạng thumbnail nhỏ gọn trong bảng checkout */
.shop_table.woocommerce-checkout-review-order-table .checkout-product-thumb img,
.shop_table.woocommerce-checkout-review-order-table td.product-name img {
	width: 60px !important;
	height: 60px !important;
	object-fit: cover;
	border-radius: 8px;
}

/* Lùi dòng cho sản phẩm quà tặng (Coolmate design) */
.shop_table.woocommerce-checkout-review-order-table tr.hbpr-is-gift-row td:first-child,
.shop_table.woocommerce-checkout-review-order-table tr:has(.hbpr-gift-qty-text) td:first-child {
	padding-left: 28px !important;
	position: relative;
}

/* Sắp xếp tên sản phẩm + badge + select ngắn gọn gọn gàng */
.shop_table.woocommerce-checkout-review-order-table .checkout-product-info,
.shop_table.woocommerce-checkout-review-order-table .hbpr-checkout-name,
.shop_table.woocommerce-checkout-review-order-table td.product-name {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* td.product-name dùng flex row để chứa ảnh + tên (khi plugin inject layout 2 cột) */
.shop_table.woocommerce-checkout-review-order-table td.product-name:has(.hbpr-checkout-product-info) {
	display: block;
}

.shop_table.woocommerce-checkout-review-order-table .checkout-product-name {
	font-size: 13.5px;
	font-weight: 600;
	color: #222;
	line-height: 1.35;
}

/* Badge "Quà tặng" trong tên SP checkout */
.hbpr-gift-badge-co {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #ff6000;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	letter-spacing: .2px;
	width: fit-content;
	margin-bottom: 2px;
	white-space: nowrap;
}

/* Hover effect trên hàng quà trong bảng checkout */
.shop_table.woocommerce-checkout-review-order-table tr.hbpr-is-gift-row:hover td {
	background-color: var(--hbpr-gift-bg);
	transition: background-color var(--hbpr-transition);
}

/* ── Checkout: thông báo lỗi inline ────────────────────────── */
.hbpr-combo-error {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 5px;
	font-size: 11.5px;
	font-weight: 500;
	color: #c0392b;
	background: #fff5f5;
	border: 1px solid #ffd5d5;
	padding: 3px 9px;
	border-radius: var(--hbpr-radius-pill);
}

.hbpr-combo-error::before {
	content: '⚠';
	font-size: 11px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
	.hbpr-co-select-wrap {
		gap: 5px 8px;
	}

	.hbpr-co-select-wrap .variation-attr-select {
		height: 30px;
		font-size: 13px;
		min-width: 70px;
	}

	.hbpr-gift-qty-text {
		height: 28px;
		font-size: 13px;
	}

	.hbpr-popup-content {
		padding: 18px;
		border-radius: 12px;
	}

	.hbpr-gift-name { font-size: 13px; }
}

/* ── Checkout: layout ảnh + tên sản phẩm ────────────────── */

.hbpr-checkout-product-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hbpr-checkout-thumb {
	flex-shrink: 0;
}

.hbpr-checkout-thumb-img,
.hbpr-checkout-thumb img {
	width: 64px !important;
	height: 64px !important;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	border: 1px solid #ebebeb;
}

.hbpr-checkout-name {
	flex: 1;
	min-width: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: #222;
	line-height: 1.4;
}

/* ── Checkout: input số lượng +/- ─────────────────────────── */

.hbpr-checkout-qty-wrap {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid #d5d5d5;
	border-radius: var(--hbpr-radius-pill);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--hbpr-shadow-sm);
}

.hbpr-qty-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	margin: 0;
	border: none !important;
	background: transparent !important;
	font-size: 16px !important;
	line-height: 1 !important;
	color: #555 !important;
	cursor: pointer;
	transition: background var(--hbpr-transition), color var(--hbpr-transition);
	flex-shrink: 0;
	padding: 0 !important;
}

.hbpr-qty-btn:hover {
	background: #f0f4ff;
	color: var(--hbpr-primary);
}

.hbpr-qty-btn:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.hbpr-checkout-qty-input {
	width: 36px !important;
	height: 28px !important;
	border: none !important;
	text-align: center !important;
	font-size: 13px !important;
	box-shadow: none !important;
	font-weight: 600 !important;
	color: #222 !important;
	background: transparent !important;
	outline: none !important;
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0 !important;
}

.hbpr-checkout-qty-input::-webkit-inner-spin-button,
.hbpr-checkout-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Qty cell căn giữa */
.shop_table.woocommerce-checkout-review-order-table td.product-quantity {
	text-align: center;
	vertical-align: middle;
}

@media (max-width: 767px) {
	.hbpr-checkout-thumb-img,
	.hbpr-checkout-thumb img {
		width: 50px !important;
		height: 50px !important;
	}

	.hbpr-checkout-product-info {
		gap: 8px;
	}

	.hbpr-checkout-name {
		font-size: 12.5px;
	}

	.hbpr-qty-btn {
		width: 26px !important;
		height: 26px !important;
		font-size: 15px !important;
	}

	.hbpr-checkout-qty-input {
		width: 30px !important;
		height: 26px !important;
		font-size: 12px !important;
	}
}

.hbpr-voucher-notice-container {
	margin-bottom: 20px;
}

.hbpr-voucher-alert {
	border-radius: var(--hbpr-radius-md);
	font-size: 14px;
	line-height: 1.5;
}

.hbpr-voucher-alert--success {
	background-color: #f0fdf4 !important;
	border-top-color: #22c55e !important;
	color: #15803d !important;
}

/* ── Volume Discount Badge (cart & checkout item row) ─────────── */
.hbpr-vol-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%) !important;
	color: #166534 !important;
	border: 1.5px solid #86efac !important;
	border-radius: 999px !important;
	padding: 3px 11px 3px 9px !important;
	font-size: 11.5px !important;
	font-weight: 700 !important;
	letter-spacing: .2px !important;
	box-shadow: 0 1px 5px rgba(22,101,52,.14) !important;
	white-space: nowrap !important;
	vertical-align: middle !important;
	line-height: 1.45 !important;
	cursor: default !important;
	text-decoration: none !important;
	margin-top: 5px !important;
	max-width: 100%;
}

/* Fix WordPress emoji <img> bên trong vol-badge */
.hbpr-vol-badge img.emoji,
.hbpr-vol-badge img[src*="emoji"] {
	width: 13px !important;
	height: 13px !important;
	min-width: 13px !important;
	min-height: 13px !important;
	max-width: 13px !important;
	max-height: 13px !important;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: middle !important;
	display: inline-block !important;
	flex-shrink: 0 !important;
	border: none !important;
	box-shadow: none !important;
}

/* Ẩn dt rỗng (dấu ":") khi chứa badge */
.wc-item-meta dt:empty,
.wc-item-meta dt:blank {
	display: none !important;
}
.wc-item-meta dd:has(.hbpr-vol-badge),
.wc-item-meta dd p {
	margin: 0 !important;
	padding: 0 !important;
}

/* Checkout review table: badge nằm trong td.product-name */
.woocommerce-checkout-review-order-table .hbpr-vol-badge,
.woocommerce-checkout .hbpr-vol-badge {
	margin-top: 6px !important;
	display: inline-flex !important;
}


/* ── Volume Discount Notice (giỏ hàng & thanh toán) ──────────── */
.hbpr-vol-notice-container {
	margin-bottom: 18px;
}

.hbpr-vol-alert {
	display: flex;
	align-items: center;
	gap: 10px;
	border-radius: var(--hbpr-radius-md) !important;
	font-size: 14px;
	line-height: 1.5;
	padding: 12px 16px !important;
	background: linear-gradient(135deg, #f0f7ff 0%, #f5f9ff 100%) !important;
	border-top: 3px solid #1a73e8 !important;
	color: #1a3a5c !important;
}

.hbpr-vol-alert::before {
	content: none !important; /* Ẩn icon WC mặc định */
}

.hbpr-vol-alert--success {
	background: linear-gradient(135deg, #f0fdf4 0%, #f6fef9 100%) !important;
	border-top-color: #22c55e !important;
	color: #14532d !important;
}


/* ── Gift Badge (cart & checkout item row) ────────────────────── */
.hbpr-gift-badge-co {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
	color: #9a3412 !important;
	border: 1.5px solid #fdba74 !important;
	border-radius: 999px !important;
	padding: 3px 10px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: .3px !important;
	box-shadow: 0 1px 5px rgba(154,52,18,.13) !important;
	white-space: nowrap !important;
	vertical-align: middle !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	cursor: default !important;
}

/* Fix WordPress emoji <img> bên trong gift badge */
.hbpr-gift-badge-co img.emoji,
.hbpr-gift-badge-co img[src*="emoji"] {
	width: 13px !important;
	height: 13px !important;
	min-width: 13px !important;
	min-height: 13px !important;
	max-width: 13px !important;
	max-height: 13px !important;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: middle !important;
	display: inline-block !important;
	flex-shrink: 0 !important;
	border: none !important;
	box-shadow: none !important;
}

/* Wrapper div của gift badge */
.hbpr-gift-badge-wrap {
	margin-bottom: 4px;
	line-height: 1;
}

/* Checkout review table: badge */
.woocommerce-checkout-review-order-table .hbpr-gift-badge-co,
.woocommerce-checkout .hbpr-gift-badge-co {
	margin-bottom: 5px !important;
}

/* Notice alert wrapper - đảm bảo không bị collapse khi rỗng */
.hbpr-voucher-notice-container:empty,
.hbpr-vol-notice-container:empty {
	display: none;
}
