.gp-chatbot{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.gp-chatbot__toggle,
.gp-chatbot__send,
.gp-chatbot__reset,
.gp-chatbot__close{
  font: inherit;
}

.gp-chatbot__toggle{
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  background: #e1b12c;
  color: #111;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0,0,0,0.16);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.gp-chatbot__toggle:hover{
  transform: translateY(-1px);
  background: #d6a623;
  box-shadow: 0 18px 36px rgba(0,0,0,0.2);
}

.gp-chatbot__panel{
  width: min(92vw, 380px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 24px 60px rgba(0,0,0,0.16);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.gp-chatbot__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #1d1d1d;
  color: #fff;
}

.gp-chatbot__header strong{
  display: block;
  font-size: 16px;
}

.gp-chatbot__header p{
  margin: 4px 0 0;
  color: rgba(255,255,255,0.76);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.gp-chatbot__close{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.gp-chatbot__messages{
  max-height: min(52vh, 420px);
  padding: 14px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(248,248,248,0.98) 0%, rgba(255,255,255,0.98) 100%);
}

.gp-chatbot__message{
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
}

.gp-chatbot__message--assistant{
  justify-self: start;
  background: #fff;
  color: #222;
  border: 1px solid rgba(0,0,0,0.06);
}

.gp-chatbot__message--user{
  justify-self: end;
  background: #222;
  color: #fff;
}

.gp-chatbot__message-actions{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gp-chatbot__message-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.gp-chatbot__message-action:hover{
  transform: translateY(-1px);
}

.gp-chatbot__message-action--primary{
  background: #e1b12c;
  color: #111;
}

.gp-chatbot__message-action--secondary{
  background: #1d1d1d;
  color: #fff;
}

.gp-chatbot__message-action--ghost{
  background: #fff;
  border-color: rgba(0,0,0,0.12);
  color: #333;
}

.gp-chatbot__form{
  padding: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.gp-chatbot__label{
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.gp-chatbot__input{
  width: 100%;
  min-height: 92px;
  padding: 11px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  resize: vertical;
  font: inherit;
  color: #222;
  background: #fff;
}

.gp-chatbot__input:focus{
  outline: 2px solid rgba(225,177,44,0.22);
  border-color: #e1b12c;
}

.gp-chatbot__actions{
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gp-chatbot__send,
.gp-chatbot__reset{
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
}

.gp-chatbot__send{
  background: #e1b12c;
  color: #111;
  cursor: pointer;
}

.gp-chatbot__reset{
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  color: #333;
  cursor: pointer;
}

.gp-chatbot__send:disabled,
.gp-chatbot__reset:disabled,
.gp-chatbot__toggle:disabled,
.gp-chatbot__input:disabled{
  opacity: 0.7;
  cursor: wait;
}

.gp-chatbot__status{
  min-height: 18px;
  margin: 8px 2px 0;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

@media (max-width: 640px){
  .gp-chatbot{
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-items: stretch;
  }

  .gp-chatbot__toggle{
    width: 100%;
  }

  .gp-chatbot__panel{
    width: 100%;
  }
}
