#pearl-chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #7C8B6F;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: all .3s ease;
  border: none;
}
#pearl-chat-bubble:hover {
  background: #2C2C2C;
  transform: scale(1.1);
}

#pearl-chat-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-height: 520px;
  background: #FDFBF7;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}

.pearl-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #7C8B6F;
  color: #fff;
}
.pearl-chat-header-name {
  font-weight: 700;
  font-size: 1rem;
}
.pearl-chat-header-status {
  font-size: .75rem;
  opacity: .8;
}
.pearl-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
}
.pearl-chat-close:hover { opacity: 1; }

.pearl-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 320px;
}

.pearl-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.5;
  animation: pearlFadeIn .3s ease;
}
.pearl-msg a { color: #7C8B6F; font-weight: 600; text-decoration: underline; }

@keyframes pearlFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pearl-msg-bot {
  background: #EEF2EA;
  color: #2C2C2C;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.pearl-msg-user {
  background: #7C8B6F;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.pearl-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 8px;
}
.pearl-suggestion {
  background: #fff;
  border: 1.5px solid #A8B89A;
  color: #7C8B6F;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: .78rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.pearl-suggestion:hover {
  background: #7C8B6F;
  color: #fff;
  border-color: #7C8B6F;
}

.pearl-chat-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #E8DFD0;
  background: #fff;
}
#pearl-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #E8DFD0;
  border-radius: 50px;
  font-size: .9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border .2s;
  background: #FDFBF7;
}
#pearl-chat-input:focus {
  border-color: #7C8B6F;
}
#pearl-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #7C8B6F;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
#pearl-chat-send:hover {
  background: #2C2C2C;
}

/* Mobile */
@media (max-width: 480px) {
  #pearl-chat-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .pearl-chat-messages {
    max-height: none;
    flex: 1;
  }
}
