/* W-66: trang thanh toán bố cục Shopee — 1 cột giữa (≤ 760px), các khối thẻ trắng bo góc. */
body.mitomo-w66 .page-checkout {
	background: #f5f5f5;
}

body.mitomo-w66 .mitomo-w66-form,
body.mitomo-w66 .woocommerce-form-login-toggle,
body.mitomo-w66 form.woocommerce-form-login,
body.mitomo-w66 .woocommerce-notices-wrapper,
body.mitomo-w66 .mitomo-w63-tde .container {
	max-width: 760px;
	margin-right: auto;
	margin-left: auto;
}

/* Mã giảm giá nằm trong khối Sản phẩm (hàng «Voucher của Shop») → bỏ dòng «Có mã ưu đãi?» phía trên. */
body.mitomo-w66 .woocommerce-form-coupon-toggle,
body.mitomo-w66 form.checkout_coupon {
	display: none !important;
}

.mitomo-w66-form .mitomo-w66-o {
	margin: 0 0 12px;
	padding: 14px 16px;
	border: 1px solid #ececec;
	border-radius: 8px;
	background: #fff;
	box-sizing: border-box;
}

.mitomo-w66-o__h {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	color: #222;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	text-transform: none;
}

.mitomo-w66-o__h svg {
	flex: 0 0 auto;
	color: var(--w46-xanh, #0074bf);
}

.mitomo-w66-o--dc .mitomo-w66-o__h svg {
	color: var(--w46-do, #c40025);
}

/* Bỏ tiêu đề / kẻ thừa của Woo, Flatsome trong khối. */
.mitomo-w66-form .woocommerce-billing-fields > h3,
.mitomo-w66-form .woocommerce-additional-fields > h3,
.mitomo-w66-form #order_review_heading {
	display: none;
}

.mitomo-w66-form .woocommerce-billing-fields {
	padding-top: 0;
	border-top: 0;
}

.mitomo-w66-form #customer_details .clear:empty {
	display: none;
}

/* 1. Địa chỉ: thẻ tóm tắt (khách có địa chỉ lưu). */
.mitomo-w66-dc {
	position: relative;
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 2px 28px 2px 0;
	border: 0;
	background: none;
	color: #222;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.mitomo-w66-dc__ten {
	display: block;
	font-weight: 700;
}

.mitomo-w66-dc__ten small {
	margin-left: 6px;
	color: #666;
	font-size: 14px;
	font-weight: 400;
}

.mitomo-w66-dc__dc {
	display: block;
	color: #555;
}

.mitomo-w66-o--dc.is-gon .mitomo-w66-o__than {
	display: none;
}

.mitomo-w66-o--dc:not(.is-gon) .mitomo-w66-dc {
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}

.mitomo-w66-mui {
	color: #999;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}

.mitomo-w66-dc .mitomo-w66-mui {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
}

/* 2. Sản phẩm. */
.mitomo-w66-sp {
	margin: 0;
	border: 0;
}

.mitomo-w66-dong {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-top: 1px solid #f3f3f3;
}

.mitomo-w66-dong:first-child {
	padding-top: 0;
	border-top: 0;
}

.mitomo-w66-dong__anh {
	flex: 0 0 64px;
}

.mitomo-w66-dong__anh img {
	display: block;
	width: 64px;
	height: 64px;
	border: 1px solid #eee;
	border-radius: 4px;
	object-fit: cover;
}

.mitomo-w66-dong__tt {
	flex: 1 1 auto;
	min-width: 0;
}

.mitomo-w66-dong__ten {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 4px;
	color: #222;
	font-size: 14px;
	line-height: 19px;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.mitomo-w66-dong__tt .variation {
	margin: 0 0 4px;
	color: #777;
	font-size: 12px;
}

.mitomo-w66-dong__gia {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.mitomo-w66-dong__dg {
	color: var(--w46-do, #c40025);
	font-size: 15px;
	font-weight: 700;
}

.mitomo-w66-dong__dg > .amount,
.mitomo-w66-dong__dg > .woocommerce-Price-amount {
	color: inherit;
}

.mitomo-w66-dong__dg del {
	margin-left: 4px;
	color: #999;
	font-size: 12px;
	font-weight: 400;
}

.mitomo-w66-dong__gia .product-quantity {
	color: #555;
	font-size: 14px;
	font-weight: 400;
}

.mitomo-w66-dong__tong {
	margin: 2px 0 0;
	color: #555;
	font-size: 13px;
	text-align: right;
}

/* Hàng «Voucher của Shop» · «Lời nhắn cho Shop». */
.mitomo-w66-hang {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 0;
	border: 0;
	border-top: 1px solid #f0f0f0;
	border-radius: 0;
	background: none;
	color: #222;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.mitomo-w66-hang__t {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.mitomo-w66-hang__t svg {
	color: var(--w46-do, #c40025);
}

.mitomo-w66-hang__v {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	overflow: hidden;
	color: #888;
	text-align: right;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.mitomo-w66-hang__v.is-co {
	color: var(--w46-do, #c40025);
	font-weight: 600;
}

.mitomo-w66-nhan {
	padding: 0 0 6px;
}

.mitomo-w66-nhan[hidden] {
	display: none;
}

.mitomo-w66-nhan .form-row {
	margin: 0;
	padding: 0;
}

.mitomo-w66-nhan label {
	display: none;
}

.mitomo-w66-nhan textarea {
	min-height: 70px;
	margin: 0;
}

/* 3. Vận chuyển. */
.mitomo-w66-vc__t,
.mitomo-w66-vc__t tbody,
.mitomo-w66-vc__t tr,
.mitomo-w66-vc__t th,
.mitomo-w66-vc__t td {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

.mitomo-w66-vc__t th {
	display: none;
}

.mitomo-w66-vc #shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mitomo-w66-vc #shipping_method li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	padding: 10px 12px;
	border: 1px solid #e3e3e3;
	border-radius: 6px;
	text-align: left;
}

.mitomo-w66-vc #shipping_method li:has(input:checked) {
	border-color: var(--w46-xanh, #0074bf);
	background: #f3f8fc;
}

.mitomo-w66-vc #shipping_method li input {
	margin: 0;
}

.mitomo-w66-vc #shipping_method li label {
	flex: 1 1 auto;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.mitomo-w66-vc__mien {
	margin: 0;
	color: #00a046;
	font-size: 14px;
}

.mitomo-w66-giao .mitomo-w46-extra {
	margin: 10px 0 0;
	padding: 10px 0 0;
	border: 0;
	border-top: 1px solid #f0f0f0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.mitomo-w66-giao .mitomo-w46-extra__t {
	margin: 0 0 6px;
	font-size: 14px;
	text-transform: none;
}

/* 4. Thanh toán: hàng chọn tròn. */
.mitomo-w66-o--tt #payment {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.mitomo-w66-o--tt #payment .payment_methods {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.mitomo-w66-o--tt #payment .payment_methods > li {
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid #f0f0f0;
}

.mitomo-w66-o--tt #payment .payment_methods > li:first-child {
	padding-top: 0;
	border-top: 0;
}

.mitomo-w66-o--tt #payment .payment_methods > li > label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.mitomo-w66-o--tt #payment .payment_methods > li > label img {
	max-height: 22px;
	margin: 0;
}

.mitomo-w66-o--tt #payment .payment_box {
	margin: 8px 0 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #f7f7f7;
	font-size: 13px;
}

.mitomo-w66-o--tt #payment .payment_box::before {
	display: none;
}

.mitomo-w66-dat .place-order {
	margin: 0 0 12px;
	padding: 0;
}

.mitomo-w66-dat #place_order {
	width: 100%;
	margin: 0;
}

body.mitomo-w66 .woocommerce-privacy-policy-text,
.mitomo-w66-dat .woocommerce-terms-and-conditions-wrapper {
	color: #888;
	font-size: 12px;
	line-height: 17px;
}

/* 5. Chi tiết thanh toán. */
.mitomo-w66-ct__t {
	width: 100%;
	margin: 0;
	border: 0;
}

.mitomo-w66-ct__t th,
.mitomo-w66-ct__t td {
	padding: 4px 0;
	border: 0;
	color: #555;
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.mitomo-w66-ct__t td {
	text-align: right;
}

.mitomo-w66-ct__t th small {
	color: #888;
	font-size: 12px;
}

.mitomo-w66-ct__giam td {
	color: var(--w46-do, #c40025);
}

.mitomo-w66-ct__tong th,
.mitomo-w66-ct__tong td {
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
	color: #222;
	font-size: 16px;
	font-weight: 700;
}

.mitomo-w66-ct__tong td,
.mitomo-w66-ct__tong td strong {
	color: var(--w46-do, #c40025);
	font-size: 18px;
}

/* Khung voucher (trượt từ dưới lên trên điện thoại, giữa màn hình trên máy tính). */
.mitomo-w66-sheet[hidden] {
	display: none;
}

.mitomo-w66-sheet {
	position: fixed;
	inset: 0;
	z-index: 99990;
}

html.mitomo-w66-mo,
html.mitomo-w66-mo body {
	overflow: hidden;
}

.mitomo-w66-sheet__nen {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.2s;
}

.mitomo-w66-sheet__hop {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	max-height: 85vh;
	max-height: 85dvh;
	border-radius: 12px 12px 0 0;
	background: #fff;
	transform: translateY(100%);
	transition: transform 0.2s ease-out;
}

.mitomo-w66-sheet.is-mo .mitomo-w66-sheet__nen {
	opacity: 1;
}

.mitomo-w66-sheet.is-mo .mitomo-w66-sheet__hop {
	transform: translateY(0);
}

@media (min-width: 850px) {
	.mitomo-w66-sheet__hop {
		top: 50%;
		right: auto;
		bottom: auto;
		left: 50%;
		width: 480px;
		max-height: 80vh;
		border-radius: 10px;
		opacity: 0;
		transform: translate(-50%, -46%);
	}

	.mitomo-w66-sheet.is-mo .mitomo-w66-sheet__hop {
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}

.mitomo-w66-sheet__dau {
	position: relative;
	padding: 14px 48px 10px 16px;
	border-bottom: 1px solid #f0f0f0;
}

.mitomo-w66-sheet__dau h2 {
	margin: 0;
	font-size: 16px;
	text-transform: none;
}

.mitomo-w66-sheet__x {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #555;
	font-size: 28px;
	line-height: 36px;
	cursor: pointer;
}

.mitomo-w66-sheet__nhap {
	display: flex;
	gap: 8px;
	padding: 12px 16px 4px;
}

.mitomo-w66-sheet__nhap input {
	flex: 1 1 auto;
	height: 40px;
	margin: 0;
	text-transform: uppercase;
}

.mitomo-w66-sheet__nhap .button {
	height: 40px;
	min-height: 0;
	margin: 0;
	line-height: 40px;
}

.mitomo-w66-sheet__tb {
	padding: 0 16px;
	color: #00a046;
	font-size: 13px;
}

.mitomo-w66-sheet__tb.is-loi {
	color: var(--w46-do, #c40025);
}

.mitomo-w66-sheet__than {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 8px 16px;
}

.mitomo-w66-ma {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	padding: 10px;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
}

.mitomo-w66-ma.is-dang {
	border-color: var(--w46-do, #c40025);
	background: #fff6f7;
}

.mitomo-w66-ma.is-chua {
	opacity: 0.7;
}

.mitomo-w66-ma__nhan {
	flex: 0 0 56px;
	padding: 10px 0;
	border-radius: 6px;
	background: var(--w46-do, #c40025);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.mitomo-w66-ma__tt {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	line-height: 18px;
}

.mitomo-w66-ma__tt b {
	display: block;
	font-size: 14px;
}

.mitomo-w66-ma__tt > span {
	display: block;
	color: #555;
}

.mitomo-w66-ma__tt .mitomo-w66-ma__tot {
	display: inline-block;
	margin-left: 4px;
	padding: 0 6px;
	border-radius: 3px;
	background: #ff5722;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 17px;
	vertical-align: 1px;
}

.mitomo-w66-ma__tt i {
	display: block;
	color: #00a046;
	font-size: 12px;
	font-style: normal;
}

.mitomo-w66-ma.is-dang {
	box-shadow: 0 2px 8px rgba(196, 0, 37, 0.18);
}

.mitomo-w72-bao {
	margin: -4px 0 6px;
	color: #00a046;
	font-size: 12px;
	line-height: 16px;
	text-align: right;
}

.mitomo-w72-bao.is-canh {
	color: var(--w46-do, #c40025);
	text-align: left;
}

.mitomo-w66-ma__tt em {
	display: block;
	color: #c40025;
	font-size: 12px;
	font-style: normal;
}

.mitomo-w66-ma__nut {
	flex: 0 0 auto;
	min-height: 0;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid var(--w46-xanh, #0074bf);
	border-radius: 4px;
	background: var(--w46-xanh, #0074bf);
	color: #fff;
	font-size: 13px;
	line-height: 18px;
	text-transform: none;
}

.mitomo-w66-ma__nut.is-bo {
	background: #fff;
	color: var(--w46-xanh, #0074bf);
}

.mitomo-w66-ma__nut[disabled] {
	border-color: #ccc;
	background: #ccc;
	cursor: not-allowed;
}

.mitomo-w66-sheet__chan {
	padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid #f0f0f0;
}

.mitomo-w66-sheet__chan .button {
	width: 100%;
	margin: 0;
}

/* Điện thoại: nút đặt hàng là thanh dính đáy W-63 (bấm #place_order thật) → ẩn nút trong khối. */
@media (max-width: 849px) {
	body.mitomo-w66 .page-checkout {
		padding-right: 10px;
		padding-left: 10px;
	}

	.mitomo-w66-form .mitomo-w66-o {
		padding: 12px;
	}

	body.mitomo-w63-co-tt .mitomo-w66-dat #place_order {
		display: none !important;
	}

	/* GĐ 18/11: trang thanh toán điện thoại dừng ở «Chi tiết thanh toán» (như Shopee) — ẩn chân trang website,
	   nút lên đầu trang và cột nút nổi Gọi / Zalo / Messenger / Chat (khỏi che thanh đáy). Máy tính giữ chân trang
	   (thông tin công ty / MST theo quy định TMĐT); trang đặt hàng thành công không có lớp mitomo-w66 → giữ. */
	body.mitomo-w66 #footer,
	body.mitomo-w66 .footer-wrapper,
	body.mitomo-w66 .mitomo-w46-ft,
	body.mitomo-w66 .absolute-footer,
	body.mitomo-w66 #top-link,
	body.mitomo-w66 .back-to-top,
	body.mitomo-w66 .mitomo-float {
		display: none !important;
	}

	/* Bỏ khoảng trống thừa dưới «Chi tiết thanh toán» (thanh đáy đã có chỗ chừa riêng: padding-bottom của body). */
	body.mitomo-w66 form.checkout {
		margin-bottom: 0;
	}

	body.mitomo-w66 .page-checkout {
		padding-bottom: 12px;
	}
}

/* W-75: dòng nhỏ dưới giá SP (thanh toán + giỏ). */
.mitomo-w75-chua-vat {
	display: block;
	margin-top: 2px;
	color: #999;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.3;
}
