.budget-guide {
  display: block;
  color: rgb(var(--color-text));
  background: rgb(var(--color-background));
}

.budget-guide__shell {
  width: 100%;
}

.budget-guide__card {
  display: grid;
  width: 100%;
  max-width: var(--budget-guide-card-width);
  padding: 28px 20px 24px;
  margin-inline: auto;
  background: rgb(var(--budget-guide-card-background));
  border: 1px solid rgb(var(--budget-guide-card-border));
  border-radius: var(--budget-guide-card-radius);
}

.budget-guide__intro,
.budget-guide__content {
  min-width: 0;
}

.budget-guide__eyebrow,
.budget-guide__heading,
.budget-guide__description,
.budget-guide__rewards-heading,
.budget-guide__goal-heading,
.budget-guide__goal-intro,
.budget-guide__goal-feedback,
.budget-guide__goal-note,
.budget-guide__perks-note {
  margin: 0;
}

.budget-guide__eyebrow,
.budget-guide__rewards-heading {
  color: rgb(var(--budget-guide-accent));
  font-family: var(--sort-body-font);
  font-size: var(--budget-guide-eyebrow-size-mobile);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.budget-guide__heading {
  margin-top: 10px;
  font-size: var(--budget-guide-heading-size-mobile);
  font-weight: var(--sort-title-font-weight, 700);
  line-height: 1.08;
  white-space: pre-line;
}

.budget-guide__description {
  margin-top: 18px;
  font-family: var(--sort-body-font);
  font-size: var(--budget-guide-description-size-mobile);
  line-height: 1.6;
  white-space: pre-line;
}

.budget-guide__content {
  margin-top: 26px;
  font-family: var(--sort-body-font);
}

.budget-guide__goal-heading {
  margin-top: 7px;
  font-size: 22px;
  line-height: 1.2;
}

.budget-guide__goal-intro {
  margin-top: 5px;
  color: rgb(100 107 99);
  font-size: var(--budget-guide-note-size-mobile);
  line-height: 1.45;
}

.budget-guide__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.budget-guide__option {
  position: relative;
  display: grid;
  gap: 3px;
  align-content: start;
  min-width: 0;
  min-height: 108px;
  padding: 10px 12px;
  color: rgb(var(--budget-guide-option-text));
  font-family: var(--sort-body-font);
  text-align: start;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgb(var(--budget-guide-card-border));
  border-radius: 8px;
  appearance: none;
}

.budget-guide__option:hover {
  border-color: rgb(var(--budget-guide-accent));
}

.budget-guide__option.is-selected {
  padding: 9px 11px;
  color: #264d3b;
  background: #eaf1ec;
  border: 2px solid #264d3b;
}

.budget-guide__option-check {
  position: absolute;
  inset-block-start: 7px;
  inset-inline-end: 7px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  background: #264d3b;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 120ms ease, transform 120ms ease;
}

.budget-guide__option.is-selected .budget-guide__option-check {
  opacity: 1;
  transform: scale(1);
}

.budget-guide__option strong {
  padding-inline-end: 24px;
  color: #264d3b;
  font-size: var(--budget-guide-option-size-mobile);
  line-height: 1.15;
}

.budget-guide .itrans-money {
  white-space: nowrap;
}

.budget-guide__option-description {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.budget-guide__option-perk {
  padding-top: 5px;
  margin-top: 2px;
  color: #264d3b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  border-top: 1px solid rgba(38, 77, 59, 0.14);
}

.budget-guide__option-perk small {
  color: rgb(100 107 99);
  font-size: 9px;
  line-height: 1.25;
}

.budget-guide__goal-feedback-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 12px;
}
.budget-guide__perks-note {
  margin-top: 10px;
  color: rgb(100 107 99);
  font-size: 11px;
  line-height: 1.4;
}

.budget-guide__goal-feedback {
  color: #264d3b;
  font-size: var(--budget-guide-rewards-item-size-mobile);
  font-weight: 700;
  line-height: 1.4;
}

.budget-guide__goal-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  align-items: center;
  color: #264d3b;
  font-size: 12px;
}
.budget-guide__goal-actions[hidden] { display: none; }
.budget-guide__clear,
.budget-guide__change {
  flex: 0 0 auto;
  padding: 0;
  color: #264d3b;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
}

.budget-guide__goal-note {
  margin-top: 8px;
  color: rgb(100 107 99);
  font-size: 11px;
  line-height: 1.45;
}

.budget-guide__cta.button {
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  color: rgb(var(--budget-guide-accent-text));
  background: rgb(var(--budget-guide-accent));
  border-radius: 7px;
  --color-button-background: var(--budget-guide-accent);
  --color-button-text: var(--budget-guide-accent-text);
  font-size: var(--budget-guide-cta-size-mobile);
}

.budget-guide__cta.button:hover {
  background: rgb(29 59 45);
  --color-button-background: 29, 59, 45;
}

.budget-guide__cta-icon {
  flex: 0 0 auto;
  margin-inline-start: 18px;
}

.budget-guide__skip {
  display: block;
  width: fit-content;
  margin: 11px auto 0;
  color: #264d3b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.budget-guide__option:focus-visible,
.budget-guide__change:focus-visible,
.budget-guide__clear:focus-visible,
.budget-guide__cta:focus-visible,
.budget-guide__skip:focus-visible {
  outline: 2px solid rgb(var(--budget-guide-accent));
  outline-offset: 3px;
}

@media (min-width: 960px) {
  .budget-guide__eyebrow,
  .budget-guide__rewards-heading {
    font-size: var(--budget-guide-eyebrow-size-desktop);
  }

  .budget-guide__heading {
    font-size: var(--budget-guide-heading-size-desktop);
  }

  .budget-guide__description {
    font-size: var(--budget-guide-description-size-desktop);
  }

  .budget-guide__goal-intro {
    font-size: var(--budget-guide-note-size-desktop);
  }

  .budget-guide__goal-feedback {
    font-size: var(--budget-guide-rewards-item-size-desktop);
  }

  .budget-guide__cta.button {
    font-size: var(--budget-guide-cta-size-desktop);
  }

  .budget-guide__card {
    grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
    gap: 52px;
    align-items: start;
    padding: 48px 52px;
  }

  .budget-guide__content {
    margin-top: 0;
  }

  .budget-guide__option {
    min-height: 116px;
  }

  .budget-guide__option strong {
    font-size: var(--budget-guide-option-size-desktop);
  }

  .budget-guide__option-description {
    font-size: 13px;
  }

  .budget-guide__option-perk {
    font-size: 12px;
  }
}

@media (max-width: 359px) {
  .budget-guide__card {
    padding-inline: 16px;
  }

  .budget-guide__option {
    min-height: 106px;
    padding-inline: 10px;
  }
}
