.annie-widget {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
  font-family: Arial, Helvetica, sans-serif;
}

body.cart-open .annie-widget {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.annie-panel,
.annie-launcher,
.annie-nudge {
  pointer-events: auto;
}

.annie-panel {
  width: min(430px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 116px));
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(53, 240, 169, 0.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(53, 240, 169, 0.18), transparent 15rem),
    radial-gradient(circle at 95% 12%, rgba(255, 200, 87, 0.14), transparent 13rem),
    linear-gradient(150deg, rgba(7, 24, 24, 0.96), rgba(2, 9, 10, 0.98));
  color: #f5fbff;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

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

.annie-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.annie-avatar,
.annie-launcher-avatar,
.annie-mini-avatar {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #0d2426 0 36%, transparent 37%),
    radial-gradient(circle at 52% 56%, rgba(53, 240, 169, 0.5), transparent 44%),
    linear-gradient(135deg, #f4fff9, #53ffc8 38%, #153033 39% 100%);
  box-shadow:
    0 0 0 1px rgba(53, 240, 169, 0.4),
    0 0 28px rgba(53, 240, 169, 0.22);
}

.annie-avatar {
  width: 62px;
  height: 62px;
}

.annie-avatar span,
.annie-launcher-avatar::after,
.annie-mini-avatar::after {
  content: "";
  width: 24px;
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 23% 50%, #35f0a9 0 22%, transparent 23%),
    radial-gradient(circle at 77% 50%, #35f0a9 0 22%, transparent 23%);
  box-shadow: 0 0 12px rgba(53, 240, 169, 0.9);
}

.annie-header h2 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.annie-header h2 span {
  color: #35f0a9;
  font-size: 13px;
}

.annie-header p:not(.section-label) {
  margin: 4px 0 0;
  color: #9db0b7;
}

.annie-brand-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28em;
  margin: 0 0 4px;
  color: #35f0a9;
  text-transform: none;
}

.annie-brand {
  display: inline-flex;
  align-items: baseline;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.annie-brand .logo-ai,
.annie-brand em {
  color: #fff;
}

.annie-brand .logo-m,
.annie-brand strong {
  color: #35f0a9;
}

.annie-brand em {
  margin-left: 0.12em;
  font-size: 0.72em;
  font-style: normal;
}

.annie-brand-label > span:last-child {
  color: #35f0a9;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.annie-icon-button,
.annie-nudge-close {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5fbff;
}

.annie-icon-button {
  width: 36px;
  height: 36px;
}

.annie-messages {
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px 18px;
  scrollbar-color: rgba(53, 240, 169, 0.42) rgba(255, 255, 255, 0.08);
}

.annie-message {
  display: grid;
  gap: 8px;
  align-items: start;
}

.annie-message-bot {
  grid-template-columns: auto minmax(0, 1fr);
}

.annie-message-user {
  justify-items: end;
}

.annie-message p,
.annie-message ul {
  margin: 0;
}

.annie-message > div:last-child {
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #d9eaee;
}

.annie-message-user > div:last-child {
  border-color: rgba(53, 240, 169, 0.34);
  background: rgba(53, 240, 169, 0.18);
  color: #f1fffb;
}

.annie-mini-avatar {
  width: 34px;
  height: 34px;
}

.annie-product-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.annie-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(53, 240, 169, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(3, 14, 15, 0.64);
}

.annie-product-card strong,
.annie-support-card strong {
  display: block;
  color: #f5fbff;
}

.annie-product-card span,
.annie-support-card span {
  display: block;
  color: #9db0b7;
  font-size: 13px;
}

.annie-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 12px;
}

.annie-suggestions button,
.annie-support-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(53, 240, 169, 0.24);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #dcebed;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.annie-support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 18px 12px;
  border: 1px solid rgba(255, 200, 87, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 200, 87, 0.08);
}

.annie-support-card a,
.annie-support-link {
  border-color: rgba(255, 200, 87, 0.34);
  color: #ffc857;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.annie-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 18px 12px;
}

.annie-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.annie-form input {
  min-height: 48px;
  border: 1px solid rgba(53, 240, 169, 0.24);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5fbff;
  font: inherit;
}

.annie-form button {
  min-width: 78px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #35f0a9, #53ffc8);
  color: #06100d;
  font: inherit;
  font-weight: 900;
}

.annie-disclaimer {
  margin: 0;
  padding: 0 18px 16px;
  color: #9db0b7;
  font-size: 12px;
}

.annie-launcher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 174px;
  min-height: 62px;
  border: 1px solid rgba(53, 240, 169, 0.32);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  background:
    radial-gradient(circle at 22% 0%, rgba(53, 240, 169, 0.18), transparent 7rem),
    rgba(7, 22, 23, 0.94);
  color: #f5fbff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

.annie-launcher-avatar {
  width: 46px;
  height: 46px;
}

.annie-launcher strong,
.annie-launcher em {
  display: block;
  font-style: normal;
  line-height: 1.1;
  text-align: left;
}

.annie-launcher strong {
  color: #35f0a9;
  font-size: 18px;
}

.annie-launcher em {
  color: #9db0b7;
  font-size: 12px;
}

.annie-nudge {
  position: relative;
  width: min(310px, calc(100vw - 32px));
  border: 1px solid rgba(255, 200, 87, 0.32);
  border-radius: 16px;
  padding: 13px 42px 13px 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 200, 87, 0.16), transparent 7rem),
    rgba(7, 22, 23, 0.96);
  color: #f5fbff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.annie-widget.nudging .annie-nudge {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.annie-nudge strong,
.annie-nudge span {
  display: block;
}

.annie-nudge strong {
  color: #ffc857;
}

.annie-nudge span {
  color: #9db0b7;
  font-size: 13px;
}

.annie-nudge-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
}

@media (max-width: 740px) {
  .annie-widget {
    right: 10px;
    left: 10px;
    bottom: 14px;
    justify-items: stretch;
  }

  .annie-panel {
    width: auto;
    max-height: calc(100vh - 94px);
  }

  .annie-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 14px;
  }

  .annie-avatar {
    width: 50px;
    height: 50px;
  }

  .annie-header h2 {
    font-size: 24px;
  }

  .annie-support-card,
  .annie-form {
    grid-template-columns: 1fr;
  }

  .annie-launcher {
    min-width: 136px;
    justify-self: end;
  }
}
