/* ==========================================================================
   TBS Layout – Header & Footer
   ========================================================================== */
:root {
	--l-primary: #0c486b;
	--l-primary-700: #072f47;
	--l-primary-50: #eef5f9;
	--l-accent: #b30909;
	--l-zalo: #0068ff;
	--l-ink: #13202c;
	--l-text: #3d4a57;
	--l-muted: #566370;
	--l-line: #e3e8ee;
	--l-bg: #f4f7fa;
	--l-top-h: 38px;
	--l-main-h: 84px;
	--l-nav-h: 50px;
	/* Chiều cao phần header còn hiển thị khi dính (dùng cho các phần tử sticky khác) */
	--tbs-hd-h: var(--l-nav-h);
}
.tbs-layout .tbs-hd *, .tbs-layout .tbs-ft *, .tbs-drawer *, .tbs-bnav * { box-sizing: border-box; }
.tbs-hd a, .tbs-ft a, .tbs-drawer a, .tbs-bnav a { text-decoration: none; }
.tbs-hd .tbs-ico, .tbs-ft .tbs-ico, .tbs-drawer .tbs-ico, .tbs-bnav .tbs-ico { flex: none; display: inline-block; vertical-align: middle; }
.tbs-hd button, .tbs-ft button, .tbs-drawer button, .tbs-bnav button, .tbs-totop, .tbs-csheet button, .tbs-cdock button {
	margin: 0; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; text-shadow: none;
	font: inherit; color: inherit; line-height: inherit; letter-spacing: 0; text-transform: none; cursor: pointer; border-radius: 0;
}
.tbs-hd__wrap { max-width: 1300px; margin: 0 auto; padding: 0 15px; }
.tbs-ico--zalo { color: var(--l-zalo); }

/* ---------- Header ---------- */
.tbs-hd {
	position: sticky; top: calc(-1 * (var(--l-top-h) + var(--l-main-h))); z-index: 990;
	background: #fff; transition: box-shadow .25s;
}
.admin-bar .tbs-hd { top: calc(32px - var(--l-top-h) - var(--l-main-h)); }
.tbs-hd.is-stuck { box-shadow: 0 6px 24px rgba(16, 40, 60, .12); }

/* Topbar */
.tbs-hd__top { height: var(--l-top-h); background: var(--l-primary-700); color: #b9d0de; font-size: 13px; }
.tbs-hd__top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.tbs-hd__top ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.tbs-hd__top li { display: flex; align-items: center; gap: 7px; margin: 0; white-space: nowrap; min-width: 0; }
.tbs-hd__top li span { overflow: hidden; text-overflow: ellipsis; }
.tbs-hd__top a { display: inline-flex; align-items: center; gap: 7px; color: #dbe8f1; transition: color .2s; }
.tbs-hd__top a:hover { color: #fff; }
.tbs-hd__top .tbs-ico { opacity: .8; }

/* Main */
.tbs-hd__main { height: var(--l-main-h); border-bottom: 1px solid var(--l-line); }
.tbs-hd__main-in { display: flex; align-items: center; gap: 28px; height: 100%; }
.tbs-logo { margin: 0; flex: none; line-height: 0; }
.tbs-logo a { display: inline-block; }
.tbs-hd__logo .tbs-logo__img { width: auto; height: 58px; max-width: 160px; object-fit: contain; }
.tbs-logo__text { font-weight: 800; font-size: 20px; color: var(--l-primary); line-height: 1.2; }

.tbs-hd__search { position: relative; flex: 1; display: flex; align-items: center; max-width: 560px; margin: 0; height: 48px; padding: 4px 4px 4px 16px; background: var(--l-bg); border: 1.5px solid transparent; border-radius: 999px; transition: border-color .2s, background .2s, box-shadow .2s; }
.tbs-hd__search:focus-within { background: #fff; border-color: var(--l-primary); box-shadow: 0 0 0 4px rgba(12, 72, 107, .1); }
.tbs-hd__search-ico { display: flex; color: var(--l-muted); }
.tbs-layout .tbs-hd__search input[type=search] {
	flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 10px; border: 0; background: none; box-shadow: none;
	font-size: 15px; color: var(--l-ink);
}
.tbs-layout .tbs-hd__search input[type=search]::-webkit-search-cancel-button { display: none; }
.tbs-layout .tbs-hd__search-btn { flex: none; height: 100%; padding: 0 20px; border-radius: 999px; background: var(--l-primary); color: #fff; font-weight: 700; font-size: 14.5px; transition: background .2s; }
.tbs-layout .tbs-hd__search-btn:hover { background: var(--l-primary-700); }

/* Gợi ý tìm kiếm */
.tbs-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; max-height: min(70vh, 520px); overflow-y: auto; padding: 8px; background: #fff; border: 1px solid var(--l-line); border-radius: 16px; box-shadow: 0 20px 50px rgba(16, 40, 60, .18); }
.tbs-suggest[hidden] { display: none; }
.tbs-suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--l-ink); }
.tbs-suggest__item:hover, .tbs-suggest__item.is-active { background: var(--l-bg); }
.tbs-suggest__item img, .tbs-suggest__ph { flex: none; width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--l-line); }
.tbs-suggest__item span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tbs-suggest__item strong { font-size: 14px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tbs-suggest__item mark { background: #fff3c4; color: inherit; padding: 0; }
.tbs-suggest__item em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--l-accent); }
.tbs-suggest__item em .woocommerce-Price-currencySymbol { font-size: inherit; }
.tbs-suggest__msg { padding: 14px 12px; font-size: 14px; color: var(--l-muted); }
.tbs-suggest__all { display: block; margin-top: 4px; padding: 10px 12px; border-radius: 10px; text-align: center; font-weight: 700; font-size: 14px; color: var(--l-primary); background: var(--l-primary-50); }

/* Actions */
.tbs-hd__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tbs-hd__hotline { display: flex; align-items: center; gap: 10px; padding-right: 6px; color: var(--l-ink); }
.tbs-hd__hotline-ico { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--l-primary-50); color: var(--l-primary); }
.tbs-hd__hotline-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--l-primary); opacity: 0; animation: tbs-ring 2.4s ease-out infinite; }
@keyframes tbs-ring { 0% { transform: scale(.9); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }
.tbs-hd__hotline span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.tbs-hd__hotline small { font-size: 12px; color: var(--l-muted); }
.tbs-hd__hotline strong { font-size: 17px; font-weight: 800; color: var(--l-accent); letter-spacing: .01em; }
.tbs-layout .tbs-hd__quote { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; background: linear-gradient(180deg, #cc1717, var(--l-accent)); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 8px 18px rgba(179, 9, 9, .25); transition: transform .15s, box-shadow .2s; white-space: nowrap; }
.tbs-layout .tbs-hd__quote:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(179, 9, 9, .32); }
.tbs-layout .tbs-hd__icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--l-ink); transition: background .2s; }
.tbs-layout .tbs-hd__icon:hover { background: var(--l-bg); color: var(--l-primary); }
.tbs-hd__burger, .tbs-hd__search-toggle { display: none !important; }
.tbs-cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--l-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; border: 2px solid #fff; }
.tbs-cart-count[hidden] { display: none; }

/* Nav */
.tbs-hd__nav { height: var(--l-nav-h); background: var(--l-primary); }
.tbs-hd__nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.tbs-menu { display: flex; align-items: center; gap: 2px; height: 100%; margin: 0; padding: 0; list-style: none; }
.tbs-menu > li { position: relative; display: flex; align-items: center; height: 100%; margin: 0; }
.tbs-menu > li > a { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; color: #e2edf4; font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.tbs-menu > li > a:hover, .tbs-menu > li:focus-within > a { background: rgba(255, 255, 255, .1); color: #fff; }
.tbs-menu > li.current-menu-item > a, .tbs-menu > li.current-menu-ancestor > a, .tbs-menu > li.current-menu-parent > a { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 -2px 0 #ff6b6b; }
.tbs-menu > li.menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7; }
.tbs-menu .sub-menu {
	position: absolute; left: 0; top: calc(100% - 4px); z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 2px;
	min-width: 460px; margin: 0; padding: 10px; list-style: none; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(16, 40, 60, .2);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.tbs-menu .sub-menu::before { content: ""; position: absolute; left: 24px; top: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.tbs-menu > li:hover > .sub-menu, .tbs-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tbs-menu .sub-menu li { margin: 0; }
.tbs-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--l-ink); font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s; }
.tbs-menu .sub-menu a:hover { background: var(--l-primary-50); color: var(--l-primary); }
.tbs-hd__nav-call { display: inline-flex; align-items: center; gap: 7px; color: #b9d0de; font-size: 13.5px; white-space: nowrap; }
.tbs-hd__nav-call strong { color: #fff; }
.tbs-hd__nav-call:hover strong { text-decoration: underline; }

/* ---------- Drawer (mobile) ---------- */
.tbs-drawer { position: fixed; inset: 0; z-index: 100001; visibility: hidden; pointer-events: none; }
.tbs-drawer.is-open { visibility: visible; pointer-events: auto; }
.tbs-drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 22, 34, .55); opacity: 0; transition: opacity .3s; }
.tbs-drawer.is-open .tbs-drawer__backdrop { opacity: 1; }
.tbs-drawer__panel { position: absolute; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; width: min(360px, 88vw); background: #fff; transform: translateX(-102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 20px 0 60px rgba(0, 0, 0, .2); }
.tbs-drawer.is-open .tbs-drawer__panel { transform: none; }
.tbs-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--l-line); }
.tbs-drawer__logo .tbs-logo__img { height: 44px; width: auto; }
.tbs-drawer__body { flex: 1; overflow-y: auto; padding: 14px 16px 20px; overscroll-behavior: contain; }
.tbs-drawer__search { position: relative; margin: 0 0 16px; }
.tbs-layout .tbs-drawer__search input[type=search] { width: 100%; height: 46px; margin: 0; padding: 0 48px 0 16px; border: 1px solid var(--l-line); border-radius: 999px; background: var(--l-bg); box-shadow: none; font-size: 15px; }
.tbs-layout .tbs-drawer__search button { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--l-primary); color: #fff; }
.tbs-drawer__label { margin: 6px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--l-muted); }
.tbs-drawer__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.tbs-drawer__cats a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 12px; background: var(--l-bg); color: var(--l-ink); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.tbs-drawer__cats a span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--l-primary); }
.tbs-drawer__cats .tbs-ico { width: 18px; height: 18px; }
.tbs-mmenu, .tbs-mmenu ul { margin: 0; padding: 0; list-style: none; }
.tbs-mmenu > li { position: relative; margin: 0; border-bottom: 1px solid var(--l-line); }
.tbs-mmenu a { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 44px 0 4px; color: var(--l-ink); font-size: 15.5px; font-weight: 600; }
.tbs-mmenu .current-menu-item > a { color: var(--l-primary); }
.tbs-mmenu .sub-menu { display: none; padding: 0 0 10px 12px; }
.tbs-mmenu li.is-open > .sub-menu { display: block; }
.tbs-mmenu .sub-menu a { min-height: 42px; font-size: 14.5px; font-weight: 500; color: var(--l-text); }
.tbs-layout .tbs-mmenu__toggle { position: absolute; right: 0; top: 5px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--l-muted); }
.tbs-mmenu__toggle .tbs-ico { transition: transform .2s; }
.tbs-mmenu li.is-open > .tbs-mmenu__toggle .tbs-ico { transform: rotate(180deg); }
.tbs-drawer__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--l-line); background: #fff; }
.tbs-layout .tbs-drawer__btn { display: flex; align-items: center; justify-content: center; gap: 7px; height: 46px; border-radius: 12px; background: var(--l-bg); color: var(--l-ink); font-weight: 700; font-size: 14.5px; }
.tbs-layout .tbs-drawer__btn.is-zalo { background: #eef5ff; color: var(--l-zalo); }
.tbs-layout .tbs-drawer__btn.is-primary { grid-column: 1 / -1; background: var(--l-accent); color: #fff; }
html.tbs-drawer-lock { overflow: hidden; }

/* Footer luôn nằm cuối màn hình với trang ngắn */
.tbs-layout #wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.tbs-layout #main { flex: 1 0 auto; }

/* ---------- Footer ---------- */
.tbs-ft { color: #a9c0cf; background: #061c2b; font-size: 15px; line-height: 1.65; }
.tbs-ft__trust { background: var(--l-primary); }
.tbs-ft__trust-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.tbs-ft__trust-in > div { display: flex; align-items: center; gap: 14px; padding: 22px 18px; }
.tbs-ft__trust-in > div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.tbs-ft__trust-in span { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; }
.tbs-ft__trust-in p { margin: 0; display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.4; color: #b9d0de; }
.tbs-ft__trust-in strong { font-size: 15.5px; color: #fff; }

.tbs-ft__main { padding: 56px 0 40px; background: radial-gradient(800px 300px at 100% 0, rgba(12, 72, 107, .45), transparent 70%), #061c2b; }
.tbs-ft__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.3fr; gap: 40px; }
.tbs-ft__logo { display: inline-block; padding: 10px 14px; margin-bottom: 14px; border-radius: 14px; background: #fff; }
.tbs-ft__logo .tbs-logo__img { height: 52px; width: auto; }
.tbs-ft__name { margin: 0 0 8px; font-weight: 700; color: #fff; font-size: 15.5px; }
.tbs-ft__about { margin: 0 0 18px; font-size: 14.5px; }
.tbs-ft__social { display: flex; gap: 10px; }
.tbs-ft__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, transform .2s; }
.tbs-ft__social a:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.tbs-ft__social .tbs-ico--zalo { color: #fff; }
.tbs-ft__social .tbs-ico--zalo path { fill: var(--l-zalo); }
.tbs-ft h2 { margin: 0 0 16px; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.tbs-ft__col summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: default; }
.tbs-ft__col summary::-webkit-details-marker { display: none; }
.tbs-ft__col summary .tbs-ico { display: none; }
.tbs-ft ul { margin: 0; padding: 0; list-style: none; }
.tbs-ft__col li { margin: 0 0 9px; }
.tbs-ft__col a { color: #a9c0cf; font-size: 14.5px; transition: color .2s, padding .2s; }
.tbs-ft__col a:hover { color: #fff; padding-left: 4px; }
.tbs-ft__col a.is-more { color: #7fc1ea; font-weight: 600; }
.tbs-ft__contact li { display: flex; gap: 12px; margin: 0 0 14px; font-size: 14.5px; }
.tbs-ft__contact li .tbs-ico { margin-top: 2px; color: #7fc1ea; }
.tbs-ft__contact a { color: #fff; font-weight: 600; }
.tbs-ft__contact a:hover { text-decoration: underline; }
.tbs-ft__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tbs-layout .tbs-ft__btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-weight: 700; font-size: 14px; transition: background .2s; }
.tbs-layout .tbs-ft__btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tbs-layout .tbs-ft__btn.is-primary { background: var(--l-accent); border-color: var(--l-accent); }
.tbs-layout .tbs-ft__btn.is-primary:hover { background: #960606; }
.tbs-ft__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; color: #7f97a7; }
.tbs-ft__bottom-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 16px; padding-bottom: 16px; }
.tbs-ft__bottom p { margin: 0; display: flex; gap: 10px; }
.tbs-ft__bottom a { color: #a9c0cf; }
.tbs-ft__bottom a:hover { color: #fff; }

.tbs-layout .tbs-totop { position: fixed; right: 20px; bottom: 24px; z-index: 980; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--l-primary); color: #fff; box-shadow: 0 10px 24px rgba(12, 72, 107, .35); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.tbs-totop.is-show { opacity: 1; transform: none; }
.tbs-totop[hidden] { display: none; }

/* ---------- Bottom nav (mobile) ---------- */
.tbs-bnav { display: none; }

/* Ẩn phần tử header/footer cũ của Flatsome nếu plugin khác chèn */
.tbs-layout .header-wrapper, .tbs-layout #main-menu.mobile-sidebar ~ .mfp-bg { display: none; }
.tbs-layout .back-to-top { display: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.tbs-hd__nav-call { display: none; }
	.tbs-hd__hotline small { display: none; }
	.tbs-menu > li > a { padding: 0 10px; font-size: 14px; }
	.tbs-ft__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
	:root { --l-main-h: 62px; --tbs-hd-h: 62px; }
	.tbs-hd { top: 0; }
	.admin-bar .tbs-hd { top: 0; }
	.tbs-hd__top, .tbs-hd__nav, .tbs-hd__hotline, .tbs-hd__quote { display: none !important; }
	.tbs-hd__main { border-bottom: 0; box-shadow: 0 1px 0 var(--l-line); }
	.tbs-hd__main-in { gap: 6px; padding: 0 8px; }
	.tbs-hd__burger, .tbs-hd__search-toggle { display: grid !important; }
	.tbs-hd__logo { flex: 1; text-align: center; }
	.tbs-hd__logo .tbs-logo__img { height: 44px; }
	.tbs-hd__actions { margin-left: 0; gap: 2px; }
	/* Tìm kiếm trượt xuống */
	.tbs-hd__search {
		position: absolute; left: 10px; right: 10px; top: calc(100% + 8px); max-width: none; height: 52px;
		background: #fff; border-color: var(--l-line); box-shadow: 0 14px 40px rgba(16, 40, 60, .18);
		opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s;
	}
	.tbs-hd.is-search .tbs-hd__search { opacity: 1; visibility: visible; transform: none; }
	.tbs-layout .tbs-hd__search-btn { padding: 0 16px; }
	.tbs-hd__main-in { position: relative; }

	.tbs-ft__trust-in { grid-template-columns: repeat(2, 1fr); }
	.tbs-ft__trust-in > div:nth-child(3) { border-left: 0; }
	.tbs-ft__trust-in > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }

	/* Bottom nav */
	.tbs-bnav {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9995;
		display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
		border-top: 1px solid var(--l-line); box-shadow: 0 -8px 24px rgba(16, 40, 60, .08);
	}
	.tbs-layout .tbs-bnav__item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-height: 50px; padding: 2px 0; color: var(--l-muted); font-size: 11.5px; font-weight: 600; line-height: 1.2; }
	.tbs-bnav__item.is-active { color: var(--l-primary); }
	.tbs-bnav__item.is-zalo span:last-child { color: #0052cc; }
	.tbs-bnav__item.is-call { color: #0b7442; }
	.tbs-bnav__ring { position: relative; display: grid; place-items: center; }
	.tbs-bnav__ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #12965a; opacity: 0; animation: tbs-ring 2s ease-out infinite; }
	.tbs-bnav__item.is-main { color: var(--l-accent); }
	.tbs-bnav__fab { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: linear-gradient(180deg, #d41a1a, var(--l-accent)); color: #fff; box-shadow: 0 8px 20px rgba(179, 9, 9, .4), 0 0 0 4px #fff; }
	body.tbs-has-bnav { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.tbs-layout .tbs-totop { bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; width: 42px; height: 42px; }
	/* Ẩn nút liên hệ nổi của plugin trên mobile – đã có thanh điều hướng đáy */
	.tbs-has-bnav #button-contact-vr, .tbs-has-bnav .ws247-aio-container-wpshare247, .tbs-has-bnav #ft-contact-icons, .tbs-has-bnav #ft-contact-icons-out-m { display: none !important; }
}
@media (max-width: 767px) {
	.tbs-ft__main { padding: 36px 0 20px; }
	.tbs-ft__grid { grid-template-columns: 1fr; gap: 0; }
	.tbs-ft__brand { padding-bottom: 22px; }
	.tbs-ft__col { border-top: 1px solid rgba(255, 255, 255, .1); }
	.tbs-ft__col summary { cursor: pointer; padding: 16px 0; }
	.tbs-ft__col summary h2 { margin: 0; }
	.tbs-ft__col summary .tbs-ico { display: block; color: #7fc1ea; transition: transform .2s; }
	.tbs-ft__col[open] summary .tbs-ico { transform: rotate(180deg); }
	.tbs-ft__col ul { padding-bottom: 14px; columns: 2; column-gap: 16px; }
	.tbs-ft__col li { break-inside: avoid; }
	.tbs-ft__contact { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
	.tbs-ft__trust-in > div { flex-direction: column; justify-content: center; text-align: center; padding: 16px 8px; gap: 8px; }
	.tbs-ft__trust-in p { align-items: center; }
	.tbs-ft__trust-in span { width: 40px; height: 40px; }
	.tbs-ft__trust-in strong { font-size: 14px; }
	.tbs-ft__trust-in p { font-size: 12.5px; }
	.tbs-ft__bottom-in { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.tbs-hd *, .tbs-bnav *, .tbs-drawer * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   CTA liên hệ – dock nổi (desktop) + bảng chọn Gọi/Zalo
   ========================================================================== */
/* Ẩn nút liên hệ nổi của các plugin (đã thay bằng dock/thanh đáy mới) */
.tbs-layout #button-contact-vr, .tbs-layout .ws247-aio-container-wpshare247, .tbs-layout #ft-contact-icons { display: none !important; }

.tbs-cdock { position: fixed; right: 20px; bottom: 24px; z-index: 985; display: flex; flex-direction: column; gap: 12px; }
.tbs-layout .tbs-cdock__btn {
	position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	color: #fff; box-shadow: 0 10px 24px rgba(16, 40, 60, .25); transition: transform .2s, box-shadow .2s;
}
.tbs-cdock__btn:hover, .tbs-cdock__btn:focus-visible { transform: scale(1.06); box-shadow: 0 14px 30px rgba(16, 40, 60, .32); }
.tbs-cdock__btn.is-zalo { background: #fff; }
.tbs-cdock__btn.is-zalo .tbs-ico--zalo { color: var(--l-zalo); }
.tbs-cdock__btn.is-call { background: linear-gradient(180deg, #1aae6a, #12965a); }
.tbs-cdock__btn.is-call::before, .tbs-cdock__btn.is-call::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #12965a; animation: tbs-wave 2.2s ease-out infinite; }
.tbs-cdock__btn.is-call::after { animation-delay: 1.1s; }
.tbs-cdock__btn.is-call .tbs-cdock__ico { animation: tbs-shake 2.2s ease-in-out infinite; }
@keyframes tbs-wave { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes tbs-shake { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(-14deg); } 70% { transform: rotate(14deg); } 75% { transform: rotate(-10deg); } 80% { transform: rotate(10deg); } 85% { transform: rotate(0); } }
.tbs-cdock__btn.is-quote { background: linear-gradient(180deg, #d41a1a, var(--l-accent)); }
.tbs-cdock__ico { display: grid; place-items: center; }
.tbs-cdock__tip {
	position: absolute; right: calc(100% + 12px); top: 50%; display: flex; flex-direction: column; padding: 8px 14px;
	background: #fff; color: var(--l-ink); border-radius: 12px; box-shadow: 0 10px 30px rgba(16, 40, 60, .18); white-space: nowrap; text-align: right; line-height: 1.3;
	opacity: 0; visibility: hidden; transform: translate(8px, -50%); transition: all .2s; pointer-events: none;
}
.tbs-cdock__tip::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: #fff; transform: translateY(-50%) rotate(45deg); }
.tbs-cdock__tip strong { font-size: 14.5px; }
.tbs-cdock__tip small { font-size: 12px; color: var(--l-muted); }
.tbs-cdock__btn:hover .tbs-cdock__tip, .tbs-cdock__btn:focus-visible .tbs-cdock__tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
/* Nút lên đầu trang nằm phía trên dock */
@media (min-width: 1024px) {
	.tbs-layout .tbs-totop { right: 25px; bottom: 236px; }
}

/* Bảng chọn */
.tbs-csheet { position: fixed; inset: 0; z-index: 100002; }
.tbs-csheet[hidden] { display: none; }
.tbs-csheet__backdrop { position: absolute; inset: 0; background: rgba(8, 22, 34, .45); animation: tbs-fade .2s ease; }
@keyframes tbs-fade { from { opacity: 0; } }
.tbs-csheet__panel {
	position: absolute; right: 92px; bottom: 24px; width: 430px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); overflow-y: auto;
	padding: 20px; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(8, 22, 34, .35); outline: none;
	animation: tbs-pop .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes tbs-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.tbs-csheet__grip { display: none; }
.tbs-csheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tbs-csheet__title { margin: 0; font-size: 18px; font-weight: 800; color: var(--l-ink); }
.tbs-csheet__status { display: inline-flex; align-items: center; gap: 7px; margin: 4px 0 0; font-size: 13px; color: var(--l-muted); }
.tbs-csheet__status i { width: 8px; height: 8px; border-radius: 50%; background: #b9c6d2; }
.tbs-csheet__status.is-on { color: #12965a; }
.tbs-csheet__status.is-on i { background: #12965a; box-shadow: 0 0 0 4px rgba(18, 150, 90, .18); }
.tbs-layout .tbs-csheet__close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--l-bg); color: var(--l-ink); }
.tbs-csheet__list { display: grid; gap: 10px; }
.tbs-csheet__list[hidden] { display: none; }
.tbs-csheet__item { display: flex; align-items: stretch; border: 1.5px solid var(--l-line); border-radius: 16px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.tbs-csheet__item:hover { border-color: var(--l-primary); box-shadow: 0 8px 20px rgba(16, 40, 60, .08); }
.tbs-csheet__item.is-primary { border-color: rgba(18, 150, 90, .45); background: linear-gradient(90deg, #f1fbf6, #fff 60%); }
[data-tbs-csheet-body="zalo"] .tbs-csheet__item.is-primary { border-color: rgba(0, 104, 255, .35); background: linear-gradient(90deg, #f0f6ff, #fff 60%); }
.tbs-csheet__main { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; color: var(--l-ink); }
.tbs-csheet__ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; }
.tbs-csheet__ico.is-call { background: #12965a; color: #fff; }
.tbs-csheet__ico.is-zalo { background: #eef5ff; }
.tbs-csheet__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tbs-csheet__txt strong { font-size: 15px; }
.tbs-csheet__txt small { font-size: 12.5px; color: var(--l-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbs-csheet__txt b { margin-top: 3px; font-size: 18px; font-weight: 800; letter-spacing: .02em; color: var(--l-primary); }
.tbs-csheet__go { flex: none; margin-left: auto; padding: 8px 14px; border-radius: 999px; background: #12965a; color: #fff; font-size: 13.5px; font-weight: 700; }
[data-tbs-csheet-body="zalo"] .tbs-csheet__go { background: var(--l-zalo); }
.tbs-layout .tbs-csheet__copy { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 70px; line-height: 1.2; border-left: 1px solid var(--l-line); color: var(--l-muted); font-size: 11px; font-weight: 600; }
.tbs-layout .tbs-csheet__copy:hover { background: var(--l-bg); color: var(--l-primary); }
.tbs-csheet__copy.is-done { color: #12965a; }
.tbs-csheet__hint { margin: 10px 2px 0; font-size: 12.5px; color: var(--l-muted); }
.tbs-csheet__hint[hidden] { display: none; }
.tbs-csheet__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--l-line); font-size: 13.5px; color: var(--l-muted); }
.tbs-layout .tbs-csheet__quote { display: inline-flex; align-items: center; gap: 6px; color: var(--l-accent); font-weight: 700; font-size: 14px; }
.tbs-layout .tbs-csheet__quote:hover { text-decoration: underline; }
html.tbs-csheet-lock { overflow: hidden; }

@media (max-width: 1023px) {
	.tbs-cdock { display: none; }
	.tbs-csheet__panel { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; border-radius: 22px 22px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); animation: tbs-up .28s cubic-bezier(.2, .8, .2, 1); }
	@keyframes tbs-up { from { transform: translateY(100%); } }
	.tbs-csheet__grip { display: block; width: 42px; height: 5px; margin: 0 auto 12px; border-radius: 999px; background: #d5dde4; }
	.tbs-csheet__copy { display: none !important; }
	.tbs-csheet__hint { display: none !important; }
	.tbs-csheet__main { padding: 14px; }
	.tbs-csheet__go { padding: 10px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.tbs-cdock *, .tbs-cdock *::before, .tbs-cdock *::after, .tbs-csheet * { animation: none !important; }
}
