.floating-social{
  position: fixed;
  right: 5px;
  bottom: 50px;
  z-index: 99;
  /* ❌ ไม่ต้องใช้ flex/column-reverse แล้ว เพราะ panel เป็น absolute */
}

/* ===== Toggle Button ===== */
.fs-toggle{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 0;
  cursor: pointer;
  background: radial-gradient(120% 120% at 20% 10%, #badf93 0%, #9bf952 45%, #0db34c 100%);
  box-shadow: 0 16px 30px rgba(0,0,0,.35);
  display: grid;
  place-items: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fs-toggle:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(0,0,0,.42);
}

.fs-toggle-ico{
  width: 26px;
  height: 26px;
  fill: #fff;
  opacity: .95;
}

/* ===== Panel (ไม่กินพื้นที่) ===== */
.fs-panel{
  position: absolute;
  right: 0;
  bottom: calc(56px + 10px); /* สูงปุ่ม + ระยะห่าง */
  width: 240px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  transform: translateY(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
}

/* ✅ เปิดด้วย JS class เท่านั้น */
.floating-social.open .fs-panel{
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== Item buttons ===== */
.fs-item{
  position: relative;
  height: 46px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  padding: 0 64px 0 16px;
  color:#fff;
  text-decoration:none;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 12px 22px rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.fs-item:hover{
  transform: translateX(-3px);
  box-shadow: 0 16px 26px rgba(0,0,0,.22);
  filter: brightness(1.02);
}

/* กันสี/เส้นใต้ตอน hover */
.fs-panel > a:hover{
  text-decoration: none;
  outline: none;
  color: #fff; /* ✅ เดิมคุณตั้งเป็น #0e0e0e ทำให้ตัวอักษรบางปุ่มดำ */
}

.fs-label{ font-size: 15px; }

/* กล่องไอคอนด้านขวา */
.fs-icon{
  position:absolute;
  right: 10px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 14px 20px rgba(0,0,0,.20);
  overflow: hidden;
}

.fs-icon img{
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.fs-icon.white{ background:#fff; }
.fs-icon.dark{ background:#e8e8e8; }

/* สีปุ่มตามแบรนด์ */
.fs-item.fb{ background: linear-gradient(90deg,#1877F2 0%, #2f63c7 100%); }
.fs-item.line{ background: linear-gradient(90deg,#06C755 0%, #18c45a 100%); }
.fs-item.tiktok{ background: linear-gradient(90deg, #534d4d 0%, #f5f5f5 100%); }

/* ทำให้ TikTok icon ดูสวยขึ้น */
.fs-item.tiktok .fs-icon img{
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
