.cree-wa-widget {
  position: fixed;
  bottom: 26px;
  z-index: 999999;
  font-family: inherit;
  --cree-wa-brand: #19c83d;
  --cree-wa-header: #19c83d;
  --cree-wa-launcher-bg: #ffffff;
  --cree-wa-launcher-fg: #19c83d;
  --cree-wa-chat-bg: #f7f3ea;
  --cree-wa-bubble-bg: #ffffff;
  --cree-wa-action: #19c83d;
  --cree-wa-status: #ffd500;
  --cree-wa-panel-width: 420px;
}
.cree-wa-pos-right { right: 28px; }
.cree-wa-pos-left { left: 28px; }
.cree-wa-launcher {
  position: relative;
  border: 0;
  border-radius: 999px;
  background: var(--cree-wa-launcher-bg);
  color: var(--cree-wa-launcher-fg);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cree-wa-launcher:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,.27); }
.cree-wa-launcher-compact .cree-wa-launcher { min-height: 48px; gap: 9px; padding: 0 17px; font-size: 15px; }
.cree-wa-launcher-compact .cree-wa-launcher-icon { width: 23px; height: 23px; }
.cree-wa-launcher-standard .cree-wa-launcher { min-height: 56px; gap: 11px; padding: 0 21px; font-size: 17px; }
.cree-wa-launcher-standard .cree-wa-launcher-icon { width: 27px; height: 27px; }
.cree-wa-launcher-large .cree-wa-launcher { min-height: 62px; gap: 13px; padding: 0 24px; font-size: 18px; }
.cree-wa-launcher-large .cree-wa-launcher-icon { width: 30px; height: 30px; }
.cree-wa-launcher-icon { display: inline-flex; flex: 0 0 auto; }
.cree-wa-launcher-icon svg, .cree-wa-icon svg { width: 100%; height: 100%; display: block; }
.cree-wa-launcher-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cree-wa-status);
  border: 2px solid var(--cree-wa-launcher-bg);
}
.cree-wa-popup {
  position: absolute;
  bottom: 72px;
  width: min(var(--cree-wa-panel-width), calc(100vw - 32px));
  background: var(--cree-wa-chat-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 45px rgba(0,0,0,.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.98);
  transform-origin: bottom;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.cree-wa-pos-right .cree-wa-popup { right: 0; }
.cree-wa-pos-left .cree-wa-popup { left: 0; }
.cree-wa-popup.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.cree-wa-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.75);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}
.cree-wa-header {
  min-height: 150px;
  padding: 34px 58px 28px 28px;
  background: var(--cree-wa-header);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
}
.cree-wa-avatar-wrap { position: relative; flex: 0 0 auto; }
.cree-wa-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255,255,255,.55);
}
.cree-wa-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
}
.cree-wa-status-dot {
  position: absolute;
  right: 2px;
  bottom: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cree-wa-status);
  border: 2px solid var(--cree-wa-header);
}
.cree-wa-header-copy strong {
  display: block;
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 8px;
  font-weight: 700;
}
.cree-wa-header-copy span {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  opacity: .97;
}
.cree-wa-chat-area {
  padding: 26px 24px 30px;
  background-color: var(--cree-wa-chat-bg);
  background-image:
    radial-gradient(circle at 18px 18px, rgba(0,0,0,.035) 2px, transparent 2px),
    radial-gradient(circle at 50px 44px, rgba(0,0,0,.025) 2px, transparent 2px);
  background-size: 64px 64px;
}
.cree-wa-time {
  min-height: 18px;
  margin: 0 0 12px;
  text-align: center;
  font-size: 13px;
  color: #a5a5a5;
}
.cree-wa-message-bubble {
  position: relative;
  width: calc(100% - 20px);
  background: var(--cree-wa-bubble-bg);
  color: #181818;
  border-radius: 8px 24px 24px 24px;
  padding: 20px 22px;
  line-height: 1.55;
  font-size: 16px;
  box-shadow: 0 2px 3px rgba(0,0,0,.11);
}
.cree-wa-start {
  width: fit-content;
  min-width: 205px;
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cree-wa-action);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 3px 0 rgba(0,0,0,.15);
  transition: transform .18s ease, filter .18s ease;
}
.cree-wa-start:hover { transform: translateY(-1px); filter: brightness(.96); }
.cree-wa-icon { width: 28px; height: 28px; display: inline-flex; }
@media (max-width: 782px) {
  .cree-wa-widget { bottom: 16px; }
  .cree-wa-pos-right { right: 16px; }
  .cree-wa-pos-left { left: 16px; }
  .cree-wa-launcher-compact .cree-wa-launcher { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .cree-wa-launcher-standard .cree-wa-launcher { min-height: 50px; padding: 0 16px; font-size: 15px; }
  .cree-wa-launcher-large .cree-wa-launcher { min-height: 56px; padding: 0 18px; font-size: 16px; }
  .cree-wa-launcher-text { max-width: 225px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cree-wa-popup { bottom: 66px; }
  .cree-wa-header { min-height: 126px; padding: 28px 54px 24px 22px; gap: 15px; }
  .cree-wa-avatar { width: 68px; height: 68px; }
  .cree-wa-header-copy strong { font-size: 18px; }
  .cree-wa-chat-area { padding: 20px 18px 24px; }
  .cree-wa-message-bubble { width: 100%; font-size: 15px; padding: 17px 18px; }
}
@media (max-width: 480px) {
  .cree-wa-popup { width: calc(100vw - 24px); }
  .cree-wa-pos-right { right: 12px; }
  .cree-wa-pos-left { left: 12px; }
}
@media (min-width: 783px) {
  .cree-wa-hide-desktop { display: none !important; }
}
@media (max-width: 782px) {
  .cree-wa-hide-mobile { display: none !important; }
}
