:root {
  --micropay-primary: #70137D; /* Purple */
  --micropay-secondary: #e6ae48; /* Yellow */
  --micropay-white: #fdfdfd;
  --micropay-dark: #2a2a2a;
  --micropay-border-radius: 12px;
  --micropay-font-family: "Georgia", "Times New Roman", serif;
  --micropay-shadow-light: rgba(44, 62, 80, 0.08);
  --micropay-shadow-medium: rgba(44, 62, 80, 0.15);
  --micropay-gradient: linear-gradient(135deg, #70137D, #e6ae48);
  --micropay-transition: all 0.25s ease-in-out;
}

#micropay-chatbot-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  left: auto;
  top: auto;
  z-index: 2000;
  background: transparent;
  color: #70137D;
  border: none;
  outline: none;
  font-size: 38px;
  width: auto;
  height: auto;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

#micropay-chatbot-toggle:hover {
  color: #e6ae48;
}

#micropay-chatbot-panel {
  position: fixed;
  right: 30px;
  bottom: 100px;
  left: auto;
  width: 350px;
  max-width: 95vw;
  height: 70vh;
  min-height: 400px;
  background: #fff;
  border-radius: 18px 18px 18px 0;
  box-shadow: 0 8px 32px rgba(112,19,125,0.18);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 3px solid #e6ae48;
  transition: right 0.3s, box-shadow 0.2s;
}

#micropay-chatbot-panel[hidden] {
  right: -400px;
}

#micropay-chatbot-header {
  background: linear-gradient(90deg, #70137D 80%, #e6ae48 100%);
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e6ae48;
}

#micropay-chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

#micropay-chatbot-close:hover {
  color: #e6ae48;
}

#micropay-chatbot-messages {
  flex: 1;
  padding: 18px 14px 12px 18px;
  overflow-y: auto;
  background: #f9f9f9;
  scrollbar-width: thin;
  scrollbar-color: #e6ae48 #f9f9f9;
}

#micropay-chatbot-messages::-webkit-scrollbar {
  width: 7px;
}

#micropay-chatbot-messages::-webkit-scrollbar-thumb {
  background: #e6ae48;
  border-radius: 6px;
}

.micropay-chatbot-message {
  margin-bottom: 13px;
  display: flex;
  flex-direction: column;
}

.micropay-chatbot-message.user {
  align-items: flex-end;
}

.micropay-chatbot-message.bot {
  align-items: flex-start;
}

.micropay-chatbot-bubble {
  max-width: 85%;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 15px;
  margin-bottom: 2px;
  background: #e6ae48;
  color: #222;
  box-shadow: 0 2px 8px rgba(230,174,72,0.07);
  word-break: break-word;
  line-height: 1.5;
}

.micropay-chatbot-message.user .micropay-chatbot-bubble {
  background: #70137D;
  color: #fff;
  border-bottom-right-radius: 6px;
  border-top-right-radius: 6px;
}

.micropay-chatbot-message.bot .micropay-chatbot-bubble {
  background: #e6ae48;
  color: #222;
  border-bottom-left-radius: 6px;
  border-top-left-radius: 6px;
}

.micropay-chatbot-message.bot .micropay-chatbot-bubble a {
  color: #70137D;
  background: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  text-decoration: underline;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.micropay-chatbot-message.bot .micropay-chatbot-bubble a:hover {
  color: #fff;
  background: #70137D;
  text-decoration: none;
}

#micropay-chatbot-form {
  display: flex;
  border-top: 2px solid #e6ae48;
  background: #fff;
  padding: 8px 10px 8px 10px;
}

#micropay-chatbot-input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  background: #f9f9f9;
  border-radius: 8px;
  margin-right: 8px;
  transition: box-shadow 0.2s;
}

#micropay-chatbot-input:focus {
  box-shadow: 0 0 0 2px #e6ae48;
}

#micropay-chatbot-send {
  background: #70137D;
  color: #fff;
  border: none;
  padding: 0 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

#micropay-chatbot-send:hover {
  background: #e6ae48;
  color: #222;
}

@media (max-width: 600px) {
  #micropay-chatbot-toggle {
    right: 10px;
    bottom: 10px;
    font-size: 32px;
  }

  #micropay-chatbot-panel {
    width: 99vw;
    min-width: 0;
    right: 0;
    bottom: 70px;
    height: 60vh;
    border-radius: 16px 16px 16px 0;
  }
}
