/* Floating support launcher — site owner */
.support-float {
  --sf-teal: #0d9488;
  --sf-teal2: #14b8a6;
  --sf-ink: #0f172a;
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 10050;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .95rem .65rem .65rem;
  border-radius: 999px;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 48%, #14b8a6 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow:
    0 14px 32px rgba(15, 118, 110, .38),
    0 0 0 1px rgba(15, 118, 110, .15);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  transition: transform .18s ease, box-shadow .18s ease, filter .15s ease;
  max-width: calc(100vw - 2rem);
  /* containing block for pulse/ring */
  isolation: isolate;
}
.support-float:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
  color: #fff !important;
  box-shadow:
    0 18px 40px rgba(15, 118, 110, .45),
    0 0 0 1px rgba(255, 255, 255, .2);
}
.support-float:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .45);
  outline-offset: 3px;
}

.support-float__icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 1.15rem;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.support-float__body {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
  position: relative;
  z-index: 2;
  padding-right: .15rem;
}
.support-float__status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .95;
}
.support-float__label {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.15;
}

.support-float__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  flex: 0 0 auto;
}
.support-float.is-online .support-float__dot {
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: sf-blink 1.4s ease-in-out infinite;
}
.support-float.is-offline .support-float__dot {
  background: #fbbf24;
}

@keyframes sf-blink {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .55);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    opacity: .85;
  }
}

.support-float__pulse,
.support-float__ring {
  position: absolute;
  left: .65rem;
  top: 50%;
  width: 2.65rem;
  height: 2.65rem;
  margin-top: -1.325rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.support-float.is-online .support-float__pulse {
  background: rgba(74, 222, 128, .35);
  animation: sf-pulse 2s ease-out infinite;
}
.support-float.is-online .support-float__ring {
  border: 2px solid rgba(74, 222, 128, .55);
  animation: sf-ring 2s ease-out infinite;
}
.support-float.is-offline .support-float__pulse,
.support-float.is-offline .support-float__ring {
  display: none;
}

@keyframes sf-pulse {
  0% { transform: scale(.85); opacity: .7; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes sf-ring {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}

.support-float__badge {
  position: absolute;
  top: -.15rem;
  right: -.1rem;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  z-index: 3;
  animation: sf-badge 1.6s ease-in-out infinite;
}
@keyframes sf-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.support-float.has-unread {
  box-shadow:
    0 14px 32px rgba(15, 118, 110, .4),
    0 0 0 3px rgba(239, 68, 68, .25);
}

/* Avoid clash with back-to-top on mobile */
@media (max-width: 640px) {
  .support-float {
    right: .85rem;
    bottom: .85rem;
    padding: .55rem .7rem .55rem .55rem;
  }
  .support-float__body { display: none; }
  .support-float {
    border-radius: 50%;
    padding: .55rem;
    width: 3.5rem;
    height: 3.5rem;
    justify-content: center;
  }
  .support-float__icon {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 1.35rem;
  }
  .support-float__pulse,
  .support-float__ring {
    left: 0;
    top: 0;
    margin: 0;
    width: 100%;
    height: 100%;
  }
}

/* Shift up if classic .buttonup occupies corner */
@media (min-width: 641px) {
  body.kinder-theme .support-float,
  body.parchment-theme .support-float,
  body.atelier-theme .support-float {
    bottom: 5.25rem;
  }
}

/* Theme 3 / 4 / 5 / 7 / 12: leave room for scroll-to-top buttons.
   Keep z-index below theme skins' own rules (they use ~10050) but above page chrome. */
body.theme-skin-3 .support-float,
body.theme-skin-4 .support-float,
body.theme-skin-5 .support-float,
body.theme-skin-7 .support-float,
body.theme-skin-8 .support-float,
body.theme-skin-12 .support-float {
  bottom: 5.5rem !important;
  z-index: 10040 !important;
}
body.theme-skin-3 .t3-top,
body.theme-skin-4 .t4-top,
body.theme-skin-5 .t5-top,
body.theme-skin-7 .t7-top,
body.theme-skin-8 .t8-top,
body.theme-skin-12 .t12-top {
  z-index: 10050 !important;
  bottom: 1rem !important;
  right: 1rem !important;
}
@media (max-width: 640px) {
  body.theme-skin-3 .support-float,
  body.theme-skin-4 .support-float,
  body.theme-skin-5 .support-float,
  body.theme-skin-7 .support-float,
  body.theme-skin-8 .support-float,
  body.theme-skin-12 .support-float {
    bottom: 5.25rem !important;
    right: .85rem !important;
  }
  body.theme-skin-3 .t3-top,
  body.theme-skin-4 .t4-top,
  body.theme-skin-5 .t5-top,
  body.theme-skin-7 .t7-top,
  body.theme-skin-8 .t8-top,
  body.theme-skin-12 .t12-top {
    bottom: .85rem !important;
    right: .85rem !important;
  }
}

/* Header support icon online badge (t1/t2/t3/t12) */
.support-header-icon {
  position: relative !important;
}
.support-header-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #fff;
  box-sizing: border-box;
}
.support-header-icon.is-online .support-header-dot {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
  animation: sf-blink 1.4s ease-in-out infinite;
}

/* Side-menu / classic right-menu online marker */
.support-menu-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: .25rem;
  vertical-align: middle;
  background: #f59e0b;
}
.support-menu-live.is-on {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
  animation: sf-blink 1.4s ease-in-out infinite;
}
.support-menu-online {
  display: inline-block;
  margin-left: .25rem;
  padding: .08rem .4rem;
  border-radius: 999px;
  font-size: .72em;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #15803d;
  background: rgba(34, 197, 94, .14);
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .support-float.is-online .support-float__dot,
  .support-float.is-online .support-float__pulse,
  .support-float.is-online .support-float__ring,
  .support-float__badge,
  .support-menu-live.is-on {
    animation: none !important;
  }
}

/* Theme 10 silk rose — room for t10-top */
body.theme-skin-10 .support-float {
  bottom: 5.5rem !important;
  z-index: 10040 !important;
}
body.theme-skin-10 .t10-top {
  z-index: 10050 !important;
  bottom: 1rem !important;
  right: 1rem !important;
}
@media (max-width: 640px) {
  body.theme-skin-10 .support-float {
    bottom: 5.25rem !important;
    right: .85rem !important;
  }
  body.theme-skin-10 .t10-top {
    bottom: .85rem !important;
    right: .85rem !important;
  }
}