.faso-social {
  position: fixed;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faso-position-left { left: 20px; }
.faso-position-right { right: 20px; }
.faso-item {
  display: flex !important;
  align-items: center;
  color: #fff !important;
  text-decoration: none !important;
}
.faso-item svg { width: 24px; height: 24px; fill: currentColor; }
.faso-style-circle .faso-item {
  width: 54px;
  height: 54px;
  justify-content: center;
  border-radius: 50%;
  background: var(--faso-primary);
  box-shadow: 0 3px 12px #0003;
  animation: faso-desktop-pulse 2s infinite;
}
.faso-style-circle .faso-item span {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 4px;
  background: #222;
  white-space: nowrap;
  transition: opacity .2s;
}
.faso-style-circle.faso-position-left .faso-item span { left: 64px; }
.faso-style-circle.faso-position-right .faso-item span { right: 64px; }
.faso-style-circle .faso-item:hover span { opacity: 1; }
.faso-style-pill .faso-item {
  min-width: 145px;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 24px;
  background: var(--faso-primary);
  box-shadow: 0 2px 8px #0002;
}
.faso-style-pill .faso-item span { font-size: 14px; }
.faso-item.faso-phone { background: var(--faso-phone); }
.faso-zalo { background: #0789c8 !important; }
.faso-chat { background: #0866ff !important; }
.faso-whatsapp { background: #25d366 !important; }
.faso-viber { background: #7360f2 !important; }
.faso-map { background: #ea4335 !important; }

.faso-mobile-footer-outer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  display: none;
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
  pointer-events: none;
}
.faso-mobile-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100vw !important;
  max-width: none !important;
  height: 74px;
  margin: 0 !important;
  padding: 5px 4px max(9px, env(safe-area-inset-bottom)) !important;
  box-sizing: border-box;
  background: transparent;
  isolation: isolate;
  pointer-events: auto;
}
.faso-mobile-bar::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 74px;
  background: url("mobile-footer-bg.svg") center top / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}
.faso-mobile-item {
  position: relative;
  display: flex !important;
  flex: 1 1 20%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  height: 62px;
  gap: 5px;
  padding: 4px 1px 0;
  box-sizing: border-box;
  color: #2f3337 !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.faso-mobile-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--faso-item-color);
  box-shadow: 0 2px 8px #0002;
  transition: transform .2s ease;
}
.faso-mobile-item:active .faso-mobile-icon { transform: scale(.92); }
.faso-mobile-icon svg {
  position: relative;
  z-index: 2;
  width: 23px;
  height: 23px;
  overflow: visible;
  fill: #fff;
}
.faso-mobile-label {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.faso-mobile-primary {
  justify-content: flex-end;
  padding-top: 0;
}
.faso-mobile-primary .faso-mobile-icon {
  position: absolute;
  top: -25px;
  left: 50%;
  width: 56px;
  height: 56px;
  border: 3px solid #fff;
  background: linear-gradient(135deg, var(--faso-item-color), #a5008d);
  box-shadow: 0 0 0 5px #6aa7e5, 0 5px 15px #0003;
  transform: translateX(-50%);
}
.faso-mobile-primary:active .faso-mobile-icon { transform: translateX(-50%) scale(.94); }
.faso-mobile-primary .faso-mobile-icon svg { width: 28px; height: 28px; }
.faso-mobile-primary .faso-mobile-label {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: auto;
  max-width: 90px;
  padding: 4px 11px;
  border-radius: 20px;
  background: linear-gradient(93deg, var(--faso-primary), #02a4a5);
  color: #fff;
  transform: translateX(-50%);
}
.faso-mobile-pulse {
  position: absolute;
  inset: -3px;
  z-index: 1;
  border: 2px solid var(--faso-item-color);
  border-radius: 50%;
  animation: faso-mobile-ring 1.35s infinite;
}
.faso-mobile-bar text { font-family: Arial, sans-serif; }

@keyframes faso-desktop-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes faso-mobile-ring {
  0% { opacity: .75; transform: scale(.92); }
  75%, 100% { opacity: 0; transform: scale(1.42); }
}
@media (max-width: 850px) {
  body.faso-has-mobile-footer { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .faso-social { display: none !important; }
  .faso-mobile-footer-outer { display: block !important; }
  .faso-mobile-footer-outer.faso-mobile-is-hidden { display: none !important; }
}
@media (min-width: 851px) {
  .faso-social.faso-hide-desktop { display: none !important; }
  .faso-mobile-footer-outer { display: none !important; }
}
@media (max-width: 380px) {
  .faso-mobile-item { font-size: 10px; }
  .faso-mobile-icon { width: 34px; height: 34px; }
  .faso-mobile-icon svg { width: 20px; height: 20px; }
  .faso-mobile-primary .faso-mobile-icon { width: 52px; height: 52px; }
}
