.lucy-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  font-family: inherit;
}
.lucy-launch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 15px 5px 5px;
  border: 1px solid #ffd0ab;
  border-radius: 40px;
  background: linear-gradient(120deg, #a90030, #dc073f);
  color: white;
  box-shadow: 0 6px 24px #70032440;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}
.lucy-launch b {
  display: block;
  font-size: 17px;
}
.lucy-face {
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff0d9;
  flex-shrink: 0;
  border: 2px solid #ffe8bc;
}
.lucy-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
}
.lucy-launch .lucy-face {
  animation: lucy-wave 3s ease-in-out infinite;
}
.lucy-panel {
  position: absolute;
  bottom: 82px;
  right: 0;
  width: 365px;
  max-width: calc(100vw - 24px);
  height: 510px;
  max-height: calc(100dvh - 115px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f0d4dd;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 65px #28324740;
}
.lucy-panel[hidden] {
  display: none;
}
.lucy-panel header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  background: linear-gradient(115deg, #a40030, #d9003c);
  color: white;
}
.lucy-panel header small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.lucy-panel header .lucy-face {
  width: 43px;
  height: 43px;
}
.lucy-close {
  margin-left: auto;
  border: 0;
  background: #ffffff22;
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 25px;
  cursor: pointer;
}
.lucy-messages {
  overflow: auto;
  flex: 1;
  min-height: 80px;
  padding: 14px;
  background: #fffafb;
}
.lucy-bubble {
  max-width: 92%;
  margin: 0 0 10px;
  padding: 11px 13px;
  border-radius: 13px 13px 13px 3px;
  background: #f2edf1;
  color: #23364d;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.lucy-bubble a {
  color: #a90030;
  font-weight: 700;
  text-decoration: underline;
}
.lucy-user {
  margin-left: auto;
  background: #b60033;
  color: white;
  border-radius: 13px 13px 3px 13px;
}
.lucy-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid #f0e4e9;
}
.lucy-quick button {
  border: 1px solid #e8becb;
  border-radius: 15px;
  padding: 7px 10px;
  background: #fff;
  color: #9b002c;
  font-size: 11px;
  cursor: pointer;
  min-height: 30px;
}
.lucy-form {
  display: flex;
  padding: 0 12px 10px;
  gap: 7px;
}
.lucy-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #ccd5df;
  border-radius: 10px;
  padding: 11px;
  font: inherit;
  font-size: 13px;
}
.lucy-form button {
  border: 0;
  background: #be0035;
  color: white;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}
.lucy-footnote {
  padding: 0 12px 10px;
  color: #677587;
  font-size: 10px;
}
.lucy-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.lucy-widget button:focus-visible,
.lucy-widget a:focus-visible {
  outline: 3px solid #eaa23b;
  outline-offset: 2px;
}
@keyframes lucy-wave {
  50% {
    transform: translateY(-3px) rotate(-5deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lucy-launch .lucy-face {
    animation: none;
  }
}
@media (max-width: 600px) {
  .lucy-widget {
    right: 10px;
    bottom: 12px;
  }
  .lucy-launch {
    padding-right: 10px;
  }
  .lucy-launch .lucy-face {
    width: 45px;
    height: 45px;
  }
  .lucy-panel {
    bottom: 68px;
  }
}
