.gsc-wrapper,
.gsc-wrapper * {
  box-sizing: border-box;
}

.gsc-wrapper {
  --gsc-blue: #0b76ff;
  --gsc-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  --gsc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  align-items: center;
  bottom: max(var(--gsc-bottom, 30px), env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  position: fixed;
  right: max(var(--gsc-right, 30px), env(safe-area-inset-right));
  z-index: 99990;
}

.gsc-main-btn {
  align-items: center;
  background: var(--gsc-blue);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(11, 118, 255, 0.34);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 62px;
  justify-content: center;
  padding: 0;
  position: relative;
  transition: box-shadow 180ms ease, transform 180ms var(--gsc-ease);
  width: 62px;
}

.gsc-main-btn:hover,
.gsc-main-btn:focus-visible {
  box-shadow: 0 18px 44px rgba(11, 118, 255, 0.42);
  outline: none;
  transform: translateY(-2px);
}

.gsc-main-icon {
  display: block;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 180ms var(--gsc-ease);
}

.gsc-wrapper.active .gsc-main-icon {
  transform: rotate(45deg);
}

.gsc-pulse-ring {
  animation: gscPulse 2.2s infinite;
  border: 2px solid rgba(11, 118, 255, 0.7);
  border-radius: 999px;
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.gsc-list {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 180ms ease, transform 220ms var(--gsc-ease), visibility 180ms ease;
  visibility: hidden;
}

.gsc-wrapper.active .gsc-list {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.gsc-item {
  align-items: center;
  border: 0;
  border-radius: 999px;
  box-shadow: var(--gsc-shadow);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  padding: 0;
  position: relative;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms var(--gsc-ease);
  width: 50px;
}

.gsc-item:hover,
.gsc-item:focus-visible {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
  outline: none;
  transform: translateY(-2px) scale(1.04);
}

.gsc-item-mark {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.bg-zalo { background: #0068ff; }
.bg-whatsapp { background: #25d366; }
.bg-tele { background: #29b6f6; }
.bg-viber { background: #665ca7; }
.bg-line { background: #06c755; }
.bg-wechat { background: #2dc100; }

.gsc-tooltip {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  padding: 7px 9px;
  pointer-events: none;
  position: absolute;
  right: 62px;
  transform: translateX(4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.gsc-item:hover .gsc-tooltip,
.gsc-item:focus-visible .gsc-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.gsc-modal-overlay {
  align-items: center;
  background: rgba(15, 23, 42, 0.54);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 999999;
}

.gsc-modal-overlay.active {
  display: flex;
}

.gsc-modal-box {
  animation: gscModalIn 180ms var(--gsc-ease) both;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
  max-width: min(360px, 92vw);
  padding: 24px;
  position: relative;
  text-align: center;
  width: 100%;
}

.gsc-modal-title {
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 34px 16px;
}

.gsc-qr-img {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 300px;
  width: 100%;
}

.gsc-close-btn {
  align-items: center;
  background: #f3f4f6;
  border: 0;
  border-radius: 999px;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
}

.gsc-close-btn:hover,
.gsc-close-btn:focus-visible {
  background: #e5e7eb;
  color: #111827;
  outline: none;
}

@keyframes gscPulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes gscModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .gsc-wrapper {
    --gsc-bottom: 18px;
    --gsc-right: 18px;
  }

  .gsc-main-btn {
    height: 56px;
    width: 56px;
  }

  .gsc-item {
    height: 46px;
    width: 46px;
  }

  .gsc-tooltip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gsc-wrapper *,
  .gsc-modal-box {
    animation: none !important;
    transition: none !important;
  }
}
