#apna-ai-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0f5c4a, #0a3622);
  box-shadow: 0 18px 45px -15px rgba(10, 54, 34, 0.75);
  font-size: 23px;
}

#apna-ai-launcher::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(245, 158, 11, 0.55);
  border-radius: inherit;
  animation: apnaBotPulse 2.4s ease-in-out infinite;
}

@keyframes apnaBotPulse {
  50% {
    transform: scale(1.12);
    opacity: 0.25;
  }
}

#apna-ai-panel {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 1001;
  display: none;
  width: min(390px, calc(100vw - 28px));
  max-height: min(690px, calc(100vh - 125px));
  overflow: hidden;
  border: 1px solid rgba(15, 92, 74, 0.18);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px -28px rgba(0, 0, 0, 0.55);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

#apna-ai-panel.open {
  display: flex;
  flex-direction: column;
}

.apna-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px;
  color: #fff;
  background: linear-gradient(135deg, #0f5c4a, #0a3622);
}

.apna-ai-header strong {
  display: block;
  font-size: 15px;
}

.apna-ai-header small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
}

.apna-ai-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.apna-ai-messages {
  flex: 1;
  min-height: 260px;
  overflow-y: auto;
  padding: 15px;
  background: #faf7f2;
}

.apna-ai-message {
  width: fit-content;
  max-width: 86%;
  margin-bottom: 10px;
  border-radius: 16px;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.apna-ai-message.bot {
  border-bottom-left-radius: 5px;
  color: #1f2937;
  background: #fff;
  box-shadow: 0 8px 22px -18px rgba(0, 0, 0, 0.5);
}

.apna-ai-message.user {
  margin-left: auto;
  border-bottom-right-radius: 5px;
  color: #fff;
  background: #0f5c4a;
}

.apna-ai-quick {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 11px 14px;
  border-top: 1px solid #ece7df;
  background: #fff;
}

.apna-ai-quick button {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 92, 74, 0.16);
  border-radius: 999px;
  padding: 8px 11px;
  color: #0f5c4a;
  background: #e8f5ef;
  font-size: 10px;
  font-weight: 800;
}

.apna-ai-order-form {
  display: none;
  gap: 8px;
  padding: 12px 14px 0;
  background: #fff;
}

.apna-ai-order-form.open {
  display: grid;
}

.apna-ai-order-form input,
.apna-ai-order-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  outline: 0;
  padding: 9px 11px;
  font-size: 12px;
}

.apna-ai-order-form input:focus,
.apna-ai-order-form select:focus {
  border-color: #0f5c4a;
  box-shadow: 0 0 0 3px rgba(15, 92, 74, 0.08);
}

.apna-ai-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px 14px;
  background: #fff;
}

.apna-ai-compose input {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  outline: 0;
  padding: 11px 12px;
  font-size: 12px;
}

.apna-ai-send {
  display: grid;
  width: 44px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #0f5c4a;
}

@media (max-width: 520px) {
  #apna-ai-launcher {
    right: 14px;
    bottom: 14px;
  }

  #apna-ai-panel {
    right: 14px;
    bottom: 86px;
    max-height: calc(100vh - 105px);
  }
}

@media print {
  #apna-ai-launcher,
  #apna-ai-panel {
    display: none !important;
  }
}
