.leanpay-banner {
  --leanpay-coral: #fb7d64;
  --leanpay-coral-soft: #ffc8bc;
  --leanpay-text: #343434;
  --leanpay-muted: #7a7a7a;
  width: 100%;
  max-width: 720px;
  margin-top: 22px;
  margin-right: auto;
  font-family: inherit;
}

.leanpay-banner__summary {
  width: 100%;
  min-height: 92px;
  border: 0;
  border-radius: 8px;
  background: var(--leanpay-coral);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
}

.leanpay-banner__summary-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.leanpay-banner__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.leanpay-banner__summary-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.leanpay-banner__price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  font-size: 16px;
  line-height: 1.1;
  min-width: 0;
}

.leanpay-banner__price-line strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.leanpay-banner__price-line span {
  font-size: 14px;
  font-weight: 700;
}

.leanpay-banner__subtitle {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.leanpay-banner__subtitle img {
  display: inline-block;
  height: 16px;
  width: auto;
  margin-left: 5px;
  vertical-align: middle;
}

.leanpay-banner--zero-fee .leanpay-banner__summary-main {
  align-items: center;
}

.leanpay-banner--zero-fee .leanpay-banner__icon {
  width: 60px;
  height: 60px;
  flex-basis: 60px;
}

.leanpay-banner--zero-fee .leanpay-banner__summary-copy {
  gap: 10px;
}

.leanpay-banner--zero-fee .leanpay-banner__price-line {
  font-size: 18px;
}

.leanpay-banner--zero-fee .leanpay-banner__price-line strong {
  font-size: 28px;
}

.leanpay-banner--zero-fee .leanpay-banner__price-line span {
  font-size: 16px;
}

.leanpay-banner--zero-fee .leanpay-banner__subtitle {
  font-size: 17px;
}

.leanpay-banner__calculate {
  width: 100%;
  min-height: 50px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--leanpay-coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.leanpay-banner__calculate svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 180ms ease;
}

.leanpay-banner.is-open .leanpay-banner__calculate svg {
  transform: rotate(180deg);
}

.leanpay-banner__panel {
  margin-top: 8px;
  padding: 21px 16px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.leanpay-banner__panel-top {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
}

.leanpay-banner__panel-logo {
  width: 122px;
  height: auto;
}

.leanpay-banner__panel-price {
  color: var(--leanpay-text);
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
}

.leanpay-banner__panel-price strong {
  font-size: 22px;
  font-weight: 800;
}

.leanpay-banner__selector {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding-top: 4px;
}

.leanpay-banner__selector::before,
.leanpay-banner__track-fill {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 9px;
  height: 4px;
  border-radius: 999px;
  background: var(--leanpay-coral-soft);
}

.leanpay-banner__track-fill {
  right: auto;
  width: 0;
  background: var(--leanpay-coral);
  transition: width 180ms ease;
  z-index: 1;
}

.leanpay-banner__option {
  position: relative;
  z-index: 2;
  width: 28px;
  min-width: 28px;
  height: 50px;
  border: 0;
  background: transparent;
  color: var(--leanpay-muted);
  display: grid;
  grid-template-rows: 24px 22px;
  align-items: center;
  justify-items: center;
  row-gap: 4px;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.leanpay-banner__month {
  min-width: 28px;
  min-height: 21px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  color: inherit;
  font-size: 14px;
  line-height: 1;
}

.leanpay-banner__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--leanpay-coral-soft);
}

.leanpay-banner__option.is-active .leanpay-banner__month {
  background: var(--leanpay-coral);
  color: #fff;
  font-weight: 700;
}

.leanpay-banner__option.is-active .leanpay-banner__dot {
  width: 18px;
  height: 18px;
  background: var(--leanpay-coral);
}

.leanpay-banner__selected-month {
  min-height: 18px;
  margin-top: 2px;
  text-align: center;
  color: var(--leanpay-muted);
  font-size: 14px;
  line-height: 1.2;
}

p.leanpay-banner__description {
  margin: 17px 0 0;
  color: var(--leanpay-muted);
  font-size: 14px;
  line-height: 1.35;
}

p.leanpay-banner__description a {
  color: var(--leanpay-text);
  font-weight: 800;
  text-decoration: underline;
}

.leanpay-banner__limit {
  margin-top: 26px;
  min-height: 49px;
  width: 100%;
  border-radius: 6px;
  background: var(--leanpay-coral);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 22px;
  text-decoration: none !important;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.leanpay-banner__limit svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

@media only screen and (min-width: 480px) {
  .leanpay-banner__panel {
    padding: 27px 24px 22px;
  }

  .leanpay-banner__limit {
    width: fit-content;
  }
}

@media only screen and (min-width: 701px) {
  .leanpay-banner__summary {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 18px 21px;
  }

  .leanpay-banner__summary-main {
    flex: 1 1 390px;
    gap: 18px;
    max-width: 100%;
  }

  .leanpay-banner__icon {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .leanpay-banner__price-line {
    font-size: 20px;
  }

  .leanpay-banner__price-line strong {
    font-size: 25px;
  }

  .leanpay-banner__subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 17px;
  }

  .leanpay-banner__subtitle img {
    height: 18px;
    margin-left: 0;
  }

  .leanpay-banner__calculate {
    width: auto;
    min-width: 154px;
    margin-left: auto;
  }

  .leanpay-banner--zero-fee .leanpay-banner__summary-main {
    flex-basis: 460px;
    gap: 22px;
  }

  .leanpay-banner--zero-fee .leanpay-banner__icon {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .leanpay-banner--zero-fee .leanpay-banner__price-line strong {
    font-size: 31px;
  }

  .leanpay-banner--zero-fee .leanpay-banner__price-line span {
    font-size: 18px;
  }

  .leanpay-banner--zero-fee .leanpay-banner__subtitle {
    font-size: 24px;
  }

  .leanpay-banner__panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
  }

  .leanpay-banner__panel-price strong {
    font-size: 24px;
  }

  p.leanpay-banner__description {
    line-height: 1.25;
  }
}
