.cf-shell {
  padding: 8px;
}

.cf-widget:not(.is-open) .cf-track,
.cf-widget:not(.is-open) .cf-page {
  width: 100%;
}

.cf-widget.is-open {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-widget.is-open .cf-shell {
  margin: auto;
}

@media (max-width: 760px) {
  .cf-widget:not(.is-open) .cf-shell {
    height: 166px;
    width: 100%;
    max-width: 100%;
  }

  .cf-widget:not(.is-open) .cf-track {
    width: 100% !important;
    transform: translateX(0) !important;
  }

  .cf-widget:not(.is-open) .cf-page {
    display: none;
    width: 100% !important;
    min-width: 100% !important;
  }

  .cf-widget:not(.is-open) .cf-welcome {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .cf-widget:not(.is-open) .cf-button {
    width: auto;
    min-width: 124px;
  }

  .cf-widget.is-open {
    width: 100vw;
    height: 100dvh;
    padding: 16px;
  }

  .cf-widget.is-open .cf-shell {
    width: min(540px, calc(100vw - 32px));
    height: min(760px, calc(100dvh - 32px));
    min-height: 0;
    padding: 0;
    border: 1px solid var(--cf-line);
  }

  .cf-widget.is-open .cf-track {
    display: flex;
    width: 800% !important;
    height: 100%;
  }

  .cf-widget.is-open .cf-page {
    display: flex;
    width: 12.5% !important;
    min-width: 12.5% !important;
    padding: 28px 24px;
    color: var(--cf-ink);
  }

  .cf-widget.is-open .cf-question-title,
  .cf-widget.is-open .cf-question strong {
    color: var(--cf-ink);
  }

.cf-widget.is-open .cf-question small {
    color: #51675a;
  }
}
