/* Cập nhật 13/10 lần 3 — menu Liên hệ, chân trang và nút nhanh bản máy tính. */
.contact-menu .contact-menu-panel{width:min(395px,calc(100vw - 28px))}
.contact-menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 13px}
.contact-menu-actions a{display:flex;align-items:center;justify-content:center;min-height:39px;padding:8px 9px;border:1px solid #ead8df;border-radius:10px;background:#f9f0f3;color:#7d3d55;font-weight:750;font-size:12px;line-height:1.3;text-align:center}
.contact-menu-actions a:first-child{grid-column:1/-1;background:#23364b;color:#fff;border-color:#23364b}
.contact-menu-actions a:hover{background:#f0d9e1}
.contact-menu-actions a:first-child:hover{background:#344a62}
.contact-menu .branch-in-contact{margin:9px 0!important;border-color:#ebcbd5!important;background:#fff9fb!important}
.contact-menu .branch-in-contact>summary{padding:13px 34px 13px 13px;font-size:13px}
.contact-branch-inner{padding:0 11px 11px;border-top:1px solid #f0e2e7}
.contact-branch-inner>.branch-menu-label{font-size:11px;margin:12px 0 8px}
.contact-branch-inner .branch-area{margin:8px 0!important}
.contact-menu-panel a:focus-visible{outline:3px solid #a5556c;outline-offset:2px}
/* Desktop nội dung sâu: hai nút liên hệ và nút lên đầu trang giống trang chủ. */
@media(min-width:951px){
 body:not(.home-page):not(.admin-page) .floating-contact{display:none!important}
 body:not(.home-page):not(.admin-page) .home-direct-contact{position:fixed;right:18px;left:auto;bottom:88px;z-index:60;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
 body:not(.home-page):not(.admin-page) .home-direct-contact a{position:relative;display:grid;place-items:center;width:48px;height:48px;padding:0;border-radius:50%;color:#fff;line-height:1;box-shadow:0 6px 18px rgba(36,54,75,.18);transition:transform .18s ease,box-shadow .18s ease}
 body:not(.home-page):not(.admin-page) .home-direct-zalo{background:#0867d8}
 body:not(.home-page):not(.admin-page) .home-direct-phone{background:var(--rose-dark,#b86f82)}
 body:not(.home-page):not(.admin-page) .direct-contact-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(255,255,255,.6);border-radius:50%;background:rgba(255,255,255,.08)}
 body:not(.home-page):not(.admin-page) .direct-contact-icon svg{width:23px;height:23px}
 body:not(.home-page):not(.admin-page) .direct-zalo-icon{font-size:13px;font-weight:800}
 body:not(.home-page):not(.admin-page) .home-direct-contact a:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(36,54,75,.24)}
 body:not(.home-page):not(.admin-page) .home-direct-contact a:focus-visible{outline:3px solid var(--navy);outline-offset:4px}
 body:not(.home-page):not(.admin-page) .home-direct-contact .direct-contact-label,body:not(.home-page):not(.admin-page) .back-to-top>span:last-child{position:absolute;right:calc(100% + 10px);top:50%;display:block;width:max-content;max-width:calc(100vw - 100px);padding:9px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--navy);font-size:13px;font-weight:650;line-height:1.4;white-space:nowrap;box-shadow:0 5px 18px rgba(36,54,75,.12);opacity:0;visibility:hidden;pointer-events:none;transform:translate(4px,-50%);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
 body:not(.home-page):not(.admin-page) .home-direct-contact a:hover .direct-contact-label,body:not(.home-page):not(.admin-page) .home-direct-contact a:focus-visible .direct-contact-label,body:not(.home-page):not(.admin-page) .back-to-top:hover>span:last-child,body:not(.home-page):not(.admin-page) .back-to-top:focus-visible>span:last-child{opacity:1;visibility:visible;transform:translate(0,-50%)}
 body:not(.home-page):not(.admin-page) .back-to-top{right:18px;bottom:22px;width:48px;height:48px;padding:0;justify-content:center;border-radius:50%}
 body:not(.home-page):not(.admin-page) .back-to-top>span:first-child{font-size:22px;line-height:1}
 /* Giữ khoảng trống lề bên phải để nút không phủ nội dung ở laptop. */
 body:not(.home-page):not(.admin-page) main{padding-right:64px}
}
@media(max-width:950px){
 .contact-menu .contact-menu-panel{width:100%;max-height:min(49vh,460px)}
 .contact-menu-actions{grid-template-columns:1fr 1fr}
 .contact-branch-inner{padding:0 8px 9px}
 /* Giữ nguyên ba nút mobile của lần 2; chỉ thay đổi menu. */
 body:not(.home-page):not(.admin-page) .home-direct-contact{display:none!important}
}
@media(prefers-reduced-motion:reduce){body:not(.home-page):not(.admin-page) .home-direct-contact a{transition:none}}
