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

.gp-options-chatbot,
.gp-options-chatbot *{
  box-sizing: border-box;
}

.gp-options-chatbot button,
.gp-options-chatbot a{
  font: inherit;
}

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

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

.gp-options-chatbot__toggle:disabled{
  cursor: wait;
  opacity: .7;
}

.gp-options-chatbot__panel{
  width: min(94vw, 400px);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.17);
  overflow: hidden;
}

.gp-options-chatbot__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  background: #1f2328;
  color: #fff;
}

.gp-options-chatbot__header strong{
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.gp-options-chatbot__header-prompt{
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
}

.gp-options-chatbot__close{
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.gp-options-chatbot__content{
  display: grid;
  gap: 12px;
  max-height: min(58vh, 520px);
  padding: 14px;
  overflow-y: auto;
  background: linear-gradient(180deg, #f7f7f4 0%, #fff 100%);
}

.gp-options-chatbot__card{
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0,0,0,0.05);
}

.gp-options-chatbot__card h2{
  margin: 0;
  color: #1f2328;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.gp-options-chatbot__card p{
  margin: 7px 0 0;
  color: #4b4f54;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.gp-options-chatbot__ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gp-options-chatbot__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.gp-options-chatbot__cta--primary{
  background: #e1b12c;
  color: #111;
}

.gp-options-chatbot__cta--secondary{
  background: #1f2328;
  color: #fff;
}

.gp-options-chatbot__lead-form{
  flex: 1 0 100%;
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  background: #fff;
}

.gp-options-chatbot__lead-copy,
.gp-options-chatbot__lead-message{
  margin: 0;
  color: #4b4f54;
  font-size: 12px;
  line-height: 1.45;
}

.gp-options-chatbot__lead-field{
  display: grid;
  gap: 5px;
  color: #2f3337;
  font-size: 12px;
  font-weight: 700;
}

.gp-options-chatbot__lead-field input{
  min-height: 38px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 8px;
  background: #fff;
  color: #202124;
  font: inherit;
  font-weight: 400;
}

.gp-options-chatbot__lead-field input:focus{
  border-color: rgba(225,177,44,0.85);
  box-shadow: 0 0 0 3px rgba(225,177,44,0.18);
  outline: none;
}

.gp-options-chatbot__lead-actions{
  display: flex;
  gap: 8px;
}

.gp-options-chatbot__lead-submit,
.gp-options-chatbot__lead-cancel{
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.gp-options-chatbot__lead-submit{
  background: #e1b12c;
  color: #111;
}

.gp-options-chatbot__lead-cancel{
  border-color: rgba(0,0,0,0.12);
  background: #fff;
  color: #333;
}

.gp-options-chatbot__lead-submit:disabled,
.gp-options-chatbot__lead-cancel:disabled{
  cursor: wait;
  opacity: .7;
}

.gp-options-chatbot__lead-message{
  min-height: 16px;
  color: #8a3b15;
}

.gp-options-chatbot__lead-message--success{
  color: #1f6b3a;
  font-weight: 700;
}

.gp-options-chatbot__options{
  display: grid;
  gap: 10px;
}

.gp-options-chatbot__option-group{
  display: grid;
  gap: 8px;
}

.gp-options-chatbot__option-group--main{
  grid-template-columns: 1fr;
}

.gp-options-chatbot__option{
  min-height: 44px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: #fff;
  color: #202124;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.gp-options-chatbot__option:hover,
.gp-options-chatbot__option:focus-visible{
  border-color: rgba(0,91,86,0.34);
  background: #f2faf8;
  box-shadow: 0 7px 16px rgba(0,91,86,0.09);
  transform: translateY(-1px);
  outline: none;
}

.gp-options-chatbot__option:disabled{
  cursor: wait;
  opacity: .68;
  transform: none;
}

.gp-options-chatbot__option--primary{
  border-color: rgba(225,177,44,0.55);
  background: #fffaf0;
}

.gp-options-chatbot__option--ghost{
  background: #f7f7f4;
  color: #4b4f54;
}

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

.gp-options-chatbot__footer{
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.gp-options-chatbot__footer[hidden]{
  display: none;
}

.gp-options-chatbot__previous,
.gp-options-chatbot__start-over{
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.gp-options-chatbot__previous{
  margin-right: auto;
}

.gp-options-chatbot__previous[hidden]{
  display: none;
}

.gp-options-chatbot__previous:disabled,
.gp-options-chatbot__start-over:disabled{
  cursor: wait;
  opacity: .7;
}

@media (max-width: 540px){
  .gp-options-chatbot{
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

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

  .gp-options-chatbot__toggle{
    justify-self: end;
  }

  .gp-options-chatbot__content{
    max-height: min(64vh, 540px);
  }

  .gp-options-chatbot__option-group--main{
    grid-template-columns: 1fr;
  }
}
