/* ==========================================================================
   BTS Core - Quick Checkout Popup Modal Styles
   ========================================================================== */

/* Overlay */
.bts-checkout-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	z-index: 9999998;
	opacity: 0;
	visibility: hidden;
	cursor: default;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bts-checkout-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* Modal Dialog */
.bts-checkout-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.96);
	width: 1080px;
	max-width: 95vw;
	max-height: 92vh;
	max-height: 92dvh;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
	z-index: 9999999;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
	overflow: hidden;
}

.bts-checkout-modal.is-open {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

/* Modal Close Button */
#bts-checkout-modal .bts-checkout-modal__close {
	position: absolute;
	top: 16px;
	right: 18px;
	z-index: 21;
	background: rgba(255, 255, 255, 0.85) !important;
	background-color: rgba(255, 255, 255, 0.85) !important;
	border: 1px solid #ebdccb !important;
	border-radius: 50% !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	font-size: 24px !important;
	line-height: 1 !important;
	color: #6b7280 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	transition: all 0.2s ease !important;
}

#bts-checkout-modal .bts-checkout-modal__close:hover {
	color: #111827 !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	transform: rotate(90deg) !important;
	border-color: #c47c2c !important;
}

/* Inner Scrollable Wrapper */
.bts-checkout-modal__inner {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0;
	box-sizing: border-box;
}

/* Top Hero Mountain Banner */
.bts-checkout-hero {
	background: linear-gradient(180deg, #f8f5ee 0%, #ffffff 100%);
	padding: 30px 40px 22px 40px;
	border-bottom: 1px solid #f1ece4;
	position: relative;
	overflow: hidden;
}

.bts-checkout-hero::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 80% 20%, rgba(196, 124, 44, 0.06) 0%, transparent 60%);
	pointer-events: none;
}

.bts-checkout-hero__content {
	max-width: 680px;
	position: relative;
	z-index: 2;
}

.bts-checkout-hero__pre {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 1.2px;
	color: #c47c2c;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.bts-checkout-hero__title {
	font-size: 26px;
	font-weight: 800;
	color: #0f1c2e;
	margin: 0 0 8px 0;
	line-height: 1.25;
	letter-spacing: -0.4px;
}

.bts-checkout-hero__desc {
	font-size: 13.5px;
	color: #4b5563;
	margin: 0;
	line-height: 1.5;
}

/* Stepper Progress Bar */
.bts-checkout-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 40px;
	background: #ffffff;
	border-bottom: 1.5px solid #f0ede6;
	gap: 16px;
}

.bts-step-item {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	opacity: 0.55;
	transition: opacity 0.25s ease;
}

.bts-step-item.is-active {
	opacity: 1;
}

.bts-step-item.is-completed {
	opacity: 0.9;
}

.bts-step-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f3f4f6;
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
	transition: all 0.25s ease;
}

.bts-step-item.is-active .bts-step-num {
	background: #c47c2c;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(196, 124, 44, 0.35);
}

.bts-step-item.is-completed .bts-step-num {
	background: #10b981;
	color: #ffffff;
}

.bts-step-info {
	display: flex;
	flex-direction: column;
}

.bts-step-title {
	font-size: 14.5px;
	font-weight: 700;
	color: #111827;
	line-height: 1.2;
}

.bts-step-sub {
	font-size: 11.5px;
	color: #6b7280;
	margin-top: 2px;
}

/* ================= STEP 1 GRID ================= */
.bts-checkout-step-content {
	padding: 24px 36px 36px 36px;
}

.bts-checkout-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	align-items: start;
}

/* Common Card inside Modal */
.bts-co-card {
	background: #ffffff;
	border: 1px solid #ebdccb;
	border-radius: 14px;
	padding: 20px 22px;
	margin-bottom: 20px;
	box-sizing: border-box;
}

.bts-co-card:last-child {
	margin-bottom: 0;
}

.bts-co-card__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.bts-co-card__icon {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: #fdf8f2;
	border: 1px solid #dec3a4;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c47c2c;
	flex-shrink: 0;
}

.bts-co-card__icon svg {
	width: 18px;
	height: 18px;
}

.bts-co-card__title {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	margin: 0;
	line-height: 1.2;
}

.bts-co-card__sub {
	font-size: 12px;
	color: #6b7280;
	margin: 3px 0 0 0;
}

/* Form Fields */
.bts-form-row {
	display: flex;
	gap: 14px;
	margin-bottom: 14px;
}

.bts-form-row--2col .bts-field {
	flex: 1;
	min-width: 0;
}

.bts-field {
	margin-bottom: 14px;
}

.bts-field:last-child {
	margin-bottom: 0;
}

.bts-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}

.bts-field label .required {
	color: #ef4444;
}

#bts-checkout-modal .bts-collapse-buyer-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 18px auto;
	padding: 7px 11px;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	border: 1px solid #fed7aa !important;
	border-radius: 7px !important;
	background: #fff7ed !important;
	background-color: #fff7ed !important;
	color: #c2410c !important;
	font-family: inherit !important;
	font-size: 12.5px !important;
	font-weight: 600;
	line-height: 1.35 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: all 0.2s ease;
}

#bts-checkout-modal .bts-collapse-buyer-btn:hover {
	background: #ffedd5 !important;
	background-color: #ffedd5 !important;
	border-color: #fb923c !important;
	color: #9a3412 !important;
}

#bts-checkout-modal .bts-collapse-buyer-btn svg {
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
}

/* Scoped Inputs against Elementor Theme */
#bts-checkout-modal input[type="text"],
#bts-checkout-modal input[type="tel"],
#bts-checkout-modal input[type="email"],
#bts-checkout-modal select {
	width: 100% !important;
	height: 40px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 8px !important;
	padding: 0 14px !important;
	font-size: 13.5px !important;
	color: #111827 !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	outline: none !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
	font-family: inherit !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

#bts-checkout-modal input:focus,
#bts-checkout-modal select:focus {
	border-color: #c47c2c !important;
	box-shadow: 0 0 0 2px rgba(196, 124, 44, 0.15) !important;
}

#bts-checkout-modal select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 16px !important;
	padding-right: 36px !important;
	cursor: pointer;
}

/* Radio Group */
.bts-radio-group {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.bts-radio-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 13px;
	color: #374151;
	cursor: pointer;
	background: #fafafa;
	transition: all 0.2s ease;
	flex: 1;
	min-width: 140px;
}

.bts-radio-label:has(input:checked) {
	border-color: #c47c2c;
	background: #fdf8f2;
	color: #b77123;
}

.bts-radio-label input[type="radio"] {
	margin: 0 !important;
	accent-color: #c47c2c !important;
}

/* Coupon block */
/* Different Buyer Collapsible Block */
.bts-diff-buyer-toggle {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #ebdccb;
}

.bts-diff-buyer-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

#bts-checkout-modal .bts-diff-buyer-label input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	accent-color: #c47c2c !important;
	cursor: pointer !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-block !important;
	-webkit-appearance: checkbox !important;
	appearance: checkbox !important;
}

.bts-diff-buyer-text {
	font-size: 13.5px;
	font-weight: 600;
	color: #0f1c2e;
}

.bts-diff-buyer-fields {
	margin-top: 12px;
	padding: 14px 16px;
	background: #fbf9f6;
	border: 1px solid #ebdccb;
	border-radius: 10px;
}

.bts-diff-buyer-header {
	margin-bottom: 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bts-diff-buyer-header strong {
	font-size: 13.5px;
	color: #0f1c2e;
}

.bts-diff-buyer-header span {
	font-size: 12px;
	color: #6b7280;
}

.bts-coupon-block__label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	color: #374151;
	margin-bottom: 8px;
}

.bts-coupon-block__label svg {
	width: 16px;
	height: 16px;
	color: #c47c2c;
}

.bts-coupon-block__row {
	display: flex;
	gap: 8px;
}

#bts-checkout-modal .bts-btn-apply-coupon {
	background: #ebd6be !important;
	background-color: #ebd6be !important;
	color: #8c5017 !important;
	border: 1px solid #dec3a4 !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	padding: 0 18px !important;
	height: 40px !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	outline: none !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
}

#bts-checkout-modal .bts-btn-apply-coupon:hover {
	background: #c47c2c !important;
	background-color: #c47c2c !important;
	border-color: #c47c2c !important;
	color: #ffffff !important;
}

.bts-modal-coupon-msg {
	font-size: 12px;
	margin-top: 6px;
}

/* Security badges footer */
.bts-co-badges {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
	padding: 14px 16px;
	background: #faf7f2;
	border-radius: 10px;
	border: 1px solid #ebdccb;
}

.bts-co-badge-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: #4b5563;
}

.bts-co-badge-item svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.bts-co-badge-item strong {
	color: #111827;
	margin-right: 4px;
}

/* ================= RIGHT COLUMN: ORDER SUMMARY ================= */
.bts-modal-items-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-height: 240px;
	overflow-y: auto;
	padding-right: 4px;
}

.bts-modal-item {
	display: flex;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f3f4f6;
}

.bts-modal-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.bts-modal-item__thumb {
	width: 64px;
	height: 76px;
	border-radius: 8px;
	background: #fdfaf5;
	border: 1px solid #ebdccb;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.bts-modal-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bts-modal-item__info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bts-modal-item__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}

.bts-modal-item__title {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	margin: 0;
	line-height: 1.3;
}

#bts-checkout-modal .bts-modal-item__del {
	background: transparent !important;
	border: none !important;
	color: #9ca3af !important;
	cursor: pointer !important;
	padding: 2px !important;
	border-radius: 4px !important;
	outline: none !important;
	box-shadow: none !important;
}

#bts-checkout-modal .bts-modal-item__del:hover {
	color: #ef4444 !important;
	background: #fee2e2 !important;
}

#bts-checkout-modal .bts-modal-item__del svg {
	width: 16px;
	height: 16px;
	display: block;
}

.bts-modal-item__desc {
	font-size: 11.5px;
	color: #6b7280;
	margin: 2px 0 6px 0;
	line-height: 1.3;
}

.bts-modal-item__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.bts-modal-item__price {
	font-size: 15px;
	font-weight: 700;
	color: #b77123;
}

/* Modal Item Quantity controls */
#bts-checkout-modal .bts-modal-item__qty {
	display: inline-flex !important;
	align-items: center !important;
	border: 1px solid #dcd3c5 !important;
	border-radius: 6px !important;
	height: 28px !important;
	background: #ffffff !important;
	width: 82px !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

#bts-checkout-modal .bts-modal-qty-btn {
	width: 25px !important;
	height: 100% !important;
	border: none !important;
	background: transparent !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #4b5563 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

#bts-checkout-modal .bts-modal-qty-btn:hover {
	background: #f5ede1 !important;
	color: #b77123 !important;
}

#bts-checkout-modal .bts-modal-qty-input {
	width: 32px !important;
	height: 100% !important;
	border: none !important;
	border-left: 1px solid #ebdccb !important;
	border-right: 1px solid #ebdccb !important;
	border-top: none !important;
	border-bottom: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	text-align: center !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	color: #111827 !important;
	padding: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	line-height: 28px !important;
	-moz-appearance: textfield !important;
}

#bts-checkout-modal .bts-modal-qty-input::-webkit-outer-spin-button,
#bts-checkout-modal .bts-modal-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

/* Upsell Card */
.bts-co-card--upsell {
	background: #faf7f2;
	border-color: #ebdccb;
}

.bts-co-upsell-counter {
	font-size: 12px;
	color: #6b7280;
	margin-left: 6px;
}

.bts-modal-upsell-item {
	display: flex;
	gap: 12px;
	align-items: center;
}

.bts-modal-upsell-item__thumb {
	width: 58px;
	height: 68px;
	border-radius: 6px;
	background: #ffffff;
	border: 1px solid #ebdccb;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.bts-modal-upsell-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bts-modal-upsell-item__info {
	flex: 1 1 auto;
	min-width: 0;
}

.bts-modal-upsell-item__title {
	font-size: 13px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 2px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bts-modal-upsell-item__desc {
	font-size: 11px;
	color: #6b7280;
	margin: 0 0 6px 0;
	line-height: 1.3;
}

.bts-modal-upsell-item__action {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.bts-modal-upsell-item__price {
	font-size: 14px;
	font-weight: 700;
	color: #b77123;
}

#bts-checkout-modal .bts-btn-add-upsell {
	background: #ebd6be !important;
	background-color: #ebd6be !important;
	color: #8c5017 !important;
	border: 1px solid #dec3a4 !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	padding: 5px 12px !important;
	cursor: pointer !important;
	outline: none !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
}

#bts-checkout-modal .bts-btn-add-upsell:hover {
	background: #c47c2c !important;
	background-color: #c47c2c !important;
	border-color: #c47c2c !important;
	color: #ffffff !important;
}

/* Totals Box */
.bts-modal-totals {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bts-modal-totals__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13.5px;
	color: #4b5563;
}

.bts-modal-totals__row--grand {
	border-top: 1px dashed #ebdccb;
	padding-top: 10px;
	margin-top: 4px;
	font-size: 17px;
	font-weight: 700;
	color: #111827;
}

.bts-modal-grand-total {
	font-size: 22px;
	font-weight: 800;
	color: #c47c2c;
}

/* Payment Methods */
.bts-payment-methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 18px;
}

.bts-payment-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
	background: #ffffff;
}

.bts-payment-option.is-active {
	border-color: #c47c2c;
	background: #fdf8f2;
}

.bts-payment-option.is-disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background: #f9fafb;
}

.bts-payment-option input[type="radio"] {
	margin: 0 !important;
	accent-color: #c47c2c !important;
}

.bts-payment-option__icon {
	width: 28px;
	height: 28px;
	color: #c47c2c;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bts-payment-option__icon svg {
	width: 22px;
	height: 22px;
}

.bts-payment-option__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bts-payment-option__info strong {
	font-size: 13.5px;
	color: #111827;
}

.bts-payment-option__info span {
	font-size: 11.5px;
	color: #6b7280;
}

/* Main Submit Button */
#bts-checkout-modal .bts-btn-checkout-submit {
	width: 100% !important;
	height: 48px !important;
	line-height: 48px !important;
	background: linear-gradient(135deg, #e39235 0%, #b86e20 100%) !important;
	background-color: #c47c2c !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 10px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	box-shadow: 0 4px 16px rgba(196, 124, 44, 0.35) !important;
	transition: all 0.25s ease !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
}

#bts-checkout-modal .bts-btn-checkout-submit:hover {
	background: linear-gradient(135deg, #d38228 0%, #a45f17 100%) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 20px rgba(196, 124, 44, 0.45) !important;
}

#bts-checkout-modal .bts-btn-checkout-submit.loading {
	opacity: 0.85;
	pointer-events: none;
}

.bts-checkout-form-msg {
	margin-top: 10px;
	font-size: 13px;
	text-align: center;
}

/* Footer line Right */
.bts-co-footer-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 11.5px;
	color: #9ca3af;
	margin-top: 14px;
	padding: 0 4px;
}

.bts-zalo-support {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0369a1 !important;
	text-decoration: none !important;
	font-size: 12px;
}

.bts-zalo-badge {
	background: #0284c7;
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 5px;
	border-radius: 4px;
}

/* ================= STEP 2: VIETQR STYLES ================= */
.bts-step2-wrapper {
	max-width: 780px;
	margin: 0 auto;
	padding: 10px 0;
}

.bts-step2-header {
	text-align: center;
	margin-bottom: 24px;
}

.bts-step2-success-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #ecfdf5;
	border: 2px solid #a7f3d0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.bts-step2-success-icon svg {
	width: 32px;
	height: 32px;
}

.bts-step2-header h3 {
	font-size: 22px;
	font-weight: 800;
	color: #0f1c2e;
	margin: 0 0 6px 0;
}

.bts-step2-header p {
	font-size: 14px;
	color: #4b5563;
	margin: 0;
}

.bts-step2-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	background: #faf7f2;
	border: 1px solid #ebdccb;
	border-radius: 16px;
	padding: 24px;
	align-items: center;
}

.bts-step2-qr-box {
	text-align: center;
}

.bts-qr-frame {
	padding: 20px;
	height: 320px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #dec3a4;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.bts-qr-frame img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.bts-qr-loading {
	position: absolute;
	font-size: 12px;
	color: #9ca3af;
}

.bts-qr-hint {
	font-size: 11.5px;
	color: #6b7280;
	margin: 10px 0 0 0;
	line-height: 1.4;
}

.bts-step2-title {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 14px 0;
}

.bts-bank-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 9px 0;
	border-bottom: 1px dashed #dec3a4;
	font-size: 13.5px;
}

.bts-bank-label {
	color: #6b7280;
}

.bts-bank-val {
	color: #111827;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bts-copy-target {
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 4px;
	font-family: monospace;
	font-size: 13.5px;
	color: #0f172a;
}

#bts-checkout-modal .bts-copy-btn {
	background: #ebd6be !important;
	border: 1px solid #dec3a4 !important;
	border-radius: 4px !important;
	padding: 2px 8px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	color: #8c5017 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	outline: none !important;
}

#bts-checkout-modal .bts-copy-btn:hover {
	background: #c47c2c !important;
	color: #ffffff !important;
}

.bts-step2-alert {
	margin-top: 14px;
	padding: 10px 12px;
	background: #fef3c7;
	border-left: 3px solid #f59e0b;
	border-radius: 4px;
	font-size: 12px;
	color: #92400e;
	line-height: 1.4;
}

#bts-checkout-modal .bts-btn-paid-confirm {
	margin-top: 16px !important;
	width: 100% !important;
	height: 44px !important;
	line-height: 44px !important;
	background: #c47c2c !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	box-shadow: 0 4px 12px rgba(196, 124, 44, 0.3) !important;
	transition: all 0.2s !important;
}

#bts-checkout-modal .bts-btn-paid-confirm:hover {
	background: #b06b20 !important;
}

/* ================= STEP 3: ORDER COMPLETED ================= */
.bts-step3-wrapper {
	max-width: 580px;
	margin: 20px auto;
	text-align: center;
	padding: 20px;
}

.bts-step3-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #fdf8f2;
	border: 2px solid #dec3a4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.bts-step3-icon svg {
	width: 40px;
	height: 40px;
}

.bts-step3-wrapper h2 {
	font-size: 24px;
	font-weight: 800;
	color: #0f1c2e;
	margin: 0 0 10px 0;
}

.bts-step3-desc {
	font-size: 14.5px;
	color: #4b5563;
	line-height: 1.6;
	margin: 0 0 24px 0;
}

.bts-step3-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.bts-zalo-support-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 24px;
	background: #0284c7;
	color: #ffffff !important;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.2s;
}

.bts-zalo-support-btn:hover {
	background: #0369a1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 860px) {
	.bts-checkout-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.bts-checkout-hero {
		padding: 18px 16px 14px 16px;
	}

	.bts-checkout-hero__desc {
		display: none; /* Hide long paragraph on mobile so form is visible immediately */
	}

	.bts-checkout-stepper {
		display: none; /* Hide vertical stepper on mobile to eliminate scrolling */
	}

	.bts-checkout-step-content {
		padding: 16px 14px 24px 14px;
	}

	.bts-step2-grid {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.bts-form-row--2col {
		flex-direction: column;
		gap: 14px;
	}

	.bts-co-card {
		padding: 16px 14px;
	}
}

/* ================= NEW STEP 3 STYLES ================= */
.bts-step3-custom-wrapper {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
}

.bts-step3-custom-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 2px solid #dec3a4;
}

.bts-step3-custom-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #c47c2c;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bts-step3-close-btn {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
	padding: 0;
}
.bts-step3-close-btn:hover { color: #4b5563; }

.bts-step3-custom-msg {
	text-align: center;
	font-size: 15px;
	color: #1f2937;
	margin: 24px 20px 16px;
	line-height: 1.5;
}

.bts-step3-order-card {
	background: #faf7f2;
	border: 1px solid #ebdccb;
	border-radius: 12px;
	margin: 0 20px 20px;
	overflow: hidden;
}

.bts-step3-order-card-header {
	background: #fff;
	padding: 12px 16px;
	border-bottom: 1px solid #ebdccb;
}

.bts-step3-order-card-header h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
}

.bts-step3-order-card-body {
	display: flex;
	padding: 20px;
	gap: 20px;
	align-items: center;
}

.bts-step3-card-left {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.1);
	position: relative;
}

.bts-step3-success-icon {
	width: 50px;
	height: 50px;
}

.bts-step3-card-right {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.bts-step3-info-col {
	flex: 1 1 calc(50% - 16px);
	display: flex;
	flex-direction: column;
	border-left: 1px solid #ebdccb;
	padding-left: 16px;
}
.bts-step3-info-col:nth-child(odd) {
	border-left: none;
	padding-left: 0;
}

.bts-info-label {
	font-size: 12px;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}
.bts-info-label svg {
	width: 14px;
	height: 14px;
}

.bts-info-val {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}
.bts-info-val-price {
	font-size: 18px;
	color: #f97316;
}

.bts-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #dcfce7;
	color: #166534;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
}
.bts-status-badge svg {
	width: 14px;
	height: 14px;
}
.bts-status-badge.is-cod {
	background: #f1f5f9;
	color: #475569;
}
.bts-status-badge.is-cod svg {
	fill: #94a3b8;
}

.bts-step3-notice {
	background: #eff6ff;
	border-radius: 12px;
	margin: 0 20px 20px;
	overflow: hidden;
}

.bts-step3-notice-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	font-weight: 700;
	color: #1e3a8a;
	font-size: 15px;
	border-bottom: 1px solid #dbeafe;
}
.bts-step3-notice-header svg {
	width: 20px;
	height: 20px;
}

.bts-step3-notice-body {
	display: flex;
	gap: 16px;
	padding: 16px;
}

.bts-notice-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	font-size: 12px;
	color: #334155;
	line-height: 1.4;
	border-right: 1px solid #bfdbfe;
	padding-right: 16px;
}
.bts-notice-col:last-child {
	border-right: none;
	padding-right: 0;
}

.bts-notice-col svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

@media (max-width: 640px) {
	.bts-step3-order-card-body {
		flex-direction: column;
		align-items: flex-start;
	}
	.bts-step3-card-left {
		align-self: center;
	}
	.bts-step3-info-col {
		flex: 1 1 100%;
		border-left: none;
		padding-left: 0;
		border-bottom: 1px solid #ebdccb;
		padding-bottom: 12px;
	}
	.bts-step3-info-col:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}
	
	.bts-step3-notice-body {
		flex-direction: column;
	}
	.bts-notice-col {
		border-right: none;
		border-bottom: 1px solid #bfdbfe;
		padding-right: 0;
		padding-bottom: 12px;
		flex-direction: row;
		align-items: center;
	}
	.bts-notice-col:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}
}

/* ================= STEP 3 BUTTONS ================= */
.bts-step3-actions {
	display: flex;
	gap: 16px;
	padding: 0 20px 24px;
	justify-content: center;
	align-items: center;
}

#bts-checkout-modal .bts-step3-btn-home,
#bts-checkout-modal .bts-step3-btn-zalo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	outline: none;
	border: none;
	box-shadow: none;
	line-height: 1.5;
	margin: 0;
}

#bts-checkout-modal .bts-step3-btn-home {
	background-color: #fff;
	color: #d97706;
	border: 1px solid #d97706;
}
#bts-checkout-modal .bts-step3-btn-home:hover {
	background-color: #fffbeb;
	color: #b45309;
}

#bts-checkout-modal .bts-step3-btn-zalo {
	background-color: #0068ff;
	color: #fff;
	border: 1px solid #0068ff;
}
#bts-checkout-modal .bts-step3-btn-zalo:hover {
	background-color: #005ce6;
}

@media (max-width: 640px) {
	.bts-step3-actions {
		flex-direction: column;
		padding: 0 20px 20px;
	}
	#bts-checkout-modal .bts-step3-btn-home,
	#bts-checkout-modal .bts-step3-btn-zalo {
		width: 100%;
	}
}

/* Step 3 Order Grid */
#bts-checkout-step-3 .bts-thanks-title {
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f1c2e;
    margin: 10px 0;
}
#bts-checkout-step-3 .bts-thanks-message {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}
#bts-checkout-step-3 .bts-step3-order-grid > div {
    min-width: 0;
}
#bts-checkout-step-3 .bts-qr-order-code {
    white-space: normal !important;
    overflow-wrap: anywhere;
}
@media (max-width: 768px) {
    #bts-checkout-step-3 .bts-thanks-header { margin-bottom: 16px !important; padding-right: 22px; }
    #bts-checkout-step-3 .bts-thanks-title { font-size: 22px; }
    #bts-checkout-step-3 .bts-thanks-message { font-size: 14px; line-height: 1.5; }
    #bts-checkout-step-3 .bts-step3-info-box {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: center;
        text-align: center;
        align-items: center;
        column-gap: 8px;
        row-gap: 12px;
        margin-bottom: 16px;
    }
    #bts-checkout-step-3 .bts-step3-info-box > div:last-child { display: contents; }
    #bts-checkout-step-3 .bts-thanks-icon {
        position: static !important;
        justify-self: center;
        width: 40px !important;
        height: 40px !important;
    }
    #bts-checkout-step-3 .bts-thanks-icon > div { width: 30px !important; height: 30px !important; }
    #bts-checkout-step-3 .bts-thanks-icon svg { width: 18px; height: 18px; }
    #bts-checkout-step-3 .bts-step3-info-box h3 {
        font-family: inherit !important;
        font-size: 18px !important;
        line-height: 32px;
        margin: 0 !important;
    }
    #bts-checkout-step-3 .bts-step3-order-grid { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 12px !important; }
    #bts-checkout-step-3 .bts-step3-order-col { border-left: 0; padding-left: 0; }
    #bts-checkout-step-3 .bts-step3-order-grid > div > div:first-child { justify-content: center; margin-bottom: 4px !important; font-size: 13px !important; }
    #bts-checkout-step-3 #bts-step3-payment-status { font-size: 12px !important; white-space: normal !important; }
    #bts-checkout-step-3 .bts-thanks-notice { padding: 16px !important; }
    #bts-checkout-step-3 .bts-thanks-notice > div:first-child { font-size: 16px !important; margin-bottom: 12px !important; }
    #bts-checkout-step-3 .bts-notice-grid { gap: 12px; }
    #bts-checkout-step-3 .bts-notice-grid > div { gap: 8px !important; padding-bottom: 12px; }
    #bts-checkout-step-3 .bts-notice-grid svg { width: 22px; height: 22px; }
}

.bts-step3-order-grid {
    grid-template-columns: repeat(4, 1fr);
}
.bts-step3-order-col {
    border-left: 1px solid #e5e7eb;
    padding-left: 16px;
}
@media (max-width: 768px) {
    .bts-step3-order-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bts-step3-order-col:nth-child(odd) {
        border-left: none;
        padding-left: 0;
    }
}
@media (max-width: 480px) {
    .bts-step3-order-grid {
        grid-template-columns: 1fr;
    }
    .bts-step3-order-col {
        border-left: none;
        padding-left: 0;
    }
}

/* ==================================================== */
/* RESPONSIVE LAYOUT FOR NEW STEP 2 AND STEP 3 */
/* ==================================================== */

.bts-step2-new, .bts-step3-new {
    padding: 28px 32px;
    background: #ffffff;
    border-radius: 20px;
}

/* VietQR: remove copy actions and use the checkout navy for blue text/icons. */
#bts-checkout-step-2 .bts-copy-btn[data-target="#bts_copy_bank"],
#bts-checkout-step-2 .bts-copy-btn[data-target="#bts_copy_holder"] {
	display: none !important;
}

#bts-checkout-step-2 [style*="#1e3a8a"] {
	color: #172635 !important;
}

#bts-checkout-step-2 [style*="#2563eb"] {
	background-color: #172635 !important;
}

#bts-checkout-step-2 svg[stroke="#1e3a8a"] {
	stroke: #172635 !important;
}

.bts-step2-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
}

.bts-step2-qr-col {
    flex: 0 0 38%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.bts-step2-info-col {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Full screen modal */
    .bts-checkout-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
    }
    .bts-checkout-modal__content {
        height: 100% !important;
        border-radius: 0 !important;
    }
    
    /* Hide Stepper */
    .bts-checkout-stepper {
        display: none !important;
    }
    
    /* Reduce Padding */
    .bts-step2-new, .bts-step3-new {
        padding: 16px;
        border-radius: 0;
    }
    
    /* Stack QR and Info vertically */
    .bts-step2-layout {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .bts-step2-qr-col {
        padding: 0;
    }
    
    .bts-step2-info-col {
        padding: 16px;
    }
    
    /* Step 3 adjustments */
    .bts-step3-order-grid {
        gap: 12px;
    }
}


.bts-notice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.bts-step3-info-box {
    border: 1px solid #fbd38d;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .bts-notice-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .bts-notice-grid > div {
        border-right: none !important;
        border-bottom: 1px solid #bfdbfe;
        padding-right: 0 !important;
        padding-bottom: 16px;
    }
    .bts-notice-grid > div:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .bts-step3-info-box {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        text-align: center;
    }
}
