/* ==========================================================
 * Thiệp Số – giao diện mobile (theo canvas thiết kế 29/11/2026)
 * Chỉ áp dụng cho màn hình < 768px. Bản desktop không đổi.
 * ========================================================== */
/* Nút menu chỉ hiện trên điện thoại */
.tsm-menu-btn { display: none; }

@media (max-width: 767px) {
	body.tsx-body { font-size: 16px; line-height: 1.55; }
	body.tsx-body .tsx-wrap, .tsx-home .tsx-wrap { padding-left: 20px; padding-right: 20px; }

	/* Header gọn: logo + nút menu ☰; nút Đặt thiệp ghim dưới đáy */
	body.tsx-body:has(.tsx-nav a.tsx-btn) { padding-bottom: 76px; }
	.tsx-header { position: sticky; top: 0; z-index: 40; }
	.tsx-header__inner { padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; gap: 8px; }
	.tsx-logo__mark { width: 34px; height: 34px; font-size: 17px; }
	.tsx-logo__text { font-size: 24px; }
	.tsm-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; color: var(--ts-ink); cursor: pointer; }
	.tsm-menu-btn:focus-visible { outline: 3px solid #C9A46A; outline-offset: 2px; }
	.tsm-menu-btn .tsm-ico-close, .tsx-header.is-open .tsm-menu-btn .tsm-ico-open { display: none; }
	.tsx-header.is-open .tsm-menu-btn .tsm-ico-close { display: block; }
	.tsx-nav { position: absolute; left: 0; right: 0; top: 100%; height: 0; display: flex; flex-direction: column; gap: 0; padding: 0 20px; overflow: visible; font-size: 17px; align-items: stretch; text-align: left; }
	body.tsx-body .tsx-nav a:not(.tsx-btn) { display: none; }
	.tsx-header.is-open .tsx-nav { height: auto; padding: 4px 20px 16px; background: var(--ts-bg); border-bottom: 1px solid var(--ts-line); box-shadow: 0 24px 40px -24px rgba(60,20,20,.35); }
	body.tsx-body .tsx-header.is-open .tsx-nav a:not(.tsx-btn) { display: block; padding: 13px 4px; border-bottom: 1px solid #EFE6DC; }
	body.tsx-body .tsx-nav a.tsx-btn {
		position: fixed; left: 16px; right: 84px; bottom: 12px; z-index: 50;
		min-height: 52px; justify-content: center; font-size: 16px;
		box-shadow: 0 12px 28px -10px rgba(60,20,20,.55);
	}

	/* Chữ dùng chung */
	.tsx-eyebrow, .tsx-home .tsx-eyebrow { font-size: 13px; }
	.tsx-h2, .tsx-home .tsx-h2 { font-size: 30px; line-height: 1.15; }
	.tsx-lead, .tsx-home .tsx-lead { font-size: 15px; }
	.tsx-section, .tsx-home .tsx-section { padding-top: 40px; padding-bottom: 40px; }
	.tsx-band > .tsx-wrap, .tsx-home .tsx-band > .tsx-wrap { padding-top: 40px; padding-bottom: 40px; }
	.tsx-stack { gap: 22px; }
	.tsx-head--row { flex-direction: column; align-items: flex-start; gap: 6px; }

	/* Nút: rộng hết màn hình */
	.tsx-home .wp-block-buttons { flex-direction: column; gap: 10px; }
	.tsx-home .wp-block-button { width: 100%; }
	.tsx-home .wp-block-button__link { width: 100%; min-height: 50px; }

	/* Mở đầu */
	.tsx-hero, .tsx-home .tsx-hero { padding-top: 28px; padding-bottom: 36px; gap: 20px; }
	.tsx-hero__copy { gap: 16px; }
	.tsx-hero__title, .tsx-home .tsx-hero__title { font-size: 34px; line-height: 1.12; }
	.tsx-hero .tsx-lead, .tsx-home .tsx-hero .tsx-lead { font-size: 16px; }
	.tsx-checks, .tsx-home .tsx-checks { flex-direction: column; gap: 6px; margin-top: 4px; }
	.tsx-hero__art { padding: 0; height: 440px; }
	.tsx-hero__blob { width: 300px; height: 300px; }
	.tsx-phone { width: 210px; height: 428px; border-radius: 32px; padding: 9px; }
	.tsx-phone__screen { border-radius: 25px; }
	.tsx-phone__frame { inset: 10px; border-radius: 18px; }
	.tsx-phone__seal { width: 62px; height: 62px; font-size: 32px; }
	.tsx-phone__eyebrow { margin-top: 16px !important; font-size: 9px; letter-spacing: 3px; }
	.tsx-phone__names { font-size: 34px; }
	.tsx-phone__date { font-size: 12px; }
	.tsx-phone__to { margin-top: 18px !important; font-size: 10px; }
	.tsx-phone__guest { font-size: 18px; margin-bottom: 18px !important; }
	.tsx-phone__btn { padding: 7px 18px; font-size: 10px; letter-spacing: 2px; }
	.tsx-float--wish { left: 0; top: 60px; max-width: 150px; padding: 10px 14px; }
	.tsx-float--wish p { font-size: 15px; }
	.tsx-float--rsvp { right: 0; bottom: 36px; padding: 10px 14px; gap: 10px; }
	.tsx-float--rsvp strong { font-size: 13px; }
	.tsx-float--rsvp small { font-size: 12px; }
	.tsx-float__ok { width: 34px; height: 34px; }

	/* Mẫu thiệp ở trang chủ: trượt ngang */
	.tsx-home .ts-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 6px; scroll-padding: 0 20px; scrollbar-width: none; }
	.tsx-home .ts-grid::-webkit-scrollbar { display: none; }
	.tsx-home .ts-card { flex: none; width: 296px; scroll-snap-align: start; }
	.tsx-home .ts-card__media { aspect-ratio: 4 / 5; }
	.tsx-home .ts-card__body { padding: 16px 18px 18px; gap: 4px; }
	.tsx-home .ts-card__title { font-size: 26px; }
	.tsx-home .ts-card__price { font-size: 17px; margin-top: 2px; }
	.tsx-home .ts-card__actions { gap: 8px; padding-top: 10px; }
	.tsx-home .ts-card__actions .ts-btn { font-size: 15px; }
	.tsx-home .tsx-head--row .tsx-link { order: 9; }

	/* Tính năng: lưới 2 cột */
	.tsx-features, .tsx-home .tsx-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tsx-feature { background: #fff; border: 1px solid #EFE6DC; border-radius: 16px; padding: 16px 14px; gap: 6px; }
	.tsx-feature__ico { width: 38px; height: 38px; border-radius: 11px; }
	.tsx-home .tsx-feature__ico::before { width: 20px; height: 20px; }
	.tsx-feature h3, .tsx-home .tsx-feature h3 { font-size: 16px; line-height: 1.3; }
	.tsx-feature p, .tsx-home .tsx-feature > p { font-size: 12px; line-height: 1.5; }

	/* Quản lý khách mời: bảng thành danh sách */
	.tsx-split { gap: 20px; }
	.tsx-mock { padding: 18px; gap: 14px; border-radius: 20px; }
	.tsx-mock__name { font-size: 24px; }
	.tsx-mock__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.tsx-mock__stats > div { padding: 10px 12px; border-radius: 12px; }
	.tsx-mock__stats strong { font-size: 22px; line-height: 1.2; }
	.tsx-mock__stats span { font-size: 13px; }
	.tsx-mock__row { min-width: 0; grid-template-columns: 1fr auto; grid-template-areas: "ten tl" "nhom tl"; row-gap: 0; padding: 10px 0; }
	.tsx-mock__row--head { display: none; }
	.tsx-mock__row > strong { grid-area: ten; font-size: 15px; }
	.tsx-mock__row > span { grid-area: nhom; font-size: 13px; color: var(--ts-muted); }
	.tsx-mock__row > em { grid-area: tl; align-self: center; font-size: 13px; }

	/* Quy trình: dòng thời gian dọc */
	.tsx-steps, .tsx-home .tsx-steps { display: flex; flex-direction: column; gap: 0; }
	.tsx-steps li, .tsx-home .tsx-step { position: relative; border-top: 0; padding: 0 0 22px 56px; gap: 2px; min-height: 62px; }
	.tsx-home .tsx-step::after, .tsx-steps li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: #E3D3C4; }
	.tsx-home .tsx-step:last-child::after, .tsx-steps li:last-child::after { display: none; }
	.tsx-steps__n, .tsx-home .tsx-steps .tsx-steps__n { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ts-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
	.tsx-steps h3, .tsx-home .tsx-step h3 { font-size: 17px; margin-top: 6px; }
	.tsx-steps p, .tsx-home .tsx-step > p:last-child { font-size: 15px; }

	/* Bảng giá */
	.tsx-price { padding: 22px; gap: 14px; border-radius: 20px; }
	.tsx-price__top h3, .tsx-home .tsx-price__top h3 { font-size: 16px; }
	.tsx-price__num, .tsx-home .tsx-price__num { font-size: 40px; }
	.tsx-home .tsx-price .wp-block-buttons { gap: 10px; }

	/* Hỏi đáp */
	.tsx-faq, .tsx-home .tsx-faq { padding-left: 20px; padding-right: 20px; gap: 16px; }
	.tsx-faq .tsx-center { text-align: left; }
	.tsx-faq details, .tsx-home .tsx-faq__list .wp-block-details { padding: 14px 0; }
	.tsx-faq summary, .tsx-home .tsx-faq__list summary { font-size: 16px; line-height: 1.4; }
	.tsx-faq details p, .tsx-home .tsx-faq__list details > p { font-size: 15px; margin-top: 8px; }

	/* Kêu gọi + chân trang */
	.tsx-cta__inner { padding-top: 44px; padding-bottom: 44px; gap: 18px; }
	.tsx-cta p, .tsx-home .tsx-cta__text p { font-size: 15px; }
	.tsx-footer__inner { padding-top: 32px; padding-bottom: 32px; flex-direction: column; gap: 16px; }
	.tsx-footer__name { font-size: 24px; }
	.tsx-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
	.tsx-footer__nav a { padding: 8px 0; }

	/* Trang Mẫu thiệp */
	.tsx-pagehead { padding-top: 28px; padding-bottom: 8px; text-align: left; align-items: flex-start; gap: 8px; }
	.tsx-pagehead h1 { font-size: 34px; line-height: 1.12; }
	.tsx-pagehead p { font-size: 16px; }
	.tsx-pagebody { padding-top: 12px; padding-bottom: 40px; }
	.ts-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 8px; margin: 0 -20px 20px; padding: 2px 20px 4px; scrollbar-width: none; }
	.ts-chips::-webkit-scrollbar { display: none; }
	.ts-chip { flex: none; padding: 0 18px; height: 44px; white-space: nowrap; }
	.ts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ts-card { border-radius: 16px; }
	.ts-card:hover { transform: none; }
	.ts-card__hover { display: none; }
	.ts-card__body { padding: 12px 12px 14px; gap: 2px; }
	.ts-card__tags { font-size: 12px; }
	.ts-card__title { font-size: 23px; }
	.ts-card__desc { font-size: 13px; line-height: 1.45; }
	.ts-card__price { font-size: 16px; margin-top: 4px; }
	.ts-card__price del { font-size: 12px; }
	.ts-card__actions { flex-direction: column; gap: 8px; padding-top: 10px; }
	.ts-card__actions .ts-btn { padding: 0; height: 44px; font-size: 14px; }

	/* Trang Đặt thiệp */
	.ts-order-layout { flex-direction: column; gap: 18px; }
	.ts-order-aside { display: contents; }
	.ts-order-pick { order: -1; }
	.ts-order { order: 0; }
	.ts-order-next, .ts-order-help { order: 1; }
	.ts-order-pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; }
	.ts-order-pick img { width: 72px; height: 96px; aspect-ratio: auto; border-radius: 10px; flex: none; }
	.ts-order-pick__body { padding: 0; flex: 1; }
	.ts-order-pick__body strong { font-size: 22px; }
	.ts-order-next { padding: 16px 18px; border-radius: 16px; }
	.ts-order-next ol { font-size: 15px; }
	.ts-order-help { padding: 14px 16px; border-radius: 16px; }
	.ts-order { gap: 18px; }
	.ts-order fieldset { padding: 20px 16px 4px; border-radius: 16px; }
	.ts-order label { font-size: 15px; }
	.ts-row { grid-template-columns: 1fr; }
	.ts-order input:not([type=file]), .ts-order select { height: 52px; padding: 0 14px; }
	.ts-order textarea { padding: 12px 14px; }
	.ts-btn--lg { min-height: 54px; font-size: 17px; }
}
