.oblako-chat-launcher {
  position: fixed;
  z-index: 2147482000;
  right: 24px;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
  width: 54px;
  height: 54px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 19px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(145deg, rgba(54, 67, 84, 0.58), rgba(8, 12, 18, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 113, 32, 0.18),
    0 14px 38px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(255, 94, 0, 0.2);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  color: #fff;
  cursor: pointer;
  isolation: isolate;
  opacity: 1;
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 150ms ease;
}

.oblako-chat-launcher::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(95, 194, 255, 0.34), transparent 42%, rgba(255, 92, 0, 0.38));
  opacity: 0.5;
  pointer-events: none;
}

.oblako-chat-launcher:hover {
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 113, 32, 0.24),
    0 17px 44px rgba(0, 0, 0, 0.48),
    0 0 32px rgba(255, 94, 0, 0.28);
  transform: translateY(-2px);
}

.oblako-chat-launcher:active {
  transform: translateY(0) scale(0.96);
}

.oblako-chat-launcher:focus-visible {
  outline: 3px solid #3aaef0;
  outline-offset: 4px;
}

.oblako-chat-launcher[hidden] {
  display: none;
}

/* Cabinet dialogs own the complete foreground while they are open. */
html.cabinet-modal-open .oblako-chat-launcher,
body.cabinet-modal-open .oblako-chat-launcher,
html.cabinet-modal-open .crisp-client,
body.cabinet-modal-open .crisp-client {
  display: none !important;
}

.oblako-chat-launcher__icon {
  width: 25px;
  height: 25px;
  overflow: visible;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.36));
}

.oblako-chat-launcher__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: none;
  place-items: center;
  border: 2px solid #080b10;
  border-radius: 999px;
  background: #ff5b17;
  box-shadow: 0 4px 12px rgba(255, 91, 23, 0.38);
  color: #fff;
  font: 700 10px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.oblako-chat-launcher__badge.is-visible {
  display: grid;
}

@media (max-width: 760px) {
  .oblako-chat-launcher {
    right: 14px;
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
    width: 48px;
    height: 48px;
    border-radius: 17px;
  }

  .oblako-chat-launcher__icon {
    width: 23px;
    height: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oblako-chat-launcher {
    transition: none;
  }
}
