.firmhouse_selling_plan_app_container .sales_option_widget {
  display: flex;
  align-items: center;
  border: var(--option-border-width) solid var(--option-border-color);
  border-radius: var(--option-border-radius);
  padding: 14px;
  padding-bottom: 16px;
  flex-direction: column;
  /* align items top */
  align-items: flex-start;
  cursor: pointer;
  position: relative;
  margin-bottom: 0;
  gap: 10px;
  color: var(--option-text-color);
  background-color: var(--option-background-color);
  box-sizing: border-box;
  font-size: var(--base-font-size);
}

.firmhouse_selling_plan_app_container .sales_option_widget__radio-area__radio {
  display: flex;
  align-items: top;
  justify-content: center;
}

.firmhouse_selling_plan_app_container .sales_option_widget__radio-area {
  display: flex;
  flex-direction: row;
  gap: 5px;
  width: 100%;
}

/* styling for the label.sales_option_widget when radio button nested inside the label is checked */
.firmhouse_selling_plan_app_container .sales_option_widget:has(input[type="radio"]:checked) {
  background-color: var(--selected-option-background-color);
  border-color: var(--selected-option-border-color);
  color: var(--selected-option-text-color);
  outline: calc(var(--selected-option-border-width) - 1px) solid var(--selected-option-border-color);
}
.firmhouse_selling_plan_app_container .sales_option_widget:has(input[type="radio"]:checked) .sales_option_widget__info__name {
  color: var(--selected-option-name-text-color);
}

.firmhouse_selling_plan_app_container .sales_option_widget:hover {
  border-color: var(--option-hover-border-color);
}

.firmhouse_selling_plan_app_container .sales_option_widget__content {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

.firmhouse_selling_plan_app_container .sales_option_widget__info {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 5px;
}

.firmhouse_selling_plan_app_container .sales_option_widget__info__name {
  font-weight: 600;
  font-size: 1.2em;
  line-height: 22px;
}

/* Radio button base styles */
.firmhouse_selling_plan_app_container .sales_option_widget input[type="radio"] {
  overflow: visible;
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background-color: white;
  cursor: pointer;
  padding: 0;
  border: 1px solid var(--option-border-color);
}

/* Create the filled circle for checked state */
.firmhouse_selling_plan_app_container .sales_option_widget input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  border-radius: 100%;
  background-color: var(--selected-option-radio-color);
}

/* Remove any theme default styles */
.firmhouse_selling_plan_app_container .sales_option_widget input[type="radio"]:focus {
  outline: none;
  box-shadow: none;
}

.firmhouse_selling_plan_app_container .sales_option_widget__info__description {
  font-size: .9em;
  line-height: 1.1;
}

.firmhouse_selling_plan_app_container .sales_option_widget__info__benefits {
  font-size: .9em;
  line-height: 1.1;
  margin-top: 10px;
  margin-right: auto;
}

.firmhouse_selling_plan_app_container .sales_option_widget__info__benefits ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  position: relative;
  padding-left: 10px;
  gap: 2px;
}

.firmhouse_selling_plan_app_container .sales_option_widget__info__benefits li {
  list-style: none;
  margin: 0;
  padding: 0;

}

.firmhouse_selling_plan_app_container .sales_option_widget__info__benefits li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.firmhouse_selling_plan_app_container .sales_option_widget__price_details {
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: fit-content;
  align-items: flex-end;
  gap: 5px;
}

.firmhouse_selling_plan_app_container .sales_option_widget__preferred_option_badge {
  background-color: var(--selected-option-border-color);
  color: var(--preferred-option-badge-text-color);
  padding: 0px 10px;
  border-radius: 16px;
  position: absolute;
  top: -12px;
  right: 10px;
  font-size: .8em;
}

.firmhouse_selling_plan_app_container .sales_option_widget__price_details__price_per_single_frequency_unit,
  .sales_option_widget__price_details__one_time_purchase_price {
  line-height: 20px;
  text-align: right;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
}

/* add styling for a span that contains just the price inside the per single frequency unit */
.firmhouse_selling_plan_app_container span.sales_option_widget__price_details__price_per_single_frequency_unit__price {
  font-weight: 600;
  font-size: 1.2em;
}

/* add styling for a span that contains the frequency period description */
.firmhouse_selling_plan_app_container span.sales_option_widget__price_details__price_per_single_frequency_unit__frequency_period_description {
  font-size: .9em;
}

.firmhouse_selling_plan_app_container .sales_option_widget__price_details__price_per_single_use {
  font-size: .9em;
  line-height: 1.1;
}

.firmhouse_selling_plan_app_container .sales_option_widget__price_details__price_to_pay_at_checkout {
  display: flex;
  font-size: .9em;
  line-height: 1.1;
  max-width: max-content;
  min-width: min-content;
  white-space: wrap;
  height: auto;
}

.firmhouse_selling_plan_app_container .custom-select-wrapper {
  position: relative;
  width: 100%;
}

.firmhouse_selling_plan_app_container .custom-select {
  position: relative;
  width: 100%;
  font-size: .9em;
  line-height: 1.1;
}

.firmhouse_selling_plan_app_container .custom-select__trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  padding-right: 30px;
  border: 1px solid var(--option-border-color);
  border-radius: 6px;
  cursor: pointer;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  transition: all 0.2s ease;
  gap: 5px;
  color: var(--one-time-purchase-selector-text-color);
}

.firmhouse_selling_plan_app_container .custom-select__trigger:hover {
  border-color: #000;
}
.firmhouse_selling_plan_app_container .custom-select__selected {
  font-weight: 500;
}

.firmhouse_selling_plan_app_container .custom-select__options {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.firmhouse_selling_plan_app_container .custom-select.open .custom-select__options {
  display: block;
}

.firmhouse_selling_plan_app_container .custom-select__option {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.firmhouse_selling_plan_app_container .custom-select__option:hover {
  background-color: #f1f1f1;
}

.firmhouse_selling_plan_app_container .custom-select__option:last-child {
  border-bottom: none;
}

.firmhouse_selling_plan_app_container .custom-select__option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.firmhouse_selling_plan_app_container .custom-select__option-title {
  font-weight: 600;
  color: #000;
}

.firmhouse_selling_plan_app_container .custom-select__option-single-price {
  color: #000;
  text-align: right;
}

.firmhouse_selling_plan_app_container .custom-select__option-price {
  color: #000;
}

.firmhouse_selling_plan_app_container .custom-select__option.disabled .custom-select__option-title {
  color: inherit;
}

.firmhouse_selling_plan_app_container .sales_option_widget__variant_select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 8px 12px;
  padding-right: 30px; /* Space for the chevron */
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
}

.firmhouse_selling_plan_app_container .sales_option_widget__variant_select:hover {
  border-color: #000;
}

/* Style for when the parent radio is checked */
.firmhouse_selling_plan_app_container label.sales_option_widget:has(input[type="radio"]:checked) .sales_option_widget__variant_select {
  border-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  color: white;
  background-color: transparent;
}

/* Add gap to the container of the labels */
.firmhouse_selling_plan_app_container ul.selling_plan_app_plans_list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.firmhouse_selling_plan_app_container .selling_plan_app_plans_list > li {
  margin: 0;
  padding: 0;
  width: 100%;
}

.firmhouse_selling_plan_app_container .sales_option_widget__subscription_option {
  order: 0; /* This keeps subscription options in their original order after the one-time option */
}

.firmhouse_selling_plan_app_container .custom-select__trigger .custom-select__option-header {
  margin-bottom: 4px;
}

.firmhouse_selling_plan_app_container .custom-select__trigger .custom-select__option-price {
}

/* Keep the text colors consistent */
.firmhouse_selling_plan_app_container .custom-select__trigger .custom-select__option-price,
.firmhouse_selling_plan_app_container .custom-select__trigger .custom-select__option-single-price {
  color: #000;
}

.firmhouse_selling_plan_app_container .custom-select__triger .custom-select__option {
  color: #000;
}

.firmhouse_selling_plan_app_container .hidden {
  display: none;
}

.firmhouse_selling_plan_app_container .sales_option_widget__price_details__discount_badge {
  background-color: var(--discount-background-color);
  color: var(--discount-text-color);
  padding: 4px 8px;
  margin-top: 4px;
  border-radius: var(--option-border-radius);
  font-size: 1em;
  font-weight: 700;
  z-index: 1;
  margin-top: auto;
  margin-bottom: auto;
}

.firmhouse_selling_plan_app_container .sales_option_widget__info__row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.firmhouse_selling_plan_app_container .sales_option_widget__info__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.firmhouse_selling_plan_app_container .sales_option_widget__price_details__row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: fit-content;
}

.firmhouse_selling_plan_app_container .sales_option_widget__price_details__secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: fit-content;
  justify-content: flex-end;
  height: 100%;
  flex-wrap: wrap;
}
