.float-customer-service {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(160px, env(safe-area-inset-bottom));
  z-index: 88;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 10px;
  background: #f8f9fc;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 34, 72, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.float-cs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-cs-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.float-cs-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.float-cs-btn--telegram {
  background: #0088cc;
  color: #fff;
}

.float-cs-btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.float-cs-divider {
  width: 28px;
  height: 1px;
  margin: 4px 0;
  background: rgba(0, 0, 0, 0.08);
}

.cs-trial-nudge {
  position: fixed;
  right: max(82px, calc(env(safe-area-inset-right) + 82px));
  bottom: max(168px, calc(env(safe-area-inset-bottom) + 168px));
  z-index: 89;
  width: min(236px, calc(100vw - 32px));
  border-radius: 12px;
  border: 1px solid rgba(29, 67, 134, 0.14);
  box-shadow: 0 10px 24px rgba(12, 34, 76, 0.13);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 10px 12px;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cs-trial-nudge.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.cs-trial-nudge::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(29, 67, 134, 0.14);
  border-bottom: 1px solid rgba(29, 67, 134, 0.14);
  background: rgba(255, 255, 255, 0.95);
  transform: rotate(45deg);
}

.cs-trial-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(34, 65, 118, 0.06);
  color: #355483;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.cs-trial-title {
  margin: 0;
  padding-right: 18px;
  color: #1d3b6d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.cs-trial-desc {
  margin: 6px 0 9px;
  color: #556b8f;
  font-size: 12px;
  line-height: 1.45;
}

.cs-trial-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(46, 92, 182, 0.25);
  background: rgba(224, 235, 255, 0.75);
  color: #2558be;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.cs-trial-cta:hover {
  background: rgba(211, 226, 252, 0.88);
}

@media (max-width: 900px) {
  .float-customer-service {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
  }

  .cs-trial-nudge {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(96px, calc(env(safe-area-inset-bottom) + 96px));
    width: min(212px, calc(100vw - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-cs-btn,
  .cs-trial-nudge {
    transition: none;
    transform: none;
  }
}
