/* Thai Hung / Flatsome child — Cart + Checkout */
.th-cart-card,
.th-cart-sidebar .cart_totals,
.th-coupon-form,
.th-checkout-sidebar .checkout-sidebar {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 18px 20px;
}

.th-cart-row {
	align-items: flex-start;
}

.woocommerce-cart .shop_table thead th {
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #333;
	border-bottom: 1px solid #eee;
}

.woocommerce-cart .cart_totals h2,
.woocommerce-checkout #order_review_heading {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.th-coupon-form .widget-title {
	font-size: 15px;
	margin-bottom: 10px;
}

.th-coupon-form .coupon .input-text {
	width: 100%;
	margin-bottom: 8px;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	width: 100%;
	text-align: center;
	font-weight: 700;
	letter-spacing: .03em;
}

.th-billing-box,
.th-shipping-box {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 16px;
}

@media (max-width: 849px) {
	.th-cart-card,
	.th-cart-sidebar .cart_totals,
	.th-coupon-form,
	.th-billing-box,
	.th-shipping-box {
		padding: 14px;
	}
}

/* Voucher trigger + modal */
.th-voucher-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0 0 14px;
	cursor: pointer;
	user-select: none;
}
.th-voucher-trigger:hover {
	border-color: #ee4d2d;
}
.th-voucher-trigger__left,
.th-voucher-trigger__right {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.th-voucher-trigger__title {
	font-weight: 600;
	color: #333;
	font-size: 14px;
}
.th-voucher-trigger__value {
	color: #2f80ed;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 180px;
}
.th-voucher-trigger__value.is-applied {
	color: #ee4d2d;
	font-weight: 600;
}
.th-voucher-trigger__chevron {
	color: #999;
	font-size: 20px;
	line-height: 1;
}

body.th-voucher-lock {
	overflow: hidden;
}
.th-voucher-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
}
.th-voucher-modal.is-open {
	display: block;
}
.th-voucher-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.45);
}
.th-voucher-dialog {
	position: relative;
	width: min(420px, calc(100vw - 24px));
	max-height: min(86vh, 680px);
	margin: 6vh auto 0;
	background: #fff;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.th-voucher-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid #f0f0f0;
}
.th-voucher-head h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
}
.th-voucher-help {
	color: #888;
	font-size: 13px;
}
.th-voucher-body {
	padding: 14px 18px 8px;
	overflow: auto;
	flex: 1;
}
.th-voucher-enter {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}
.th-voucher-input {
	flex: 1;
	height: 40px;
	border: 1px solid #e5e5e5;
	border-radius: 2px;
	padding: 0 12px;
	font-size: 14px;
}
.th-voucher-apply {
	min-width: 96px;
	height: 40px;
	border: 0;
	background: #f2f2f2;
	color: #888;
	font-weight: 700;
	letter-spacing: .02em;
	cursor: pointer;
}
.th-voucher-apply:hover,
.th-voucher-input:not(:placeholder-shown) + .th-voucher-apply {
	background: #ee4d2d;
	color: #fff;
}
.th-voucher-msg {
	font-size: 13px;
	margin: 0 0 10px;
}
.th-voucher-msg.is-ok { color: #1b8a3a; }
.th-voucher-msg.is-err { color: #ee4d2d; }
.th-voucher-section__title {
	font-weight: 700;
	font-size: 14px;
	margin-top: 6px;
}
.th-voucher-section__note {
	color: #999;
	font-size: 12px;
	margin: 2px 0 10px;
}
.th-voucher-list {
	max-height: 280px;
	overflow: auto;
	padding-right: 2px;
}
.th-voucher-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 1px solid #eee;
	border-radius: 4px;
	padding: 12px 14px;
	margin-bottom: 10px;
	cursor: pointer;
}
.th-voucher-item.is-checked {
	border-color: #ee4d2d;
	background: #fff8f6;
}
.th-voucher-item__code {
	font-weight: 700;
	font-size: 14px;
}
.th-voucher-item__desc {
	color: #666;
	font-size: 13px;
	margin-top: 2px;
}
.th-voucher-item__exp {
	color: #999;
	font-size: 12px;
	margin-top: 4px;
}
.th-voucher-item input {
	width: 18px;
	height: 18px;
	accent-color: #ee4d2d;
	flex: 0 0 auto;
}
.th-voucher-empty {
	color: #888;
	font-size: 13px;
	padding: 16px 4px;
}
.th-voucher-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 18px;
	border-top: 1px solid #f0f0f0;
}
.th-voucher-footer__status {
	color: #666;
	font-size: 13px;
}
.th-voucher-footer__actions {
	display: flex;
	gap: 8px;
}
.th-voucher-back,
.th-voucher-ok {
	min-width: 92px;
	height: 38px;
	border-radius: 2px;
	font-weight: 700;
	cursor: pointer;
}
.th-voucher-back {
	background: #fff;
	border: 1px solid #ddd;
	color: #333;
}
.th-voucher-ok {
	background: #ee4d2d;
	border: 1px solid #ee4d2d;
	color: #fff;
}
.th-voucher-ok.is-loading,
.th-voucher-apply.is-loading {
	opacity: .7;
	pointer-events: none;
}
