.ct-wa-widget {
  --ct-wa-space: clamp(12px, 2vw, 24px);
  --ct-wa-left: max(var(--ct-wa-space), env(safe-area-inset-left, 0px));
  --ct-wa-right: max(var(--ct-wa-space), env(safe-area-inset-right, 0px));
  --ct-wa-bottom: max(14px, env(safe-area-inset-bottom, 0px));
  --ct-wa-text: #193c34;
  --ct-wa-muted: #475f56;
  --ct-wa-border: #cddfd4;
  --ct-wa-green: #08764e;
  --ct-wa-dark: #163f36;
  position: fixed;
  z-index: 95;
  right: var(--ct-wa-right);
  bottom: var(--ct-wa-bottom);
  width: max-content;
  color: var(--ct-wa-text);
  font: 400 15px/1.5 Arial, Helvetica, sans-serif;
}

.ct-wa-widget, .ct-wa-widget * { box-sizing: border-box; }
.ct-wa-widget[hidden], .ct-wa-widget [hidden] { display: none !important; }
html:has(.ct-wa-widget:not([hidden])) .f-button--scroll-top { display: none !important; }

.ct-wa-widget button {
  margin: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.ct-wa-widget :is(a, button):focus-visible {
  outline: 2px solid #17835d;
  outline-offset: 3px;
}

.ct-wa-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.ct-wa-widget .ct-wa-launcher, .ct-wa-widget .ct-wa-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  box-shadow: 0 8px 24px #132e252e;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.ct-wa-widget .ct-wa-launcher {
  min-width: 150px;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid #086646;
  background: var(--ct-wa-green);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.ct-wa-widget .ct-wa-top {
  width: 48px;
  border: 1px solid var(--ct-theme-line);
  background: var(--ct-theme-canvas);
  color: var(--ct-theme-primary);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ct-theme-deep) 18%, transparent);
}

.ct-wa-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - var(--ct-wa-left) - var(--ct-wa-right)));
  max-height: calc(100vh - var(--ct-wa-bottom) - 72px);
  max-height: calc(100dvh - var(--ct-wa-bottom) - 72px);
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ct-wa-border);
  border-radius: 18px;
  background: #f3f8f3;
  box-shadow: 0 16px 44px #102c233d;
  animation: ct-wa-in 180ms ease-out;
}

@keyframes ct-wa-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ct-wa-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 17px 16px 17px 20px;
  background: var(--ct-wa-dark);
  color: #fff;
}

.ct-wa-heading h2 {
  margin: 0;
  color: #fff;
  font: 700 21px/1.22 Arial, Helvetica, sans-serif;
  letter-spacing: -.02em;
  text-transform: none;
}

.ct-wa-heading p {
  margin: 4px 0 0;
  color: #dbede1;
  font-size: 13px;
  line-height: 1.45;
}

.ct-wa-widget .ct-wa-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d9f0e62e;
  border-radius: 12px;
  background: #ffffff0b;
  color: #fff;
}

.ct-wa-widget .ct-wa-top:focus-visible { outline-color: var(--ct-theme-blue); }
.ct-wa-widget .ct-wa-close:focus-visible { outline-color: #d0ffe1; }

.ct-wa-body { padding: 16px 19px 12px; }

.ct-wa-widget .ct-wa-sales {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 11px 12px;
  border: 1px solid var(--ct-wa-border);
  border-radius: 14px;
  background: #fff;
  color: var(--ct-wa-text);
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.ct-wa-sales img {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0;
  object-fit: cover;
  border-radius: 50%;
  background: #e2ede4;
}

.ct-wa-sales-label { display: grid; gap: 2px; min-width: 0; }
.ct-wa-sales-label strong { font-weight: 700; }
.ct-wa-sales-label > span:not(.ct-wa-sr), .ct-wa-external { color: #076749; }

.ct-wa-help {
  margin: 14px 0;
  color: var(--ct-wa-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ct-wa-alternatives {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  padding-top: 4px;
  border-top: 1px solid var(--ct-wa-border);
}

.ct-wa-widget .ct-wa-alternatives a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #235748;
  font-size: 13px;
  text-decoration: none;
}

.ct-wa-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (hover: hover) {
  .ct-wa-widget .ct-wa-launcher:hover { background: #075d3e; }
  .ct-wa-widget .ct-wa-top:hover { background: var(--ct-theme-tint); border-color: var(--ct-theme-line-strong); }
  .ct-wa-widget .ct-wa-close:hover { background: #ffffff26; }
  .ct-wa-widget .ct-wa-sales:hover { background: #f8fcf9; border-color: #86ad97; }
  .ct-wa-widget .ct-wa-alternatives a:hover { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-wa-widget :is(.ct-wa-panel, .ct-wa-launcher, .ct-wa-top, .ct-wa-sales) {
    animation: none;
    transition: none;
  }
}
