.yws-fab {
  --yws-green: #25D366;
  --yws-green-hover: #1fbd5a;
  position: fixed;
  bottom: calc(var(--yws-desktop-bottom, 24px) + env(safe-area-inset-bottom, 0px));
  z-index: 1090;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: calc(100vw - 32px);
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  background: var(--yws-green);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, background-color .18s ease;
}

.yws-fab--left { left: 20px; }
.yws-fab--right { right: 20px; }

.yws-fab:hover,
.yws-fab:focus {
  background: var(--yws-green-hover);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  outline: none;
}

.yws-fab:active { transform: translateY(0); }

.yws-fab__icon {
  display: inline-flex;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}

.yws-fab__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.yws-fab__label--mobile { display: none; }

@media (min-width: 768px) {
  .yws-hide-desktop { display: none !important; }
}

@media (max-width: 767px) {
  .yws-fab {
    bottom: calc(var(--yws-mobile-bottom, 92px) + env(safe-area-inset-bottom, 0px));
    min-height: 46px;
    max-width: calc(100vw - 24px);
    padding: 0 13px;
    border-radius: 13px;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
  }

  .yws-fab--left { left: 12px; }
  .yws-fab--right { right: 12px; }

  .yws-fab__icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .yws-fab__label--desktop { display: none; }
  .yws-fab__label--mobile { display: inline; }
  .yws-hide-mobile { display: none !important; }
}

@media (max-width: 360px) {
  .yws-fab {
    min-height: 44px;
    padding: 0 11px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yws-fab { transition: none; }
}
