/* Checkout layout theo mẫu */
.th-ck-form { max-width: 1180px; margin: 0 auto; }
.th-ck-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
	gap: 20px;
	align-items: start;
}
.th-ck-card {
	background: #fff;
	border: 1px solid #e8eef5;
	border-radius: 14px;
	padding: 20px 22px 18px;
	margin-bottom: 16px;
	box-shadow: 0 1px 2px rgba(16, 38, 72, .04);
}
.th-ck-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}
.th-ck-card__head h3,
.th-ck-order__title,
.th-ck-invoice-title {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #123a73;
}
.th-ck-step {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #123a73;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex: 0 0 26px;
}
.th-ck-left .form-row { margin-bottom: 12px; }
.th-ck-left .form-row label {
	font-size: 13px;
	font-weight: 600;
	color: #223;
	margin-bottom: 6px;
}
.th-ck-left .input-text,
.th-ck-left select,
.th-ck-left textarea,
.th-ck-coupon__input {
	height: 42px;
	border: 1px solid #dbe3ee !important;
	border-radius: 8px !important;
	padding: 0 12px;
	background: #fff;
	box-shadow: none !important;
}
.th-ck-left textarea,
.th-ck-notes textarea,
.th-ck-notes-field textarea,
#order_comments {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 96px;
	padding: 10px 12px !important;
	resize: vertical;
	box-sizing: border-box;
}
.th-ck-left #billing_address_1_field,
.th-ck-left #billing_city_field,
.th-ck-left #billing_state_field,
.th-ck-left #billing_address_1,
.th-ck-left #billing_city,
.th-ck-left #billing_state {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}
.th-ck-left #billing_address_1,
.th-ck-left #billing_city {
	display: block;
}
.th-ck-notes .woocommerce-additional-fields h3,
.th-ck-notes #order_comments_field > label {
	display: none;
}
.th-ck-ship .th-ck-card__head {
	align-items: center;
}

.th-ck-invoice {
	margin-top: 8px;
	padding: 14px;
	border: 1px dashed #c9d6ea;
	border-radius: 10px;
	background: #f7faff;
	overflow: hidden;
}
.th-ck-invoice-title { color: #123a73; margin-bottom: 10px; font-size: 14px; }
.th-ck-invoice-fields.is-hidden { display: none !important; }
.th-ck-invoice-fields { display: block; }
.th-ck-inv-row { margin: 0 0 12px; }
.th-ck-inv-row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}
.th-ck-inv-row .input-text {
	width: 100%;
	height: 42px;
	border: 1px solid #dbe3ee;
	border-radius: 8px;
	padding: 0 12px;
}
.th-ck-inv-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.th-ck-tax-wrap {
	display: flex;
	gap: 8px;
}
.th-ck-tax-wrap .input-text { flex: 1; }
.th-ck-tax-btn {
	height: 42px;
	border: 0;
	border-radius: 8px;
	background: #123a73;
	color: #fff;
	font-weight: 700;
	padding: 0 12px;
	cursor: pointer;
	white-space: nowrap;
}
.th-ck-tax-msg { display: none !important; }
.th-ck-item {
	display: flex;
	align-items: center;
	gap: 10px;
}
.th-ck-item img.th-ck-thumb,
.th-ck-item img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 6px;
	flex: 0 0 48px;
	border: 1px solid #eef3f8;
}
.th-ck-item__name { min-width: 0; }
.th-ck-inv-grid .th-ck-inv-row { margin: 0; }

.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout form.checkout_coupon,
.woocommerce-checkout .woocommerce-info {
	display: none !important;
}
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #shipping_country_field,
.woocommerce-checkout .th-ck-hide,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #shipping_address_2_field,
.woocommerce-checkout .address-field.create-account {
	display: none !important;
}

.th-ck-ship #ship-to-different-address {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	color: #123a73;
}
.th-ck-ship #ship-to-different-address label { margin: 0; }
.th-ck-ship .shipping_address { margin-top: 14px; }

.th-ck-coupon { display: flex; gap: 8px; margin-bottom: 14px; }
.th-ck-coupon__input { flex: 1; height: 40px; }
.th-ck-coupon__btn {
	height: 40px;
	border: 0;
	border-radius: 8px;
	background: #123a73;
	color: #fff;
	font-weight: 700;
	padding: 0 14px;
	cursor: pointer;
	white-space: nowrap;
}
.th-ck-vouchers { margin-bottom: 16px; }
.th-ck-vouchers__title {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 8px;
	color: #123a73;
}
.th-ck-voucher {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	border: 1px solid #ead9a8;
	background: #fffdf6;
	border-radius: 8px;
	padding: 8px 10px;
	margin-bottom: 8px;
}
.th-ck-voucher__code { font-weight: 800; font-size: 13px; color: #123a73; }
.th-ck-voucher__desc { font-size: 12px; color: #666; }
.th-ck-voucher__use {
	border: 0;
	background: #f5c518;
	color: #1a1a1a;
	font-weight: 800;
	font-size: 11px;
	border-radius: 6px;
	padding: 6px 10px;
	cursor: pointer;
	white-space: nowrap;
}
.th-ck-order .shop_table { border: 0; }
.th-ck-order .shop_table th,
.th-ck-order .shop_table td { border: 0; padding: 8px 0; }
.th-ck-order .order-total td,
.th-ck-order .order-total th { color: #e11; font-weight: 800; font-size: 16px; }
.th-ck-order #place_order,
.th-ck-order button#place_order {
	width: 100%;
	height: 46px;
	border-radius: 8px !important;
	background: #1a73e8 !important;
	border: 0 !important;
	font-weight: 800 !important;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.th-ck-form .woocommerce-form-coupon-toggle,
.th-ck-form form.checkout_coupon { display: none !important; }

@media (max-width: 849px) {
	.th-ck-grid { grid-template-columns: 1fr; }
	.th-ck-inv-grid { grid-template-columns: 1fr; }
}

/* Thank you / order received */
.woocommerce-order {
	max-width: 1180px;
	margin: 0 auto;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	color: #1b2a4a;
}
/* Cột phải: thank you + overview + QR cùng một kiểu card */
.woocommerce-order .large-5,
.woocommerce-order .medium-5,
.woocommerce-order .col-inner:has(.woocommerce-order-overview) {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}
.woocommerce-thankyou-order-received,
.woocommerce-order-overview,
.th-bacs-qr {
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e8eef5;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(16, 38, 72, .04);
	margin: 0 0 12px;
}
.woocommerce-thankyou-order-received {
	padding: 16px 18px;
}
.woocommerce-order-overview {
	padding: 16px 18px;
	margin-bottom: 12px;
}
.th-bacs-qr {
	padding: 16px 18px 14px;
	margin-bottom: 0;
}

.woocommerce-order-overview li {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 13px;
	color: #667;
}
.woocommerce-order-overview li strong {
	display: block;
	margin-top: 3px;
	color: #123a73;
	font-size: 15px;
}
.woocommerce-bacs-bank-details,
.woocommerce-order-details,
.woocommerce-customer-details {
	background: #fff;
	border: 1px solid #e8eef5;
	border-radius: 14px;
	padding: 18px 20px;
	margin: 0 0 16px;
	box-shadow: 0 1px 2px rgba(16, 38, 72, .04);
}
.woocommerce-bacs-bank-details h2,
.woocommerce-order-details h2,
.woocommerce-column__title,
.woocommerce-order-details__title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #123a73;
}
.woocommerce-bacs-bank-details h3 {
	font-size: 14px;
	font-weight: 700;
	color: #123a73;
	margin: 0 0 8px;
}
.wc-bacs-bank-details-account-name { font-weight: 700; }
.woocommerce-bacs-bank-details ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce-bacs-bank-details li {
	padding: 6px 0;
	border-bottom: 1px solid #eef3f8;
	font-size: 14px;
}
.woocommerce-order-details table.shop_table {
	border: 0;
	width: 100%;
}
.woocommerce-order-details table.shop_table th,
.woocommerce-order-details table.shop_table td {
	border: 0;
	border-bottom: 1px solid #eef3f8;
	padding: 10px 0;
	font-size: 14px;
}
.woocommerce-order-details table.shop_table tfoot .order-total th,
.woocommerce-order-details table.shop_table tfoot .order-total td {
	color: #e11;
	font-weight: 800;
	font-size: 16px;
	border-bottom: 0;
}
.woocommerce-customer-details address {
	font-style: normal;
	line-height: 1.7;
	color: #334;
}
.th-bacs-qr {
	background: #fff;
	border: 1px solid #e8eef5;
	border-radius: 14px;
	padding: 16px 18px 14px;
	margin: 0 0 16px;
	text-align: center;
	box-shadow: 0 1px 2px rgba(16, 38, 72, .04);
}
.th-bacs-qr h3 {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #123a73;
}
.th-bacs-qr img {
	width: 100%;
	max-width: 280px;
	height: auto;
	border-radius: 8px;
}
.th-bacs-qr__bank + .th-bacs-qr__bank,
.th-bacs-qr__note + .th-bacs-qr__bank {
	margin-top: 4px;
}
.th-bacs-qr__label {
	margin: 12px 0 6px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #123a73;
}
.th-bacs-qr__note {
	margin: 10px 0 2px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #eef5ff;
	color: #123a73;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	text-align: left;
}
.th-bacs-qr__toggle {
	display: block;
	width: 100%;
	margin: 14px 0 0;
	padding: 10px 12px;
	border: 1px solid #c5d7f2;
	border-radius: 8px;
	background: #f4f8ff;
	color: #123a73;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	text-align: left;
	cursor: pointer;
}
.th-bacs-qr__toggle:hover {
	background: #e7f0ff;
}
.th-bacs-qr__extra[hidden] {
	display: none;
}
.th-bacs-qr__meta {
	margin: 10px 0 0;
	font-size: 13px;
	color: #334;
	line-height: 1.6;
}
.th-bacs-wait {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff8e8;
	color: #8a5a00;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}
.th-bacs-wait__dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 6px;
	border-radius: 50%;
	background: #f5a623;
	animation: th-bacs-blink 1s infinite;
}
@keyframes th-bacs-blink {
	50% { opacity: .25; }
}
.th-paid-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(16, 38, 72, .45);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.th-paid-modal__card {
	width: min(420px, 100%);
	background: #fff;
	border-radius: 16px;
	padding: 28px 24px 22px;
	text-align: center;
	box-shadow: 0 16px 40px rgba(16, 38, 72, .2);
	font-family: Inter, system-ui, sans-serif;
}
.th-paid-modal__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: #e8f8ee;
	color: #1e8e3e;
	font-size: 28px;
	line-height: 56px;
	font-weight: 800;
}
.th-paid-modal__card h3 {
	margin: 0 0 8px;
	color: #123a73;
	font-size: 20px;
}
.th-paid-modal__card p {
	margin: 0 0 16px;
	color: #445;
	line-height: 1.6;
}
.th-paid-modal__ok {
	border: 0;
	background: #1a73e8;
	color: #fff;
	height: 42px;
	padding: 0 22px;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
}

