.commercial-assistant-launcher {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  overflow: hidden;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: linear-gradient(135deg, #063a67, #087fba);
  box-shadow: 0 16px 40px rgba(2, 38, 61, .34);
  cursor: pointer;
  font-weight: 800;
  transition: width 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.commercial-assistant-launcher img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  background: transparent;
  object-fit: contain;
  border-radius: 50%;
}

.commercial-assistant-launcher span {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(-7px);
  transition: max-width 240ms ease, opacity 180ms ease, transform 240ms ease;
}

.commercial-assistant-panel {
  position: fixed;
  z-index: 81;
  right: 24px;
  bottom: 96px;
  width: min(430px, calc(100vw - 32px));
  height: min(690px, calc(100dvh - 125px));
  overflow: hidden;
  border: 1px solid rgba(112, 164, 194, .35);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(1, 29, 48, .38);
}

.commercial-assistant-panel[hidden] { display: none; }

.commercial-assistant-panel > header {
  height: 58px;
  padding: 0 13px 0 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, #063a67, #087fba);
}

.commercial-assistant-panel > header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  font-size: 24px;
}

.commercial-assistant-panel iframe {
  width: 100%;
  height: calc(100% - 58px);
  display: block;
  border: 0;
  background: #f4fafc;
}

:root[data-theme="dark"] .commercial-assistant-panel {
  border-color: #244257;
  background: #0a1d2c;
}

.commercial-assistant-launcher:hover,
.commercial-assistant-launcher:focus-visible {
  width: 220px;
  box-shadow: 0 18px 46px rgba(2, 38, 61, 0.38);
  transform: translateY(-2px);
}

.commercial-assistant-launcher:hover span,
.commercial-assistant-launcher:focus-visible span {
  max-width: 155px;
  opacity: 1;
  transform: none;
}

@media (max-width: 580px) {
  .commercial-assistant-launcher {
    right: 14px;
    bottom: 14px;
  }

  .commercial-assistant-panel {
    inset: 12px 12px 82px;
    width: auto;
    height: auto;
    border-radius: 22px;
  }

  .commercial-assistant-launcher:hover,
  .commercial-assistant-launcher:focus-visible {
    width: 60px;
    transform: none;
  }

  .commercial-assistant-launcher span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .commercial-assistant-launcher,
  .commercial-assistant-launcher span {
    transition: none;
  }
}
