.wn-assistant{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

@media (max-width: 420px){
  .wn-assistant{ right: 14px; bottom: 14px; }
}

.wn-fab{
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid rgba(22,163,74,0.28);
  background: linear-gradient(180deg, rgba(22,163,74,0.98), rgba(22,163,74,0.92));
  box-shadow: 0 18px 45px rgba(16,24,40,0.22), 0 6px 16px rgba(16,24,40,0.14);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.wn-fab:hover{
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 22px 55px rgba(16,24,40,0.25), 0 7px 18px rgba(16,24,40,0.15);
  filter: saturate(1.05);
}
.wn-fab:active{ transform: scale(0.98); }
.wn-fab:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(22,163,74,0.22), 0 18px 45px rgba(16,24,40,0.22);
}

.wn-fab__icon{ color: white; font-size: 22px; }

.wn-tooltip{
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,23,42,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(16,24,40,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}
.wn-fab:hover .wn-tooltip{
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}
@media (max-width: 640px){ .wn-tooltip{ display:none; } }

.wn-badge{
  position: absolute;
  right: -2px;
  top: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ffffff;
  color: #16a34a;
  border: 1px solid rgba(22,163,74,0.35);
  box-shadow: 0 10px 22px rgba(16,24,40,0.18);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.wn-fab.wn-pulse::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:999px;
  border: 2px solid rgba(22,163,74,0.35);
  animation: wnPulse 1.8s ease-out infinite;
}
@keyframes wnPulse{
  0%{ transform: scale(0.82); opacity: .65; }
  70%{ transform: scale(1.06); opacity: 0; }
  100%{ transform: scale(1.06); opacity: 0; }
}

.wn-panel{
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 360px;
  max-width: min(360px, calc(100vw - 24px));
  border-radius: 18px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transform-origin: bottom right;
  animation: wnPop .16s ease-out;
}
.wn-panel--active-bg {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.1);
  box-shadow: 0 24px 60px rgba(16,24,40,0.18), 0 8px 20px rgba(16,24,40,0.10);
  overflow: hidden;
}
.wn-panel--chat-bg {
  background-color: #dce8d0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Crect width='56' height='100' fill='%23d0e8c0'/%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23c4dfb4' stroke-width='1'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23c4dfb4' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}
@keyframes wnPop{
  from{ transform: translateY(10px) scale(.98); opacity: .0; }
  to{ transform: translateY(0) scale(1); opacity: 1; }
}
@media (max-width: 420px){
  .wn-panel{ width: calc(100vw - 28px); bottom: 72px; }
}

.wn-panel__header{
  display: none !important;
}
.wn-panel__title{ font-size: 15px; font-weight: 900; color: #0f172a; letter-spacing: -0.2px; }
.wn-panel__subtitle{ margin-top: 3px; font-size: 12.5px; font-weight: 600; color: rgba(15,23,42,0.66); }
.wn-iconbtn{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.65);
  display: grid;
  place-items: center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.wn-iconbtn:hover{ background: rgba(255,255,255,0.88); transform: translateY(-1px); }
.wn-iconbtn:active{ transform: scale(.98); }

.wn-panel__body{ padding: 12px 14px 14px 14px; }
.wn-actions{ display:grid; grid-template-columns: 1fr; gap: 10px; }
.wn-actionbtn{
  width: 100%;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.08);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.wn-actionbtn__icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
.wn-actionbtn__title{ display:block; font-size: 14px; font-weight: 900; color: #0f172a; letter-spacing: -0.2px; }
.wn-actionbtn__subtitle{ display:block; margin-top: 2px; font-size: 12px; font-weight: 600; color: rgba(15,23,42,0.65); }
.wn-actionbtn--primary{ border-color: rgba(22,163,74,0.22); background: linear-gradient(180deg, #f0fdf4, #ffffff); }
.wn-actionbtn--primary .wn-actionbtn__icon{ background: rgba(22,163,74,0.18); color: #15803d; border: 1px solid rgba(22,163,74,0.22); }
.wn-actionbtn--ghost{ border-color: rgba(15,23,42,0.08); background: #ffffff; }
.wn-actionbtn--ghost .wn-actionbtn__icon{ background: rgba(22,163,74,0.10); color: #15803d; border: 1px solid rgba(22,163,74,0.16); }
.wn-actionbtn:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.10); }
.wn-actionbtn:active{ transform: scale(.99); }

.wn-hint{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px dashed rgba(15,23,42,0.12);
  color: rgba(15,23,42,0.70);
  font-size: 12.5px;
  font-weight: 600;
}

.wn-chat__stream{
  height: 320px;
  overflow:auto;
  padding: 20px 10px 10px 10px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  background-color: transparent;
  background-image: none;
}
.wn-bubble{
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}
.wn-bubble--bot{ align-self: flex-start; border-top-left-radius: 4px; }
.wn-bubble--user{
  align-self: flex-end;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: 1px solid rgba(22,163,74,0.8);
  border-top-right-radius: 4px;
}
.wn-typing{ display:flex; gap: 6px; align-items:center; }
.wn-dots{ display:flex; gap: 4px; }
.wn-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15,23,42,0.35);
  animation: wnDot 1.1s ease-in-out infinite;
}
.wn-dot:nth-child(2){ animation-delay: .15s; }
.wn-dot:nth-child(3){ animation-delay: .3s; }
@keyframes wnDot{
  0%, 100%{ transform: translateY(0); opacity: .45; }
  50%{ transform: translateY(-3px); opacity: .95; }
}

.wn-quickqs{ 
  margin: 0 -14px -14px -14px;
  padding: 12px 14px; 
  background: rgba(255,255,255,0.96);
  border-top: 1px solid rgba(15,23,42,0.06); 
}
.wn-quickqs__title{ font-size: 12px; font-weight: 800; color: rgba(15,23,42,0.70); margin-bottom: 8px; }
.wn-quickqs__grid{ display:grid; grid-template-columns: 1fr; gap: 8px; }
.wn-qbtn{
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  color: #0f172a;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.wn-qbtn:hover{
  transform: translateY(-1px);
  border-color: rgba(22,163,74,0.20);
  background: rgba(22,163,74,0.10);
}
.wn-qbtn:active{ transform: scale(.99); }

.wn-opbtn{
  margin-top: 8px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(22,163,74,0.14);
  border: 1px solid rgba(22,163,74,0.24);
  color: #15803d;
  font-weight: 900;
  font-size: 13px;
  cursor:pointer;
  transition: transform .14s ease, filter .14s ease;
}
.wn-opbtn:hover{ transform: translateY(-1px); filter: saturate(1.05); }
.wn-opbtn:active{ transform: scale(.99); }

.wn-form{ display:flex; flex-direction: column; gap: 10px; }
.wn-fieldrow{ display:flex; flex-direction: column; gap: 6px; }
.wn-label{ font-size: 12px; font-weight: 850; color: rgba(15,23,42,0.72); }
.wn-input{
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.62);
  font-size: 13px;
  font-weight: 650;
  outline: none;
  transition: box-shadow .12s ease, border-color .12s ease;
}
.wn-input:focus{
  border-color: rgba(22,163,74,0.34);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.15);
}
.wn-submit{
  margin-top: 2px;
  border-radius: 16px;
  padding: 12px 12px;
  border: 1px solid rgba(22,163,74,0.28);
  background: linear-gradient(180deg, rgba(22,163,74,0.98), rgba(22,163,74,0.90));
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.wn-submit:hover{ transform: translateY(-1px); box-shadow: 0 16px 32px rgba(16,24,40,0.12); }
.wn-submit:active{ transform: scale(.99); }
.wn-submit:disabled{ opacity: .65; cursor: not-allowed; transform: none; }

.wn-status{ min-height: 18px; font-size: 12.5px; font-weight: 750; color: rgba(15,23,42,0.70); }
.wn-status.wn-status--error{ color: #b91c1c; }
.wn-status.wn-status--success{ color: #15803d; }

.wn-panel__footer{
  margin: 0 -14px -14px -14px;
  padding: 0 14px 14px 14px;
  border-top: none;
  display:flex;
  justify-content: flex-start;
  background: rgba(255,255,255,0.96);
}
#wn-screen-contact .wn-panel__footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,0.06);
}
.wn-linkbtn{
  border: 0;
  background: transparent;
  color: rgba(15,23,42,0.72);
  font-weight: 850;
  font-size: 13px;
  cursor:pointer;
  padding: 8px 6px;
  border-radius: 12px;
  transition: background .14s ease, color .14s ease;
}
.wn-linkbtn:hover{
  background: rgba(255,255,255,0.55);
  color: #0f172a;
}

