.floating-social {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  background: transparent;
  border: 0;
  box-shadow: 0 8px 20px rgba(14, 42, 96, 0.18);
}

/* Avoid duplicate bars if page + footer both render the component */
.floating-social ~ .floating-social {
  display: none !important;
}

.floating-social__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.floating-social__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.floating-social__item:last-child {
  border-bottom: none;
}

.floating-social__link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  background: #2d70b7;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.floating-social__link:hover {
  background-color: #0e245b;
  transform: translateX(-3px);
}

.floating-social__link img {
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.floating-social__label {
  display: none;
}

.floating-social__item[data-social-icon*="social-call"] .floating-social__link {
  background: #c63205;
}

.floating-social__item[data-social-icon*="social-facebook" i] .floating-social__link,
.floating-social__item[data-social-icon*="social-fb"] .floating-social__link {
  background: #1877f2;
}

.floating-social__item[data-social-icon*="social-zalo"] .floating-social__link {
  background: #0068ff;
}

.floating-social__item[data-social-icon*="social-email"] .floating-social__link {
  background: #1877f2;
}

/* Mobile: fixed bottom contact bar (Liên hệ) */
@media (max-width: 700px) {
  .floating-social {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    box-shadow: 0 -4px 18px rgba(14, 42, 96, 0.12);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
  }

  .floating-social__list {
    flex-direction: row;
    width: 100%;
  }

  .floating-social__item {
    flex: 1 1 0;
    min-width: 0;
    border-bottom: 0;
    border-right: 1px solid #fff;
  }

  .floating-social__item:last-child {
    border-right: 0;
  }

  /* Design shows Call / Facebook / Zalo only */
  .floating-social__item[data-social-icon*="social-email"] {
    display: none;
  }

  .floating-social__link {
    width: 100%;
    height: 52px;
    gap: 0;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .floating-social__link:hover {
    transform: none;
    filter: brightness(0.96);
  }

  .floating-social__link img {
    display: none;
  }

  .floating-social__label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    text-align: center;
  }

  body {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }
}
