.rosfinex-chat-launcher-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147482999;
  font-family: "ManropeRegular", "Manrope", Arial, sans-serif;
}

.rosfinex-chat-launcher {
  --chat-blue: #285bff;
  --chat-blue-dark: #213fa9;
  --chat-ink: #101a2c;
  --chat-muted: #65708a;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 18px 8px 8px;
  border: 1px solid rgba(40, 91, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--chat-ink);
  box-shadow:
    0 18px 45px rgba(33, 63, 169, 0.18),
    0 4px 14px rgba(16, 26, 44, 0.08);
  cursor: pointer;
  isolation: isolate;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.rosfinex-chat-launcher::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(241, 248, 255, 0.92), rgba(255, 255, 255, 0.25));
  pointer-events: none;
}

.rosfinex-chat-launcher:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 91, 255, 0.34);
  box-shadow:
    0 22px 50px rgba(33, 63, 169, 0.22),
    0 6px 16px rgba(16, 26, 44, 0.1);
}

.rosfinex-chat-launcher:active {
  transform: translateY(0);
}

.rosfinex-chat-launcher:focus-visible {
  outline: 3px solid rgba(40, 91, 255, 0.3);
  outline-offset: 3px;
}

.rosfinex-chat-launcher__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--chat-blue), var(--chat-blue-dark));
  box-shadow: 0 8px 18px rgba(40, 91, 255, 0.28);
}

.rosfinex-chat-launcher__icon svg {
  width: 25px;
  height: 25px;
  overflow: visible;
}

.rosfinex-chat-launcher__icon path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rosfinex-chat-launcher__icon circle {
  fill: #fff;
}

.rosfinex-chat-launcher__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 154px;
  text-align: left;
  line-height: 1.2;
}

.rosfinex-chat-launcher__copy strong {
  color: var(--chat-ink);
  font-family: "ManropeBold", "Manrope", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rosfinex-chat-launcher__copy span {
  margin-top: 4px;
  color: var(--chat-muted);
  font-size: 11px;
  white-space: nowrap;
}

.rosfinex-chat-launcher__status {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #20b26b;
  box-shadow: 0 0 0 3px rgba(32, 178, 107, 0.12);
}

.rosfinex-chat-launcher.has-error {
  border-color: rgba(217, 65, 65, 0.25);
}

.rosfinex-chat-launcher.has-error .rosfinex-chat-launcher__icon {
  background: linear-gradient(135deg, #68738a, #48536b);
  box-shadow: 0 8px 18px rgba(72, 83, 107, 0.22);
}

.rosfinex-chat-launcher__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rosfinex-chat-spin 700ms linear infinite;
}

body.rosfinex-chat-widget-mounted .button-to-top {
  bottom: 7.75rem !important;
}

@keyframes rosfinex-chat-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 999px) {
  .rosfinex-chat-launcher-wrap {
    right: 10px;
    bottom: 78px;
  }

  body.rosfinex-chat-widget-mounted .button-to-top {
    right: 0.7rem !important;
    bottom: 9.5rem !important;
  }
}

@media (max-width: 620px) {
  .rosfinex-chat-launcher {
    width: 58px;
    min-height: 58px;
    padding: 5px;
    border-radius: 18px;
  }

  .rosfinex-chat-launcher__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .rosfinex-chat-launcher__copy,
  .rosfinex-chat-launcher__status {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rosfinex-chat-launcher {
    transition: none;
  }
}
/* Mobile: compact brand action above bottom navigation. */
@media(max-width:999px){
 .rosfinex-chat-launcher-wrap{left:auto;right:16px;bottom:calc(84px + env(safe-area-inset-bottom,0px));width:auto;max-width:calc(100vw - 32px)}
 .rosfinex-chat-launcher{width:auto;height:52px;min-height:52px;padding:0 18px;gap:9px;border:1px solid rgba(255,255,255,.2);border-radius:26px;justify-content:center;background:linear-gradient(110deg,#2d5bff,#2443b5);box-shadow:0 6px 18px rgba(33,63,169,.22);color:#fff;-webkit-tap-highlight-color:transparent}
 .rosfinex-chat-launcher::before{display:none}
 .rosfinex-chat-launcher:hover{transform:none;box-shadow:0 6px 18px rgba(33,63,169,.22)}
 .rosfinex-chat-launcher:active{transform:scale(.97)}
 .rosfinex-chat-launcher__icon{width:24px;height:24px;border-radius:0;background:none;box-shadow:none}
 .rosfinex-chat-launcher__icon svg{width:24px;height:24px}
 .rosfinex-chat-launcher__copy{display:flex;min-width:0}
 .rosfinex-chat-launcher__copy strong{font-size:14px;color:#fff;white-space:nowrap}
 .rosfinex-chat-launcher__copy>span{display:none}
 body.rosfinex-chat-widget-mounted .button-to-top{right:20px!important;bottom:calc(148px + env(safe-area-inset-bottom,0px))!important;width:44px!important;height:44px!important;min-width:44px!important;padding:10px!important;background:#fff!important;color:#53627c!important;border:1px solid #dce3ee!important;box-shadow:0 3px 10px rgba(16,26,44,.1)!important}
 body.rosfinex-chat-widget-mounted .button-to-top svg{width:20px!important;height:20px!important}
}
