.gcw-root {
  --gcw-bubble-color: #17202a;
  --gcw-bubble-hover-color: #26415d;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gcw-launcher {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--gcw-bubble-color);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(23, 32, 42, 0.28);
  cursor: pointer;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  border:2px solid #fff;
}

.gcw-launcher:hover,
.gcw-launcher:focus {
  background: var(--gcw-bubble-hover-color);
  outline: 3px solid rgba(38, 65, 93, 0.2);
  outline-offset: 3px;
}

.gcw-launcher-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.gcw-launcher-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.gcw-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(580px, calc(100vh - 112px));
  overflow: hidden;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.gcw-header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf3;
  background: #f8fafc;
}

.gcw-title {
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcw-back {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #526071;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 9px;
  text-align: left;
}

.gcw-back:hover,
.gcw-back:focus {
  background: #e8edf3;
  outline: none;
}

.gcw-back:disabled {
  cursor: default;
  opacity: 0.36;
}

.gcw-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #526071;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.gcw-close:hover,
.gcw-close:focus {
  background: #e8edf3;
  outline: none;
}

.gcw-body {
  display: grid;
  gap: 14px;
  max-height: calc(min(580px, 100vh - 112px) - 59px);
  overflow-y: auto;
  padding: 16px;
}

.gcw-message {
  border-radius: 8px;
  background: #eef5f3;
  color: #10201c;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 14px;
}

.gcw-answers,
.gcw-form,
.gcw-shortcode-form {
  display: grid;
  gap: 10px;
}

.gcw-answer,
.gcw-submit {
  width: 100%;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: #ffffff;
  color: #17202a;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  padding: 11px 12px;
  text-align: left;
}

.gcw-answer:hover,
.gcw-answer:focus {
  border-color: #26415d;
  box-shadow: 0 0 0 3px rgba(38, 65, 93, 0.12);
  outline: none;
}

.gcw-submit {
  background: #1f6f61;
  border-color: #1f6f61;
  color: #ffffff;
  text-align: center;
}

.gcw-submit:hover,
.gcw-submit:focus {
  background: #195a4f;
  outline: 3px solid rgba(31, 111, 97, 0.18);
}

.gcw-field {
  display: grid;
  gap: 6px;
  color: #263445;
  font-size: 13px;
  font-weight: 650;
}

.gcw-field input,
.gcw-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  color: #111827;
  font: inherit;
  padding: 10px 11px;
}

.gcw-field textarea {
  min-height: 86px;
  resize: vertical;
}

.gcw-field input:focus,
.gcw-field textarea:focus {
  border-color: #1f6f61;
  box-shadow: 0 0 0 3px rgba(31, 111, 97, 0.14);
  outline: none;
}

.gcw-shortcode-form .gform_wrapper {
  margin: 0;
}

.gcw-shortcode-form .gform_wrapper.gravity-theme .gfield_label,
.gcw-shortcode-form .gform_wrapper.gravity-theme .gform-field-label {
  color: #263445;
  font-size: 13px;
}

.gcw-shortcode-form .gform_wrapper.gravity-theme input,
.gcw-shortcode-form .gform_wrapper.gravity-theme select,
.gcw-shortcode-form .gform_wrapper.gravity-theme textarea {
  border-radius: 8px;
  font-size: 14px;
}

.gcw-shortcode-form .gform_wrapper.gravity-theme .gform_footer {
  margin: 12px 0 0;
  padding: 0;
}

@media (max-width: 480px) {
  .gcw-root {
    right: 16px;
    bottom: 16px;
  }

  .gcw-panel {
    bottom: 68px;
  }
}
