.gftl-widget {
  position: fixed;
  right: 0;
  bottom: 20px;
  z-index: 1200;
}

.gftl-tools {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}

.gftl-btn {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 0;
  width: 50px;
}

.gftl-btn img {
  display: block;
}

.gftl-btn--help {
  background: #110081;
  height: 50px;
  border-radius: 5px 0 0 0;
}

.gftl-btn--help img {
  height: 24px;
  width: 24.286px;
}

.gftl-btn--top {
  background: #03f;
  border-radius: 0 0 0 5px;
  flex-direction: column;
  height: 50px;
}

.gftl-btn--top img {
  height: 15.412px;
  margin-top: 1px;
  width: 15.41px;
}

.gftl-btn--top span {
  color: #fff;
  font-family: var(--base-font-family-valueSansPro-medium, Arial, sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.gftl-help-panel {
  background: #110081;
  border-radius: 30px 0 0 0;
  bottom: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  right: 50px;
  width: 390px;
}

.gftl-help-panel:not(.is-expanded) {
  /* height: 412px; */
  height: 440px;
}

.gftl-help-panel.is-expanded {
  height: 722px;
}

.gftl-help-panel.gftl-hidden,
.gftl-hidden {
  display: none !important;
}

.gftl-help-header {
  align-items: center;
  background: #110081;
  display: flex;
  height: 60px;
  justify-content: space-between;
  padding: 0 22px;
  position: relative;
}

.gftl-help-header-title {
  align-items: center;
  display: inline-flex;
  gap: 14px;
}

.gftl-help-header-title img {
  height: 30px;
  width: 30px;
}

.gftl-help-title {
  color: #fff;
  font-family: var(--base-font-family-valueSansPro-heading, Arial, sans-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.33;
  margin: 0;
}

.gftl-close {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  padding: 0;
  width: 26px;
}

.gftl-close img {
  display: block;
  height: 26px;
  width: 26px;
}

.gftl-help-body {
  background: #fff;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  /* padding: 32px 22px 22px; */
  padding: 22px;
}

.gftl-help-section {
  align-items: flex-start;
  color: inherit;
  display: flex;
  text-decoration: none;
  padding-top: 11px !important;
}

.gftl-help-section--whatsapp {
  position: relative;
}

.gftl-help-section--toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: 100%;
}

.gftl-help-section--phone {
  gap: 19px;
}

.gftl-help-section-icon-wrap {
  flex: 0 0 auto;
}

.gftl-help-section-icon {
  display: block;
}

.gftl-help-section-icon--whatsapp {
  height: 30px;
  width: 30px;
}

.gftl-help-section-icon--message {
  height: 27px;
  width: 28px;
}

.gftl-help-section-icon--phone {
  height: 30px;
  width: 18.75px;
}

.gftl-help-section-copy {
  margin-left: 14px;
}

.gftl-help-section-copy--whatsapp {
  width: 215px;
}

.gftl-help-section-copy--message {
  margin-left: 15px;
  /* padding-bottom: 14px; */
  width: 244px;
}

.gftl-help-section-copy--phone {
  margin-left: 0;
  width: 275px;
}

.gftl-help-section-copy h4 {
  color: #110081;
  font-family: var(--base-font-family-valueSansPro-heading, Arial, sans-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.33;
  margin: 0;
}

.gftl-help-section-copy p {
  color: #333;
  font-family: var(--base-font-family-valueSansPro, Arial, sans-serif);
  font-size: 14px;
  line-height: 1.57;
  margin: 10px 0 0;
}

.gftl-help-section--whatsapp .gftl-help-section-copy p,
.gftl-help-section--phone .gftl-help-section-copy p {
  line-height: 1.33;
}

.gftl-help-section-copy--phone p a {
  color: #333;
  font-family: var(--base-font-family-valueSansPro-medium, Arial, sans-serif);
  text-decoration: underline;
}

.gftl-help-online-status {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
  margin-top: 0;
}

.gftl-help-online-dot {
  background: #04ca55;
  border-radius: 999px;
  height: 15px;
  width: 15px;
}

.gftl-help-online-status span:last-child {
  color: #00874d;
  font-family: var(--base-font-family-valueSansPro, Arial, sans-serif);
  font-size: 14px;
  line-height: 18px;
}

.gftl-help-online-status.is-offline .gftl-help-online-dot {
  background: #b3b3b3;
}

.gftl-help-online-status.is-offline span:last-child {
  color: #808080;
}

.gftl-help-section--whatsapp.is-offline {
  cursor: default;
  pointer-events: none;
}

.gftl-help-divider {
  background: grey;
  flex-shrink: 0;
  height: 1px;
  margin: 22px 0 18px;
}

.gftl-help-chevron {
  align-items: center;
  display: inline-flex;
  height: 15px;
  justify-content: center;
  margin-left: auto;
  margin-top: 3px;
  transition: transform 0.2s ease;
  width: 15px;
}

.gftl-help-chevron img {
  display: block;
  height: 9.263px;
  width: 15px;
}

.gftl-help-chevron.is-expanded {
  transform: rotate(180deg);
}

.gftl-help-form {
  margin-top: 24px;
}

.gftl-help-title-group {
  margin-bottom: 12px;
}

.gftl-help-title-toggle {
  background: #b3b3b3;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 160px;
  min-height: 52px;
  padding: 2px;
  position: relative;
}

.gftl-help-title-input {
  position: absolute;
  visibility: hidden;
}

.gftl-help-title-option {
  align-items: center;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--base-font-family-valueSansPro-heading, Arial, sans-serif);
  font-size: 16px;
  justify-content: center;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.gftl-help-title-input:checked + .gftl-help-title-option {
  color: #110081;
}

.gftl-help-title-slider {
  background: #fff;
  border-radius: 10px;
  bottom: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  left: 2px;
  position: absolute;
  top: 2px;
  transform: translateX(0);
  transition: transform 0.2s ease;
  width: calc(50% - 2px);
}

.gftl-help-title-input--ms:checked ~ .gftl-help-title-slider {
  transform: translateX(100%);
}

.gftl-help-form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.gftl-help-field {
  display: block;
}

.gftl-help-field input,
.gftl-help-field textarea {
  background: #fff;
  border: 1px solid #808080;
  border-radius: 8px;
  box-sizing: border-box;
  color: #333;
  font-family: var(--base-font-family-valueSansPro, Arial, sans-serif);
  font-size: 16px;
  width: 100%;
}

.gftl-help-field input {
  height: 48px;
  line-height: 21.3px;
  padding: 0 12px;
}

.gftl-help-field.is-error input,
.gftl-help-field.is-error textarea {
  border-color: #ff161a;
}

.gftl-help-field input::placeholder,
.gftl-help-field textarea::placeholder {
  color: #a0a0a0;
}

.gftl-help-field span {
  color: #ff161a;
  display: block;
  font-family: var(--base-font-family-valueSansPro, Arial, sans-serif);
  font-size: 12px;
  line-height: 16px;
  margin-top: 4px;
}

.gftl-help-field--email {
  margin-bottom: 12px;
}

.gftl-help-consent {
  display: block;
  margin-top: 14px;
}

.gftl-help-consent-copy {
  color: #333;
  font-family: var(--base-font-family-valueSansPro, Arial, sans-serif);
  font-size: 12px;
  line-height: 14px;
}

.gftl-help-consent-copy a {
  color: #0066cc;
  text-decoration: underline;
}

.gftl-help-submit {
  align-items: center;
  background: #03f;
  border: 2px solid #03f;
  border-radius: 900px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--base-font-family-valueSansPro-medium, Arial, sans-serif);
  font-size: 16px;
  height: 45px;
  justify-content: center;
  margin-bottom: 12px;
  margin-top: 18px;
  min-width: 123px;
  padding: 0 20px;
}

.gftl-help-success {
  font-family: var(--base-font-family-valueSansPro, Arial, sans-serif);
  font-size: 12px;
  margin: 2px 0 0;
}

.gftl-help-success.is-success {
  color: #15803d;
}

.gftl-help-success.is-error {
  color: #b91c1c;
}

@media (max-width: 992px) {
  .gftl-widget {
    bottom: max(20px, env(safe-area-inset-bottom));
    right: 0;
    z-index: 1300;
  }

  .gftl-btn {
    width: 40px;
  }

  .gftl-btn--help,
  .gftl-btn--top {
    height: 40px;
  }

  .gftl-btn--help img {
    height: 22px;
    width: 22.262px;
  }

  .gftl-btn--top img {
    height: 13.576px;
    width: 13.574px;
  }

  .gftl-btn--top span {
    font-size: 11px;
    margin-top: 1px;
  }

  .gftl-help-panel {
    border-radius: 24px 0 0 0;
    max-height: calc(100dvh - 40px);
    right: 40px;
    width: min(340px, calc(100vw - 52px));
  }

  .gftl-help-panel:not(.is-expanded),
  .gftl-help-panel.is-expanded {
    height: auto;
  }

  .gftl-help-panel {
    overflow: hidden;
  }

  .gftl-help-body {
    max-height: calc(100dvh - 94px);
    overflow-y: auto;
    padding: 24px 18px 20px;
  }

  .gftl-help-section--whatsapp .gftl-help-section-copy,
  .gftl-help-section-copy--message,
  .gftl-help-section-copy--phone {
    width: auto;
  }

  .gftl-help-section-copy--message {
    padding-bottom: 0;
  }

  .gftl-help-online-status {
    margin-left: 10px;
  }

  .gftl-help-form-row {
    grid-template-columns: 1fr;
  }

  .gftl-help-title-toggle {
    max-width: 220px;
  }

  .gftl-widget.is-panel-open {
    bottom: auto;
    height: 100dvh;
    inset: 0;
    pointer-events: none;
    right: auto;
    width: 100%;
  }

  .gftl-widget.is-panel-open .gftl-tools {
    display: none;
  }

  .gftl-widget.is-panel-open .gftl-help-panel {
    background: #fff;
    bottom: auto;
    border-radius: 0;
    box-shadow: none;
    left: 0;
    max-height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    pointer-events: auto;
    position: fixed;
    right: auto;
    top: 0;
    transform: none;
    width: 100vw;
  }

  .gftl-widget.is-help-open .gftl-help-panel {
    background: #110081;
  }

  .gftl-widget.is-help-open .gftl-help-header {
    height: 75px;
    padding: 20px 24px;
  }

  .gftl-widget.is-help-open .gftl-help-header-title {
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
  }

  .gftl-widget.is-help-open .gftl-help-title {
    font-size: clamp(15px, 4vw, 16px);
    line-height: 1.33;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gftl-widget.is-help-open .gftl-close {
    flex: 0 0 auto;
    height: 35px;
    margin-left: 12px;
    width: 35px;
  }

  .gftl-widget.is-help-open .gftl-close img {
    height: 35px;
    width: 35px;
  }

  .gftl-widget.is-help-open .gftl-help-body {
    border-top-left-radius: 30px;
    box-sizing: border-box;
    flex: 1 1 auto;
    max-height: none;
    overflow-y: auto;
    padding: 32px 29px;
  }

  .gftl-widget.is-help-open .gftl-help-divider {
    margin: 30px 0;
  }

  .gftl-widget.is-help-open .gftl-help-section--whatsapp .gftl-help-section-copy {
    min-width: 0;
    width: calc(100% - 44px);
  }

  .gftl-widget.is-help-open .gftl-help-section--whatsapp .gftl-help-section-copy h4 {
    font-size: clamp(15px, 4vw, 16px);
    overflow: hidden;
    padding-right: 68px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gftl-widget.is-help-open .gftl-help-section-copy--message {
    width: 244px;
  }

  .gftl-widget.is-help-open .gftl-help-section-copy--phone {
    width: 275px;
  }

  .gftl-widget.is-help-open .gftl-help-section-copy p {
    line-height: 1.5;
  }

  .gftl-widget.is-help-open .gftl-help-section--whatsapp .gftl-help-section-copy p,
  .gftl-widget.is-help-open .gftl-help-section--phone .gftl-help-section-copy p {
    line-height: normal;
  }

  .gftl-widget.is-help-open .gftl-help-section--whatsapp .gftl-help-section-copy p {
    font-size: clamp(13px, 3.5vw, 14px);
    white-space: nowrap;
  }

  .gftl-widget.is-help-open .gftl-help-online-status {
    margin-left: 0;
    position: absolute;
    right: 0;
    top: 2px;
  }
}