.plan-exchange-form {
  gap: 18px;
}

.plan-exchange-field {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-text);
}

.plan-exchange-field > legend {
  max-inline-size: 100%;
  margin: 0 0 8px;
  padding: 0;
  color: #eee0f5;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.plan-exchange-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-exchange-choices--periods,
.plan-exchange-choices--methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 108px), 1fr));
}

.plan-exchange-choices--methods {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
}

.plan-exchange-choice {
  position: relative;
  min-inline-size: 0;
  max-inline-size: 100%;
  cursor: pointer;
}

.plan-exchange-choice-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  opacity: 0;
  clip-path: inset(50%);
}

.plan-exchange-field .plan-exchange-choice-input {
  padding: 0;
  border: 0;
}

.plan-exchange-choice-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-block-size: 44px;
  block-size: 100%;
  padding: 9px 13px;
  border: 1px solid #6c587c;
  border-radius: 13px;
  background: #23182d;
  color: #f4e9f9;
  line-height: 1.25;
}

.plan-exchange-choices--pills .plan-exchange-choice-content {
  align-items: center;
  border-radius: 999px;
  padding-inline: 15px;
}

.plan-exchange-choice-title {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.plan-exchange-choice-detail {
  color: #d3bfdc;
  font-size: 13px;
}

.plan-exchange-choice-input:checked + .plan-exchange-choice-content {
  border-color: #e0a8f5;
  background: #432751;
  box-shadow: inset 0 0 0 1px #e0a8f5;
}

.plan-exchange-choice-input:focus-visible + .plan-exchange-choice-content {
  outline: 2px solid #f2d6ff;
  outline-offset: 2px;
}

.plan-exchange-field:disabled .plan-exchange-choice {
  opacity: .62;
  cursor: default;
}

.plan-exchange-currency-value {
  margin: 0;
  color: #f4e9f9;
  font-size: 15px;
}

@media (hover: hover) {
  .plan-exchange-field:not(:disabled) .plan-exchange-choice:hover .plan-exchange-choice-content {
    border-color: #efbcff;
  }
}
