/* Nút chia sẻ nổi (vnh_share.py, templates/vnh/share_bar.html, 2026-11-16) — nút tròn trắng, biểu tượng màu thương hiệu, di chuột thì đổ màu.
   Mọi màn hình (anh Hai 2026-11-16): chỉ hiện 1 nút share tròn hồng ở góc dưới trái (trên nút Subscribe); bấm mới mở 1 cột dọc nền trong suốt ngay
   phía trên, thẳng hàng với nút (để khách không nhầm là link mạng xã hội của công ty như ở footer).
   Luôn bên trái, kể cả RTL: widget LiveChat không đảo chiều (luôn góc phải); trang RTL thì Subscribe sang phải nên bên trái trống. */
.vsh[hidden] {display: none !important;}             /* share.js bỏ hidden khi CSS này đã áp dụng (không nháy / CLS) */
.vsh {position: fixed; z-index: 1035; inset-inline-start: 18px; bottom: 54px; font-size: 0; line-height: 0;}
[dir="rtl"] .vsh {direction: ltr;}
[dir="rtl"] .vsh-toast {direction: rtl;}
.vsh ul, .vsh li {list-style: none; margin: 0; padding: 0;}
.vsh li[hidden] {display: none !important;}
.vsh-fab {
  position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: #ee3c96; color: #ffffff; font-size: 18px; line-height: 1; box-shadow: 0 3px 10px rgba(0, 0, 0, .22); cursor: pointer; transition: transform .2s;
}
.vsh-fab:hover {transform: scale(1.06);}
.vsh-fab:focus-visible {outline: 2px solid #ee3c96; outline-offset: 3px;}
.vsh-fab .bi-x-lg, .vsh.open .vsh-fab .bi-share-fill {display: none;}
.vsh.open .vsh-fab .bi-x-lg {display: block;}
/* cột mở ra: cùng trục dọc với nút share (nút 44px = nút share 44px; padding 14px chừa chỗ cho bóng, -14px bù lại) */
.vsh .vsh-list {
  position: absolute; bottom: 42px; inset-inline-start: -14px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px;
  max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  background: transparent; visibility: hidden; pointer-events: none;
}
.vsh-list::-webkit-scrollbar {display: none;}
.vsh-list li {opacity: 0; transform: translateY(12px) scale(.8); transition: opacity .18s, transform .18s;}
.vsh.open .vsh-list {visibility: visible; pointer-events: auto;}
.vsh.open .vsh-list li {opacity: 1; transform: none;}
.vsh.open .vsh-list li:nth-last-child(2) {transition-delay: .03s;}
.vsh.open .vsh-list li:nth-last-child(3) {transition-delay: .06s;}
.vsh.open .vsh-list li:nth-last-child(4) {transition-delay: .09s;}
.vsh.open .vsh-list li:nth-last-child(n+5) {transition-delay: .12s;}
.vsh-b {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: #ffffff; box-shadow: 0 2px 8px rgba(0, 0, 0, .28); color: var(--c, #333333);
  font-size: 19px; line-height: 1; cursor: pointer; text-decoration: none; transition: background-color .25s, color .25s, transform .25s;
}
.vsh-b:hover, .vsh-b:focus-visible {background: var(--c, #333333); color: #ffffff !important; transform: scale(1.08);}
.vsh-b:focus-visible {outline: 2px solid #ee3c96; outline-offset: 2px;}
.vsh-b i {display: block; line-height: 1;}
.vsh-b i::before {vertical-align: 0 !important;}
.vsh-toast {
  position: absolute; z-index: 2; bottom: 54px; inset-inline-start: 0; padding: 7px 12px; border-radius: 6px; background: #212121; color: #ffffff;
  font-size: 13px; line-height: 1.3; width: max-content; max-width: min(280px, calc(100vw - 40px)); white-space: normal; opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.vsh-toast.on {opacity: 1;}

/* nút chỉ cho desktop / chỉ cho điện thoại; tắt hẳn theo thiết bị trong admin */
@media (min-width: 1200px) {.vsh-dev-mobile, .vsh.vsh-no-d {display: none !important;}}
@media (max-width: 1199.98px) {.vsh-dev-desktop, .vsh.vsh-no-m {display: none !important;}}
@media print {.vsh {display: none !important;}}
@media (prefers-reduced-motion: reduce) {.vsh-fab, .vsh-b, .vsh-list, .vsh-list li {transition: none !important;}}
