/* ==========================================================================
   VH Buy Now – Stylesheet (Scoped with .vhbn- prefix)
   ========================================================================== */

:root {
	--vhbn-btn-bg: #f97316;
	--vhbn-btn-hover: #ea580c;
	--vhbn-btn-text: #ffffff;
	--vhbn-loop-bg: #eff6ff;
	--vhbn-loop-hover: #dbeafe;
	--vhbn-loop-text: #1d4ed8;
	--vhbn-cta-bg: #ef4444;
	--vhbn-cta-hover: #dc2626;
	--vhbn-border: #e2e8f0;
	--vhbn-surface: #ffffff;
	--vhbn-muted-bg: #f8fafc;
	--vhbn-text: #0f172a;
	--vhbn-text-muted: #64748b;
	--vhbn-success: #16a34a;
	--vhbn-error: #dc2626;
}

/* --- Nút Mua Ngay ngoài Frontend --- */
.vhbn-buy-now-btn {
	position: relative;
	overflow: hidden;
	display: inline-flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	background: var(--vhbn-btn-bg);
	color: var(--vhbn-btn-text);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
	font-weight: 700;
	text-decoration: none;
	text-transform: none !important;
	letter-spacing: 0.1px !important;
	line-height: 1.2 !important;
	min-height: 0 !important;
	margin: 0;
	transition: transform 0.16s ease, background-color 0.18s ease, box-shadow 0.2s ease;
	box-shadow: none;
	box-sizing: border-box;
}

.vhbn-buy-now-btn::before {
	content: "";
	position: absolute;
	top: -20%;
	left: -75%;
	width: 52%;
	height: 140%;
	background: linear-gradient(
		120deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.24) 35%,
		rgba(255, 255, 255, 0.72) 50%,
		rgba(255, 255, 255, 0.24) 65%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: skewX(-24deg);
	transition: left 0.58s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
	z-index: 1;
}

.vhbn-buy-now-btn:hover::before,
.vhbn-buy-now-btn:focus-visible::before {
	left: 135%;
}

.vhbn-buy-now-btn:hover,
.vhbn-buy-now-btn:focus-visible {
	background: var(--vhbn-btn-hover);
	color: var(--vhbn-btn-text);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
	outline: none;
}

.vhbn-buy-now-btn:active {
	transform: translateY(0);
}

.vhbn-btn-main,
.vhbn-btn-subtext {
	position: relative;
	z-index: 2;
}

.vhbn-btn-main {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.vhbn-btn-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.vhbn-btn-loop .vhbn-btn-icon {
	width: 14px;
	height: 14px;
}

.single-product .woocommerce-variation-add-to-cart,
.single-product form.cart:not(.variations_form) {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 10px !important;
}

.single-product .woocommerce-variation-add-to-cart > .quantity,
.single-product .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
.single-product .woocommerce-variation-add-to-cart > .vhbn-btn-single,
.single-product form.cart:not(.variations_form) > .quantity,
.single-product form.cart:not(.variations_form) > .single_add_to_cart_button,
.single-product form.cart:not(.variations_form) > .vhbn-btn-single {
	flex: 0 0 auto !important;
	width: auto !important;
	margin: 0 !important;
}

.single-product .woocommerce-variation-add-to-cart > .quantity,
.single-product form.cart:not(.variations_form) > .quantity {
	display: inline-flex !important;
	align-items: stretch !important;
	height: 46px !important;
	min-height: 46px !important;
}

.single-product .woocommerce-variation-add-to-cart > .quantity .minus,
.single-product .woocommerce-variation-add-to-cart > .quantity .plus,
.single-product .woocommerce-variation-add-to-cart > .quantity input.qty,
.single-product form.cart:not(.variations_form) > .quantity .minus,
.single-product form.cart:not(.variations_form) > .quantity .plus,
.single-product form.cart:not(.variations_form) > .quantity input.qty {
	height: 46px !important;
	min-height: 46px !important;
	line-height: 44px !important;
	font-size: 15px !important;
	margin: 0 !important;
}

.single-product .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
.single-product form.cart:not(.variations_form) > .single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 46px !important;
	min-height: 46px !important;
	line-height: 1.2 !important;
	padding: 0 22px !important;
	font-size: 15px !important;
}

.single-product form.cart .vhbn-btn-single,
.vhbn-btn-single {
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: 165px;
	max-width: 100%;
	height: 46px !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 24px !important;
	font-size: 15px !important;
	border-radius: 8px !important;
	vertical-align: middle !important;
}

.vhbn-btn-subtext {
	font-size: 10.5px;
	font-weight: 500;
	opacity: 0.92;
}

.vhbn-loop-wrap {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	margin-top: auto !important;
	padding-top: 10px !important;
	text-align: center !important;
	clear: both;
}

.vhbn-btn-loop {
	width: 100% !important;
	height: 36px !important;
	min-height: 36px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	background: var(--vhbn-loop-bg) !important;
	color: var(--vhbn-loop-text) !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	border-radius: 0px !important;
	box-shadow: none !important;
}

.vhbn-btn-loop:hover,
.vhbn-btn-loop:focus-visible {
	background: var(--vhbn-loop-hover) !important;
	color: var(--vhbn-loop-text) !important;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.14) !important;
}

.vhbn-btn-shortcode {
	height: 40px !important;
	min-height: 40px !important;
	padding: 0 20px !important;
	font-size: 14px !important;
	border-radius: 8px !important;
}

/* --- Popup Modal Overlay --- */
.vhbn-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(15, 23, 42, 0.62);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0.22s ease;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vhbn-overlay.vhbn-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.vhbn-overlay * {
	box-sizing: border-box;
}

#vhbn-modal-overlay button {
	margin: 0 !important;
	min-height: 0 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-shadow: none !important;
	box-shadow: none;
	float: none !important;
}

.vhbn-modal {
	width: min(560px, 100%);
	max-width: 560px;
	max-height: 92vh;
	max-height: 92dvh;
	background: var(--vhbn-surface);
	border-radius: 18px;
	box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.35);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(16px) scale(0.98);
	transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
	color: var(--vhbn-text);
}

.vhbn-overlay.vhbn-open .vhbn-modal {
	transform: translateY(0) scale(1);
}

.vhbn-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

/* --- Modal Header --- */
.vhbn-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #ffffff;
	flex-shrink: 0;
}

.vhbn-header-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.vhbn-header-badge {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--vhbn-cta-bg);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vhbn-modal-title {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.4px;
	color: #ffffff;
	line-height: 1.2;
}

.vhbn-modal-subtitle {
	margin: 2px 0 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.78);
}

#vhbn-modal-overlay .vhbn-close-btn {
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	border-radius: 50% !important;
	border: none !important;
	background: rgba(255, 255, 255, 0.14) !important;
	color: #ffffff !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
	padding: 0 !important;
}

#vhbn-modal-overlay .vhbn-close-btn:hover {
	background: rgba(255, 255, 255, 0.28) !important;
}

/* --- Form & Scrollable Body --- */
.vhbn-form {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1 1 auto;
	margin: 0;
}

.vhbn-modal-body {
	padding: 18px 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.vhbn-loading-view {
	padding: 56px 24px;
	text-align: center;
	color: var(--vhbn-text-muted);
	font-size: 14px;
}

.vhbn-spinner-lg {
	width: 36px;
	height: 36px;
	margin: 0 auto 12px;
	border: 3px solid #e2e8f0;
	border-top-color: var(--vhbn-cta-bg);
	border-radius: 50%;
	animation: vhbnSpin 0.75s linear infinite;
}

@keyframes vhbnSpin {
	to { transform: rotate(360deg); }
}

.vhbn-alert {
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
}

.vhbn-alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

/* --- Product Card --- */
.vhbn-product-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	background: var(--vhbn-muted-bg);
	border: 1px solid var(--vhbn-border);
	border-radius: 12px;
}

.vhbn-product-thumb-wrap {
	width: 68px;
	height: 68px;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--vhbn-border);
	flex-shrink: 0;
}

.vhbn-product-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vhbn-product-meta {
	flex: 1 1 auto;
	min-width: 0;
}

.vhbn-product-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--vhbn-text);
	line-height: 1.35;
	margin-bottom: 5px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vhbn-product-price-line {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.vhbn-unit-price {
	font-size: 16px;
	font-weight: 800;
	color: var(--vhbn-cta-bg);
}

.vhbn-regular-price {
	font-size: 13px;
	color: #94a3b8;
}

.vhbn-stock-badge {
	font-size: 11.5px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	background: #dcfce7;
	color: #15803d;
}

.vhbn-stock-badge.is-out {
	background: #fee2e2;
	color: #b91c1c;
}

/* --- Variations --- */
.vhbn-variations-fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vhbn-attr-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vhbn-attr-label {
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
}

.vhbn-attr-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

#vhbn-modal-overlay .vhbn-attr-pill {
	padding: 6px 12px !important;
	border-radius: 8px !important;
	border: 1.5px solid #cbd5e1 !important;
	background: #ffffff !important;
	color: #334155 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.14s ease;
}

#vhbn-modal-overlay .vhbn-attr-pill:hover {
	border-color: var(--vhbn-cta-bg) !important;
}

#vhbn-modal-overlay .vhbn-attr-pill.is-selected {
	border-color: var(--vhbn-cta-bg) !important;
	background: #fff1f2 !important;
	color: #be123c !important;
}

/* --- Quantity & AJAX Price Jump Bar --- */
#vhbn-modal-overlay .vhbn-qty-price-bar {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px;
	padding: 12px 14px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 12px;
}

#vhbn-modal-overlay .vhbn-qty-left {
	display: flex !important;
	align-items: center !important;
	gap: 12px;
}

#vhbn-modal-overlay .vhbn-qty-label {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--vhbn-text);
	white-space: nowrap;
}

#vhbn-modal-overlay .vhbn-qty-stepper {
	display: inline-flex !important;
	align-items: center !important;
	height: 36px !important;
	background: #ffffff !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 9px !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
}

#vhbn-modal-overlay .vhbn-qty-btn {
	width: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	height: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--vhbn-text) !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	transition: background-color 0.14s ease;
}

#vhbn-modal-overlay .vhbn-qty-btn:hover:not(:disabled) {
	background: #f1f5f9 !important;
}

#vhbn-modal-overlay .vhbn-qty-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

#vhbn-modal-overlay .vhbn-qty-input {
	width: 46px !important;
	min-width: 46px !important;
	height: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	line-height: 34px !important;
	border: none !important;
	border-left: 1px solid #e2e8f0 !important;
	border-right: 1px solid #e2e8f0 !important;
	border-radius: 0 !important;
	text-align: center !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--vhbn-text) !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #ffffff !important;
	box-shadow: none !important;
	-moz-appearance: textfield;
}

.vhbn-qty-input::-webkit-outer-spin-button,
.vhbn-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.vhbn-qty-right {
	text-align: right;
}

.vhbn-subtotal-caption {
	display: block;
	font-size: 11.5px;
	color: #92400e;
	font-weight: 600;
}

.vhbn-subtotal-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vhbn-quick-subtotal {
	font-size: 17px;
	font-weight: 800;
	color: #b91c1c;
	display: inline-block;
}

.vhbn-mini-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid #f59e0b;
	border-top-color: transparent;
	border-radius: 50%;
	display: inline-block;
	animation: vhbnSpin 0.6s linear infinite;
}

/* Hiệu ứng nhảy giá AJAX */
@keyframes vhbnPricePop {
	0% { transform: scale(1); }
	45% { transform: scale(1.08); color: #dc2626; }
	100% { transform: scale(1); }
}

.vhbn-price-flash {
	animation: vhbnPricePop 0.34s ease;
}

/* --- Form Sections & Inputs --- */
.vhbn-section {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.vhbn-section-title {
	font-size: 13.5px;
	font-weight: 800;
	color: var(--vhbn-text);
	text-transform: uppercase;
	letter-spacing: 0.35px;
}

.vhbn-fields-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.vhbn-field-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vhbn-field-full {
	grid-column: 1 / -1;
}

#vhbn-modal-overlay .vhbn-field-group label {
	display: flex !important;
	align-items: baseline !important;
	flex-wrap: wrap !important;
	gap: 4px !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	min-height: 17px !important;
	color: #334155 !important;
	margin: 0 !important;
}

.vhbn-req {
	color: #dc2626;
}

.vhbn-opt {
	color: #94a3b8;
	font-weight: 400;
	font-size: 11.5px;
}

#vhbn-modal-overlay .vhbn-field-group input,
#vhbn-modal-overlay .vhbn-field-group textarea {
	width: 100% !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 9px !important;
	font-size: 14px !important;
	color: var(--vhbn-text) !important;
	background: #ffffff !important;
	margin: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
	font-family: inherit;
}

#vhbn-modal-overlay .vhbn-field-group input {
	height: 42px !important;
	min-height: 42px !important;
	max-height: 42px !important;
	line-height: 1.2 !important;
	padding: 0 12px !important;
}

#vhbn-modal-overlay .vhbn-field-group textarea {
	padding: 10px 12px !important;
	line-height: 1.45 !important;
	min-height: 68px !important;
}

#vhbn-modal-overlay .vhbn-field-group input:focus,
#vhbn-modal-overlay .vhbn-field-group textarea:focus {
	outline: none !important;
	border-color: var(--vhbn-cta-bg) !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

#vhbn-modal-overlay .vhbn-field-group input.vhbn-input-error {
	border-color: #dc2626 !important;
	background: #fef2f2 !important;
}

/* --- Coupon --- */
#vhbn-modal-overlay .vhbn-coupon-row {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
}

#vhbn-modal-overlay .vhbn-coupon-row input {
	flex: 1 1 auto !important;
	height: 42px !important;
	min-height: 42px !important;
	max-height: 42px !important;
	line-height: 1.2 !important;
	padding: 0 12px !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 9px !important;
	font-size: 14px !important;
	margin: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	background: #ffffff !important;
	color: var(--vhbn-text) !important;
}

#vhbn-modal-overlay .vhbn-coupon-row input:focus {
	outline: none !important;
	border-color: var(--vhbn-cta-bg) !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

#vhbn-modal-overlay .vhbn-coupon-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 18px !important;
	height: 42px !important;
	min-height: 42px !important;
	max-height: 42px !important;
	line-height: 1 !important;
	border-radius: 9px !important;
	border: none !important;
	background: #0f172a !important;
	color: #ffffff !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	cursor: pointer;
	flex-shrink: 0;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

#vhbn-modal-overlay .vhbn-coupon-btn:hover {
	background: #334155 !important;
}

.vhbn-coupon-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.vhbn-coupon-feedback {
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 7px;
}

.vhbn-coupon-feedback.is-error {
	background: #fef2f2;
	color: #b91c1c;
}

.vhbn-applied-coupon-tag {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 12px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 9px;
	color: #15803d;
	font-size: 13px;
}

.vhbn-coupon-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

#vhbn-modal-overlay .vhbn-remove-coupon-btn {
	border: none !important;
	background: #dcfce7 !important;
	color: #166534 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	padding: 4px 10px !important;
	border-radius: 6px !important;
	cursor: pointer;
}

#vhbn-modal-overlay .vhbn-remove-coupon-btn:hover {
	background: #bbf7d0 !important;
}

/* --- Payment Gateways --- */
.vhbn-payment-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vhbn-payment-card {
	border: 1.5px solid var(--vhbn-border);
	border-radius: 10px;
	background: #ffffff;
	overflow: hidden;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.vhbn-payment-card.is-active {
	border-color: var(--vhbn-cta-bg);
	background: #fffafa;
}

.vhbn-payment-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 13px;
	cursor: pointer;
	margin: 0;
}

.vhbn-payment-left {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--vhbn-text);
}

.vhbn-payment-left input[type="radio"] {
	width: 17px;
	height: 17px;
	accent-color: var(--vhbn-cta-bg);
	margin: 0;
	cursor: pointer;
}

.vhbn-payment-icon img {
	max-height: 24px;
	width: auto;
	vertical-align: middle;
}

.vhbn-payment-desc {
	padding: 0 13px 11px 40px;
	font-size: 12.5px;
	color: var(--vhbn-text-muted);
	line-height: 1.45;
	display: none;
}

.vhbn-payment-card.is-active .vhbn-payment-desc:not(:empty) {
	display: block;
}

.vhbn-payment-desc p {
	margin: 0 0 4px;
}

/* --- Order Summary --- */
.vhbn-summary-box {
	background: var(--vhbn-muted-bg);
	border: 1px solid var(--vhbn-border);
	border-radius: 12px;
	padding: 13px 15px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.vhbn-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13.5px;
	color: #475569;
}

.vhbn-discount-val {
	color: var(--vhbn-success);
	font-weight: 700;
}

.vhbn-free-badge {
	color: var(--vhbn-success);
	font-weight: 700;
}

.vhbn-summary-divider {
	height: 1px;
	background: #e2e8f0;
	margin: 3px 0;
}

.vhbn-summary-total-row {
	font-size: 15.5px;
	font-weight: 800;
	color: var(--vhbn-text);
}

.vhbn-total-val {
	font-size: 20px;
	font-weight: 900;
	color: var(--vhbn-cta-bg);
	display: inline-block;
}

/* --- Sticky Footer & Nút Đặt Mua To --- */
.vhbn-modal-footer {
	padding: 14px 20px 16px;
	background: #ffffff;
	border-top: 1px solid var(--vhbn-border);
	flex-shrink: 0;
}

#vhbn-modal-overlay .vhbn-big-cta-btn {
	width: 100% !important;
	min-height: 58px !important;
	padding: 14px 22px !important;
	border: none !important;
	border-radius: 13px !important;
	background: linear-gradient(135deg, var(--vhbn-cta-bg) 0%, var(--vhbn-cta-hover) 100%) !important;
	color: #ffffff !important;
	font-size: 17.5px !important;
	font-weight: 800 !important;
	letter-spacing: 0.4px !important;
	cursor: pointer;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.45) !important;
	transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
	font-family: inherit;
}

#vhbn-modal-overlay .vhbn-big-cta-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px -5px rgba(220, 38, 38, 0.55) !important;
}

.vhbn-big-cta-btn:active:not(:disabled) {
	transform: translateY(0);
}

.vhbn-big-cta-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.vhbn-cta-content,
.vhbn-cta-loader {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.vhbn-btn-spinner {
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: vhbnSpin 0.7s linear infinite;
}

.vhbn-trust-note {
	margin-top: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 11.5px;
	color: var(--vhbn-text-muted);
}

/* --- Success View --- */
.vhbn-success-view {
	padding: 28px 22px 24px;
	overflow-y: auto;
	text-align: center;
}

.vhbn-success-icon {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #dcfce7;
	color: #16a34a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.vhbn-success-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 800;
	color: var(--vhbn-text);
}

.vhbn-success-desc {
	margin: 0 0 18px;
	font-size: 13.5px;
	color: var(--vhbn-text-muted);
}

.vhbn-order-receipt {
	background: var(--vhbn-muted-bg);
	border: 1px solid var(--vhbn-border);
	border-radius: 12px;
	padding: 14px 16px;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.vhbn-receipt-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #475569;
}

.vhbn-res-total {
	color: var(--vhbn-cta-bg);
	font-size: 16px;
}

.vhbn-bacs-box {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 12px;
	padding: 14px;
	text-align: left;
	margin-bottom: 18px;
}

.vhbn-bacs-title {
	font-size: 13.5px;
	font-weight: 800;
	color: #1e3a8a;
	margin-bottom: 10px;
}

.vhbn-bacs-accounts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vhbn-bacs-item {
	background: #ffffff;
	border-radius: 8px;
	padding: 10px 12px;
	border: 1px solid #dbeafe;
	font-size: 13px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.vhbn-bacs-note {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #93c5fd;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 13.5px;
}

#vhbn-modal-overlay .vhbn-copy-btn {
	padding: 4px 10px !important;
	border: 1px solid #93c5fd !important;
	background: #ffffff !important;
	color: #1d4ed8 !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	cursor: pointer;
	flex-shrink: 0;
}

#vhbn-modal-overlay .vhbn-copy-btn:hover {
	background: #dbeafe !important;
}

.vhbn-success-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

#vhbn-modal-overlay .vhbn-btn-secondary,
#vhbn-modal-overlay .vhbn-btn-primary-done {
	padding: 12px 14px !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

#vhbn-modal-overlay .vhbn-btn-secondary {
	background: #f1f5f9 !important;
	color: #0f172a !important;
	border: 1px solid #cbd5e1 !important;
}

#vhbn-modal-overlay .vhbn-btn-primary-done {
	background: #0f172a !important;
	color: #ffffff !important;
	border: none !important;
}

/* --- Responsive & Reporesize --- */
.vhbn-field-group,
.vhbn-coupon-row input,
.vhbn-payment-left,
.vhbn-bacs-item > div {
	min-width: 0;
}

.vhbn-product-title,
.vhbn-bacs-item {
	word-break: break-word;
}

@media (max-width: 640px) {
	.vhbn-overlay {
		padding: 0;
		align-items: flex-end;
	}

	.vhbn-modal {
		width: 100%;
		max-width: 100%;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 20px 20px 0 0;
	}

	.vhbn-modal-header {
		padding: 13px 16px;
	}

	.vhbn-modal-body {
		padding: 14px 16px;
		gap: 13px;
	}

	.vhbn-modal-footer {
		padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
	}

	.vhbn-fields-grid {
		grid-template-columns: 1fr;
		gap: 9px;
	}

	#vhbn-modal-overlay .vhbn-big-cta-btn {
		min-height: 52px !important;
		font-size: 16px !important;
		padding: 12px 16px !important;
	}

	.vhbn-success-actions {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 390px) {
	.vhbn-product-thumb-wrap {
		width: 56px;
		height: 56px;
	}

	#vhbn-modal-overlay .vhbn-qty-price-bar {
		flex-wrap: wrap;
		gap: 8px;
		padding: 10px 12px;
	}

	.vhbn-qty-right {
		margin-left: auto;
	}

	#vhbn-modal-overlay .vhbn-coupon-row {
		flex-direction: column !important;
		align-items: stretch !important;
	}

	#vhbn-modal-overlay .vhbn-coupon-row input,
	#vhbn-modal-overlay .vhbn-coupon-btn {
		width: 100% !important;
	}
}

@media (max-height: 620px) {
	.vhbn-modal {
		max-height: 96vh;
		max-height: 96dvh;
	}

	.vhbn-modal-header {
		padding: 10px 16px;
	}

	.vhbn-modal-subtitle {
		display: none;
	}

	.vhbn-modal-body {
		padding: 12px 16px;
		gap: 11px;
	}

	.vhbn-modal-footer {
		padding: 10px 16px;
	}

	#vhbn-modal-overlay .vhbn-big-cta-btn {
		min-height: 48px !important;
		font-size: 15.5px !important;
	}

	.vhbn-trust-note {
		display: none;
	}
}
