:root {
	--vnqb-primary: #64b2fa;
	--vnqb-button-color: #fff;
	--vnqb-radius: 14px;
}

.vnqb-flex { display: flex; }
.vnqb-grid { display: grid; }
.vnqb-items-center { align-items: center; }
.vnqb-justify-between { justify-content: space-between; }
.vnqb-gap-2 { gap: 8px; }
.vnqb-gap-3 { gap: 12px; }
.vnqb-rounded { border-radius: var(--vnqb-radius); }
.vnqb-bg-primary { background: var(--vnqb-primary); }
.vnqb-span-2 { grid-column: span 2; }
.vnqb-muted { color: #6b7280; font-size: 13px; margin: 0; }
.vnqb-icon-button svg,
.vnqb-grip svg {
	fill: none;
	height: 20px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 20px;
}

.vnqb-buy-button,
.vnqb-submit {
	align-items: center;
	background: var(--vnqb-primary);
	border: 0;
	border-radius: var(--vnqb-radius);
	/* box-shadow: 0 10px 24px rgba(100, 178, 250, .28); */
	color: var(--vnqb-button-color);
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	font-weight: 700;
	gap: 2px;
	justify-content: center;
	line-height: 1.2;
	/* min-height: 48px; */
	padding: 10px 18px;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
	width: fit-content;
	/* margin-top: 1rem; */
}
.vnqb-buy-button{
	margin-left: 1rem;
}
.vnqb-buy-button:hover,
.vnqb-submit:hover {
	box-shadow: 0 14px 32px rgba(100, 178, 250, .34);
	transform: translateY(-1px);
}

.vnqb-buy-button small {
	font-size: 12px;
	font-weight: 500;
	opacity: .9;
}

.vnqb-buy-link {
	background: transparent;
	border: 0;
	color: var(--vnqb-primary);
	cursor: pointer;
	font-weight: 700;
	padding: 0;
	text-decoration: underline;
}

.vnqb-modal[hidden] { display: none; }

.vnqb-modal {
	inset: 0;
	position: fixed;
	z-index: 999999;
}

.vnqb-modal-open { overflow: hidden; }

.vnqb-modal-backdrop {
	background: rgba(15, 23, 42, .5);
	inset: 0;
	position: absolute;
}

.vnqb-modal-panel {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
	left: 50%;
	max-height: calc(100vh - 48px);
	max-width: 760px;
	overflow: auto;
	padding: 20px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100vw - 32px);
}

.vnqb-modal-head {
	border-bottom: 1px solid #eef2f7;
	margin-bottom: 16px;
	padding-bottom: 12px;
}

.vnqb-modal-head h3 {
	font-size: 20px;
	line-height: 1.2;
	margin: 0;
}

.vnqb-icon-button {
	align-items: center;
	background: #f3f6fb;
	border: 0;
	border-radius: 999px;
	color: #111827;
	cursor: pointer;
	display: inline-flex;
	height: 36px;
	justify-content: center;
	width: 36px;
	padding: 0;
}

.vnqb-inline {
	background: #fff;
	border: 1px solid #edf2f7;
	border-radius: 20px;
	padding: 16px;
}

.vnqb-product-summary {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.vnqb-product-summary img {
	aspect-ratio: 1;
	border-radius: 14px;
	object-fit: cover;
	width: 76px;
}

.vnqb-product-summary h4 {
	font-size: 16px;
	margin: 0 0 4px;
}

.vnqb-price {
	color: #111827;
	font-weight: 700;
}

.vnqb-skeleton {
	animation: vnqb-pulse 1.2s infinite ease-in-out;
	background: #edf2f7;
	height: 76px;
	width: 100%;
}

.vnqb-form .vnqb-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vnqb-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vnqb-field span {
	color: #374151;
	font-size: 13px;
	font-weight: 650;
}

.vnqb-field input,
.vnqb-field select,
.vnqb-field textarea {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-sizing: border-box;
	color: #111827;
	font-size: 14px;
	min-height: 42px;
	padding: 10px 12px;
	width: auto;
}
.vnqb-js-shipping,.vnqb-js-payment{
	grid-template-columns: 1fr 1fr;
}
.vnqb-field textarea { resize: vertical; }

.vnqb-qty {
	display: grid;
	grid-template-columns: 42px 1fr 42px;
}

.vnqb-qty button {
	background: #eef7ff;
	border: 1px solid #d8ecff;
	color: #0f6cbf;
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
}

.vnqb-qty button:first-child { border-radius: 12px 0 0 12px; }
.vnqb-qty button:last-child { border-radius: 0 12px 12px 0; }
.vnqb-qty input { border-radius: 0; text-align: center; }

.vnqb-options {
	display: grid;
	gap: 8px;
}

.vnqb-option {
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	padding: 10px 12px;
}

.vnqb-option span {
	flex: 1;
}

.vnqb-option .vnqb-required-note {
	flex: 0 0 100%;
	margin-left: 24px;
}

.vnqb-total {
	background: #f8fbff;
	border: 1px solid #dceeff;
	border-radius: 14px;
	margin: 14px 0;
	padding: 12px;
}

.vnqb-total strong {
	color: #0f6cbf;
	font-size: 18px;
}

.vnqb-message {
	border-radius: 12px;
	font-size: 14px;
	margin: 12px 0;
	padding: 10px 12px;
}

.vnqb-message[data-type="error"] {
	background: #fef2f2;
	color: #991b1b;
}

.vnqb-message[data-type="success"] {
	background: #ecfdf5;
	color: #065f46;
}

.vnqb-submit {
	font-size: 16px;
	width: 100%;
}

.vnqb-submit:disabled {
	cursor: not-allowed;
	opacity: .65;
}

@keyframes vnqb-pulse {
	50% { opacity: .55; }
}

@media (max-width: 640px) {
	.vnqb-span-2 { grid-column: span 1; }

	.vnqb-modal-panel {
		border-radius: 20px 20px 0 0;
		bottom: 0;
		left: 0;
		max-height: 92vh;
		top: auto;
		transform: none;
		width: 100%;
	}

}

.vnqb-modal-panel {
	--vnqb-primary: #f43f5e;
	--vnqb-button-color: #fff;
	--vnqb-radius: 4px;
	border-radius: 6px;
	box-shadow: 0 18px 48px rgba(15, 23, 42, .24);
	max-height: calc(100dvh - 16px);
	max-width: 430px;
	overflow: auto;
	padding: 0;
}

.vnqb-modal-head {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	margin: 0;
	min-height: 38px;
	padding: 7px 12px;
	position: sticky;
	top: 0;
	z-index: 5;
}

.vnqb-modal-head h3 {
	color: #111827;
	flex: 1;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}

.vnqb-modal-head .vnqb-icon-button {
	background: transparent;
	border-radius: 4px;
	height: 28px;
	position: absolute;
	right: 8px;
	top: 5px;
	width: 28px;
}

.vnqb-inline {
	border: 0;
	border-radius: 0;
	padding: 0;
}

.vnqb-product-summary {
	align-items: flex-start;
	border-bottom: 1px solid #edf2f7;
	gap: 10px;
	margin: 0;
	padding: 12px;
}

.vnqb-product-summary img {
	border: 1px solid #eef2f7;
	border-radius: 4px;
	flex: 0 0 82px;
	width: 82px;
}

.vnqb-summary-body {
	min-width: 0;
}

.vnqb-product-summary h4 {
	color: #111827;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 5px;
}

.vnqb-price {
	color: #f43f5e;
	font-size: 14px;
	font-weight: 800;
}

.vnqb-price del {
	color: #9ca3af;
	font-size: 12px;
	font-weight: 500;
	margin-right: 6px;
}

.vnqb-price ins {
	text-decoration: none;
}

.vnqb-summary-quantity {
	align-items: center;
	border-bottom: 1px solid #edf2f7;
	flex-direction: row;
	justify-content: flex-end;
	padding: 0 12px 12px;
}

.vnqb-summary-quantity span {
	margin-right: 8px;
}

.vnqb-variation-panel {
	border-bottom: 1px solid #edf2f7;
	padding: 10px 12px 12px;
}

.vnqb-variation-panel[hidden] {
	display: none;
}

.vnqb-variation-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vnqb-variation-field-has-swatches {
	gap: 7px;
	position: relative;
}

.vnqb-swatch-select {
	height: 1px !important;
	left: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 0;
	width: 1px !important;
}

.vnqb-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.vnqb-swatch {
	align-items: center;
	background: #fff;
	border: 1px solid #d9dee8;
	border-radius: 4px;
	box-sizing: border-box;
	color: #111827;
	cursor: pointer;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 34px;
	min-width: 34px;
	padding: 4px 8px;
	position: relative;
	transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.vnqb-swatch:hover,
.vnqb-swatch:focus {
	border-color: #9db8d8;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, .14);
	outline: 0;
}

.vnqb-swatch:active {
	transform: translateY(1px);
}

.vnqb-swatch.vnqb-active {
	border-color: #f43f5e;
	box-shadow: 0 0 0 2px rgba(244, 63, 94, .18);
}

.vnqb-swatch-color {
	height: 34px;
	padding: 3px;
	width: 34px;
}

.vnqb-swatch-chip {
	background: var(--vnqb-swatch-color, #fff);
	border: 1px solid rgba(17, 24, 39, .14);
	border-radius: 3px;
	display: block;
	height: 100%;
	width: 100%;
}

.vnqb-swatch[style*="--vnqb-swatch-color-2"] .vnqb-swatch-chip {
	background: linear-gradient(135deg, var(--vnqb-swatch-color) 0 50%, var(--vnqb-swatch-color-2) 50% 100%);
}

.vnqb-swatch-image {
	height: 38px;
	overflow: hidden;
	padding: 2px;
	width: 38px;
}

.vnqb-swatch-image img {
	border-radius: 3px;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.vnqb-swatch-color .vnqb-swatch-text,
.vnqb-swatch-image .vnqb-swatch-text {
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.vnqb-swatch-label {
	max-width: 100%;
	min-width: 42px;
}

.vnqb-swatch-text {
	display: block;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vnqb-field.vnqb-invalid .vnqb-swatch {
	border-color: #fecaca;
}

.vnqb-field.vnqb-invalid .vnqb-swatch.vnqb-active {
	border-color: #dc2626;
	box-shadow: 0 0 0 2px rgba(220, 38, 38, .14);
}

.vnqb-section-title {
	color: #111827;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	margin: 14px 12px 10px;
}

.vnqb-form .vnqb-grid {
	gap: 10px;
	padding: 0 12px 12px;
}

.vnqb-field {
	gap: 5px;
}

.vnqb-field span {
	color: #374151;
	font-size: 12px;
	font-weight: 600;
}

.vnqb-required-note {
	color: #dc2626;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
}

.vnqb-field-error[hidden] {
	display: none;
}

.vnqb-field input,
.vnqb-field select,
.vnqb-field textarea {
	background: #fff;
	border-color: #d9dee8;
	border-radius: 4px;
	font-size: 13px;
	min-height: 42px;
	padding: 9px 10px;
	width: 100%;
}

.vnqb-field.vnqb-invalid input,
.vnqb-field.vnqb-invalid select,
.vnqb-field.vnqb-invalid textarea,
.vnqb-field.vnqb-invalid .vnqb-search-input {
	border-color: #dc2626;
}

.vnqb-field.vnqb-invalid input:focus,
.vnqb-field.vnqb-invalid select:focus,
.vnqb-field.vnqb-invalid textarea:focus,
.vnqb-field.vnqb-invalid .vnqb-search-input:focus {
	box-shadow: 0 0 0 2px rgba(220, 38, 38, .14);
}

.vnqb-option.vnqb-invalid {
	background: #fff7f7;
	border-color: #fecaca;
}

.vnqb-search-select {
	position: relative;
	width: 100%;
}

.vnqb-native-select {
	height: 1px !important;
	left: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 0;
	width: 1px !important;
}

.vnqb-search-input {
	background: #fff;
	border: 1px solid #d9dee8;
	border-radius: 4px;
	box-sizing: border-box;
	color: #111827;
	font-size: 13px;
	min-height: 42px;
	padding: 9px 58px 9px 10px;
	width: 100%;
}

.vnqb-search-clear {
	align-items: center;
	background: transparent;
	border: 0;
	color: #6b7280;
	cursor: pointer;
	display: inline-flex;
	height: 28px;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: 24px;
	top: 7px;
	width: 28px;
	z-index: 2;
}

.vnqb-search-clear[hidden] {
	display: none;
}

.vnqb-search-clear:hover {
	color: #111827;
}

.vnqb-search-clear svg {
	fill: none;
	height: 16px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 16px;
}

.vnqb-search-select::after {
	border-color: #6b7280 transparent transparent;
	border-style: solid;
	border-width: 5px 4px 0;
	content: "";
	pointer-events: none;
	position: absolute;
	right: 11px;
	top: 19px;
}

.vnqb-search-input:focus {
	border-color: #9db8d8;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, .14);
	outline: 0;
}

.vnqb-search-list {
	background: #fff;
	border: 1px solid #d9dee8;
	border-radius: 4px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
	left: 0;
	max-height: 220px;
	overflow: auto;
	position: absolute;
	right: 0;
	top: calc(100% + 4px);
	z-index: 30;
}

.vnqb-search-list button,
.vnqb-search-empty {
	background: transparent;
	border: 0;
	box-sizing: border-box;
	color: #111827;
	display: block;
	font-size: 13px;
	padding: 9px 10px;
	text-align: left;
	width: 100%;
}

.vnqb-search-list button {
	cursor: pointer;
}

.vnqb-search-list button:hover,
.vnqb-search-list button.vnqb-active {
	background: #f3f4f6;
}

.vnqb-search-empty {
	color: #6b7280;
}

.vnqb-search-disabled {
	opacity: .65;
}

.vnqb-search-disabled .vnqb-search-clear {
	pointer-events: none;
}

.vnqb-coupon-control {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 88px;
}

.vnqb-coupon-control input {
	border-radius: 4px 0 0 4px;
}

.vnqb-coupon-apply {
	background: #111827;
	border: 1px solid #111827;
	border-radius: 0 4px 4px 0;
	color: #fff;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	min-height: 42px;
	padding: 0 10px;
	line-height: unset;
}

.vnqb-coupon-apply:hover {
	background: #374151;
	border-color: #374151;
}

.vnqb-qty {
	grid-template-columns: 34px minmax(42px, 1fr) 34px;
	max-width: 126px;
}

.vnqb-qty button {
	background: #fff;
	border-color: #d9dee8;
	color: #374151;
	font-size: 16px;
}

.vnqb-qty button:first-child { border-radius: 4px 0 0 4px; }
.vnqb-qty button:last-child { border-radius: 0 4px 4px 0; }

.vnqb-options {
	gap: 6px;
	
}
.vnqb-options input{
	width:auto;
}
.vnqb-option {
	background: #f2fbfc;
	border-color: #d7eff3;
	border-radius: 4px;
	font-size: 12px;
	padding: 9px 10px;
}

.vnqb-option strong {
	color: #0f766e;
	font-size: 12px;
}

.vnqb-message {
	border-radius: 4px;
	font-size: 13px;
	margin: 0 12px 10px;
}

.vnqb-form[hidden],
.vnqb-success[hidden] {
	display: none !important;
}

.vnqb-success {
	align-items: center;
	background: #fff;
	display: flex;
	flex-direction: column;
	padding: 30px 18px 22px;
	text-align: center;
}

.vnqb-success-icon {
	align-items: center;
	background: #ecfdf5;
	border: 1px solid #bbf7d0;
	border-radius: 50%;
	color: #047857;
	display: inline-flex;
	height: 54px;
	justify-content: center;
	margin-bottom: 14px;
	width: 54px;
}

.vnqb-success-icon svg {
	fill: none;
	height: 28px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.5;
	width: 28px;
}

.vnqb-success h4 {
	color: #111827;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
}

.vnqb-success p {
	color: #4b5563;
	font-size: 13px;
	line-height: 1.55;
	margin: 8px 0 0;
	max-width: 340px;
}

.vnqb-success-meta {
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	margin-top: 18px;
	max-width: 340px;
	width: 100%;
}

.vnqb-success-row {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	padding: 11px 12px;
}

.vnqb-success-row + .vnqb-success-row {
	border-top: 1px solid #e5e7eb;
}

.vnqb-success-label {
	color: #6b7280;
	font-size: 12px;
	font-weight: 600;
	text-align: left;
}

.vnqb-success-value {
	color: #111827;
	font-size: 13px;
	font-weight: 800;
	text-align: right;
}

.vnqb-success-value .amount {
	color: #f43f5e;
	font-weight: 800;
}

.vnqb-vietqr {
	align-items: center;
	display: flex;
	flex-direction: column;
	margin-top: 18px;
	max-width: 340px;
	width: 100%;
}

.vnqb-vietqr h5 {
	color: #111827;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 10px;
}

.vnqb-vietqr img {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	box-sizing: border-box;
	height: auto;
	max-height: 420px;
	object-fit: contain;
	padding: 8px;
	width: min(100%, 260px);
}

.vnqb-vietqr-details {
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	margin-top: 12px;
	width: 100%;
}

.vnqb-vietqr-details .vnqb-success-row {
	padding: 9px 10px;
}

.vnqb-vietqr-details .vnqb-success-value {
	max-width: 62%;
	overflow-wrap: anywhere;
}

.vnqb-success-close {
	background: #f43f5e;
	border: 0;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 800;
	margin-top: 18px;
	min-height: 44px;
	padding: 10px 18px;
	width: min(100%, 220px);
}

.vnqb-success-close:hover {
	background: #e11d48;
}

.vnqb-modal-success .vnqb-popup-layout-split {
	max-width: 430px;
}

.vnqb-form-footer {
	align-items: stretch;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	bottom: 0;
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) minmax(130px, 42%);
	padding: 8px 10px;
	position: sticky;
	z-index: 4;
}

.vnqb-total {
	background: transparent;
	border: 0;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0;
	padding: 0 4px;
}

.vnqb-total span {
	color: #374151;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
}

.vnqb-total strong {
	color: #111827;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
}

.vnqb-form-footer .vnqb-submit {
	background: #f43f5e;
	border-radius: 4px;
	box-shadow: none;
	font-size: 14px;
	min-height: 44px;
	padding: 9px 12px;
	width: 100%;
}

.vnqb-form-footer .vnqb-submit:hover {
	box-shadow: none;
	transform: none;
}

.vnqb-popup-layout-split {
	max-width: 860px;
}

.vnqb-popup-layout-split .vnqb-form {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
}

.vnqb-popup-layout-split .vnqb-form-product {
	border-right: 1px solid #edf2f7;
	grid-column: 1;
	min-height: 100%;
}

.vnqb-popup-layout-split .vnqb-form-details {
	display: flex;
	flex-direction: column;
	grid-column: 2;
	min-height: 100%;
}

.vnqb-popup-layout-split .vnqb-variation-panel {
	border-bottom: 0;
}

.vnqb-popup-layout-split .vnqb-variation-grid {
	grid-template-columns: 1fr;
}

.vnqb-popup-layout-split .vnqb-form-details .vnqb-form-footer {
	margin-top: auto;
}

@media (max-width: 640px) {
	.vnqb-modal-panel {
		border-radius: 6px 6px 0 0;
		max-height: 94dvh;
		width: 100%;
	}

	.vnqb-variation-grid,
	.vnqb-form .vnqb-grid {
		grid-template-columns: 1fr;
	}

	.vnqb-product-summary img {
		flex-basis: 76px;
		width: 76px;
	}

	.vnqb-popup-layout-split .vnqb-form {
		display: block;
	}

	.vnqb-popup-layout-split .vnqb-form-product {
		border-right: 0;
	}
	.vnqb-js-shipping,.vnqb-js-payment{
		grid-template-columns: 1fr;
	}
}
