.float-contact-rail {
  position: fixed;
  right: 20px;
  top: 42%;
  transform: translateY(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-contact-item {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.float-contact-btn {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #7c89b8;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(22, 37, 76, 0.14);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.float-contact-btn:hover {
  background: #1e3190;
  transform: translateY(-1px);
}

.float-contact-btn img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.float-contact-pop {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 121;
}

.float-contact-item:hover .float-contact-pop {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.float-contact-pop--pill {
  background: #fff;
  border: 1px solid #e8edf6;
  box-shadow: 0 14px 28px rgba(22, 37, 76, 0.16);
  border-radius: 10px;
  padding: 10px 12px;
  white-space: nowrap;
}

.float-contact-pop-title {
  font-size: 14px;
  font-weight: 700;
  color: #202938;
  line-height: 1;
}

.float-contact-pop--wechat {
  width: 200px;
  background: #fff;
  border: 1px solid #e8edf6;
  box-shadow: 0 14px 28px rgba(22, 37, 76, 0.16);
  border-radius: 10px;
  padding: 12px;
}

.float-contact-pop--wechat .float-contact-pop-title {
  font-size: 14px;
  margin-bottom: 10px;
}

.float-contact-pop-qr {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    45deg,
    #f4f7fb,
    #f4f7fb 10px,
    #eef2f8 10px,
    #eef2f8 20px
  );
  color: #778095;
  font-size: 14px;
  font-weight: 700;
}

.float-contact-chat {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.float-contact-consult {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 14px 0 8px;
  border-radius: 10px;
  background: #4a7cff;
  box-shadow: 0 14px 28px rgba(22, 37, 76, 0.18);
}

.float-contact-consult::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.float-contact-consult-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.float-contact-consult-icon img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.float-contact-consult-text {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .float-contact-rail {
    right: 12px;
  }
  .float-contact-chat {
    right: 12px;
    bottom: 14px;
  }
  .float-contact-pop {
    display: none;
  }
  .float-contact-consult-text {
    font-size: 16px;
  }
}

/* New right panel style (replace old floating group) */
.float-contact-panel {
  position: fixed;
  right: 14px;
  top: 44%;
  transform: translateY(-50%);
  z-index: 140;
  width: 76px;
  background: #949494;
  border-radius: 10px;
  overflow: visible;
}

.float-contact-entry {
  position: relative;
  min-height: 84px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.float-contact-entry.has-pop {
  padding: 0;
}

.float-contact-entry-main {
  position: relative;
  width: 100%;
  min-height: 84px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.float-contact-entry + .float-contact-entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.26);
}

.float-contact-entry-icon img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.float-contact-entry-text {
  font-size: 14px;
  line-height: 1.1;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0;
}

.float-contact-product-pop {
  position: absolute;
  right: 82px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.float-contact-product-pop::before {
  content: "";
  position: absolute;
  right: -14px;
  top: 0;
  width: 18px;
  height: 100%;
}

.float-contact-product-pop::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid #e1e6ef;
  border-right: 1px solid #e1e6ef;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.float-contact-entry.has-pop:hover .float-contact-product-pop,
.float-contact-product-pop:hover {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.float-contact-product-list,
.float-contact-product-empty {
  width: 248px;
  min-height: 94px;
  background: #fff;
  border: 1px solid #e1e6ef;
  box-shadow: 0 8px 18px rgba(22, 37, 76, 0.16);
  border-radius: 0;
  padding: 12px;
  box-sizing: border-box;
  position: relative;
}

.float-contact-product-list {
  display: block;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.float-contact-product-list::-webkit-scrollbar {
  width: 6px;
}

.float-contact-product-list::-webkit-scrollbar-thumb {
  background: #cfd6e3;
  border-radius: 3px;
}

.float-contact-product-list::-webkit-scrollbar-track {
  background: transparent;
}

.float-contact-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.float-contact-product-item:hover .float-contact-product-title {
  color: #1b4fd8;
}

.float-contact-product-item + .float-contact-product-item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f8;
}

.float-contact-product-thumb {
  width: 64px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid #e7ebf3;
  background: #f6f8fc;
  display: grid;
  place-items: center;
}

.float-contact-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.float-contact-product-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.float-contact-product-title {
  color: #3b3b3b;
  font-size: 15px;
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-contact-product-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #7a8496;
}

.float-contact-top-btn {
  position: fixed;
  right: 14px;
  top: calc(44% + 190px);
  z-index: 140;
  width: 76px;
  height: 62px;
  border: none;
  border-radius: 10px;
  margin-top: 10px;
  background: #949494;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.float-contact-top-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.float-contact-top-btn:hover {
  background: #8a8a8a;
}

.float-contact-badge {
  position: absolute;
  left: 14px;
  top: 8px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #e81224;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.float-contact-inline-qr {
  position: absolute;
  right: 84px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.float-contact-entry.is-contact:hover .float-contact-inline-qr {
  opacity: 1;
}

.float-contact-inline-qr-box {
  width: 140px;
  height: 140px;
  border: 1px solid #e4e8f0;
  background: repeating-linear-gradient(45deg, #f4f7fb, #f4f7fb 8px, #ecf0f6 8px, #ecf0f6 16px);
  color: #677087;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.float-contact-inline-qr-box.has-image {
  background: #fff;
  padding: 4px;
}

.float-contact-inline-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 980px) {
  .float-contact-product-pop {
    display: none;
  }
}

