/* The four contact links are owned by WPCode's fixed footer. */
.nl-social-float {
  position: fixed;
  right: 8px;
  top: 50%;
  z-index: 9996;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #dce4e1;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2, 68, 64, .10);
  backdrop-filter: blur(6px);
}

.nl-social-float .nl-social-item { position: relative; }
.nl-social-float .nl-social-item,
.nl-social-float .nl-social-item > a { width: 36px; height: 36px; }
.nl-social-float .nl-social-item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  background: transparent;
  transition: transform .2s ease, background-color .2s ease;
}
.nl-social-float .nl-social-item > a:hover { background: #edf6f2; transform: scale(1.06); }
.nl-social-float .nl-social-item > a img { display: block; width: 24px; height: 24px; object-fit: contain; }
.nl-social-float .nl-wechat-pop {
  display: none;
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 160px;
  max-width: 280px;
  text-align: center;
}
.nl-social-float .nl-wechat:hover .nl-wechat-pop,
.nl-social-float .nl-wechat:focus-within .nl-wechat-pop { display: block; }
.nl-social-float .nl-wechat-qr {
  display: block;
  width: auto;
  height: auto;
  max-width: 240px;
  margin: 0 auto 6px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
}

@media (max-width: 767px) {
  .nl-social-float {
    top: auto;
    right: 14px;
    bottom: 68px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
  }
  .nl-social-float .nl-social-item:not(.nl-wa) { display: none; }
  .nl-social-float .nl-wa,
  .nl-social-float .nl-wa > a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(2,68,64,.22);
    box-shadow: 0 4px 12px rgba(2,68,64,.14);
  }
  .nl-social-float .nl-wa > a img { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .nl-social-float .nl-social-item > a { transition: none; }
}

/* Spacing for the other fixed controls. */
@media (min-width: 768px) {
  html body .ct-back-to-top {
    right: 24px;
    bottom: 80px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(143, 224, 196, 0.45);
    background: #0B2F28;
    box-shadow: 0 4px 12px rgba(2, 68, 64, 0.18);
    z-index: 9997;
  }

  body .ct-footer [data-row="bottom"] {
    padding-bottom: 24px;
  }

  body .ct-footer [data-row="bottom"] .ct-container {
    padding-right: 170px;
    padding-left: 72px;
  }
}

@media (max-width: 767px) {
  html body .ct-back-to-top {
    display: none;
  }

  body .ct-footer [data-row="bottom"] {
    padding-bottom: 72px;
  }
}

@media (min-width: 768px) {
  html[dir="rtl"] .nl-social-float {
    right: auto;
    left: 8px;
  }

  html[dir="rtl"] .nl-social-float .nl-wechat-pop {
    right: auto;
    left: 48px;
  }
}
