.wizard-count-options,
.wizard-period-choices,
.wizard-cadence-choices {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wizard-count-options legend,
.wizard-period-choices legend,
.wizard-cadence-choices legend {
  margin-bottom: 8px;
  padding: 0;
  font-weight: 750;
}

.wizard-count-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: start;
}

.wizard-count-option,
.wizard-period-choice {
  position: relative;
  display: inline-flex;
  min-width: 0;
  cursor: pointer;
}

.wizard-count-option > input,
.wizard-period-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  clip-path: inset(50%);
  overflow: hidden;
}

.wizard-count-option > span,
.wizard-period-choice > span {
  display: grid;
  width: 100%;
  min-height: 44px;
  align-content: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b7c6ba;
  transition: background-color .16s ease, border-color .16s ease;
}

.wizard-count-option > span {
  min-width: 44px;
  justify-items: center;
  padding: 6px 13px;
  border-radius: 99px;
  font-weight: 750;
  line-height: 1.25;
}

.wizard-count-option:hover > span,
.wizard-period-choice:hover > span {
  border-color: var(--green);
}

.wizard-count-option > input:checked + span {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.wizard-count-option > input:focus-visible + span,
.wizard-period-choice > input:focus-visible + span {
  outline: 3px solid #946409;
  outline-offset: 3px;
}

.wizard-stage-badge {
  width: fit-content;
  padding: 4px 11px;
  border-radius: 99px;
  color: var(--green);
  background: #e8efe5;
  font-size: .84rem;
  font-weight: 750;
}

.wizard-recipe-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 177px), 1fr));
  gap: 13px;
}

.wizard-recipe {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 4px 12px #172e240b;
}

.wizard-recipe-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e4eddf;
}

.wizard-recipe-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
}

.wizard-recipe-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}

.wizard-recipe-image:hover > img {
  transform: scale(1.035);
}

.wizard-recipe-image:focus-visible {
  outline-offset: -4px;
}

.wizard-favorite-button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--green);
  border: 1px solid #ffffffa6;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 12px #172e2429;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
}

.wizard-favorite-button:hover {
  background: var(--cream);
}

.wizard-favorite-button[aria-pressed="true"] {
  color: #a53a34;
  background: #fff0eb;
}

.wizard-recipe-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  gap: 7px;
  min-width: 0;
  padding: 13px;
}

.wizard-recipe-body .wizard-recipe-category {
  color: #395e49;
  font-size: .78rem;
  line-height: 1.15;
}

.wizard-recipe-body h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.23;
}

.wizard-ingredient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-ingredient-tags > li {
  padding: 2px 7px;
  border-radius: 99px;
  color: #395243;
  background: #eef2e9;
  font-size: .72rem;
  line-height: 1.35;
}

.wizard-recipe-body .wizard-recipe-actions {
  padding-top: 3px;
}

.wizard-recipe-body .wizard-recipe-actions button {
  min-height: 44px;
}

.wizard-catalogue-group {
  display: grid;
  gap: 10px;
}

.wizard-catalogue-group + .wizard-catalogue-group {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.wizard-dialog[open] {
  display: flex;
  flex-direction: column;
}

.wizard-dialog-top {
  flex-shrink: 0;
}

.wizard-dialog-scroll {
  min-height: 0;
  overscroll-behavior: contain;
}

.wizard-dialog-scroll .wizard-catalogue-group h4,
.wizard-dialog-scroll .wizard-recipe-body h4 {
  margin: 0;
}

.wizard-details-image {
  width: 100%;
  max-height: 340px;
  margin-bottom: 14px;
  aspect-ratio: 16 / 9;
  border-radius: 13px;
  object-fit: cover;
}

.wizard-planning-item {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: clamp(13px, 2.5vw, 20px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fcfbf5;
}

.wizard-planning-item h4 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.wizard-planning-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 5px 14px;
}

.wizard-planning-summary > div {
  display: grid;
  flex: 1 1 200px;
  gap: 3px;
}

.wizard-planning-summary p,
.wizard-planning-note {
  font-size: .9rem;
  line-height: 1.45;
}

.wizard-planning-summary .wizard-link-button {
  min-height: 44px;
}

.wizard-period-choices,
.wizard-cadence-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.wizard-period-choice > span {
  min-height: 58px;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 12px;
  line-height: 1.3;
}

.wizard-period-choice > input:checked + span {
  border-color: var(--green);
  background: #e8f0e4;
  box-shadow: inset 0 0 0 1px var(--green);
}

.wizard-period-choice small {
  color: var(--muted);
  font-size: .84rem;
}

.wizard-price-highlight {
  display: block;
  color: var(--green);
  font-weight: 700;
  line-height: 1.25;
}

.wizard-household-price {
  color: var(--green);
  font-size: .93rem;
  line-height: 1.45;
}

.wizard-formula-content .wizard-price-highlight strong,
.wizard-price-highlight strong {
  color: inherit;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  letter-spacing: -.04em;
}

.wizard-meal-prices,
.wizard-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.wizard-priced-choice {
  position: relative;
  display: grid;
  min-width: 0;
  cursor: pointer;
}

.wizard-priced-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  clip-path: inset(50%);
}

.wizard-priced-choice > span {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b7c6ba;
  border-radius: 13px;
}

.wizard-priced-choice:hover > span {
  border-color: var(--green);
}

.wizard-priced-choice > input:checked + span {
  border-color: var(--green);
  background: #e8f0e4;
  box-shadow: inset 0 0 0 1px var(--green);
}

.wizard-priced-choice > input:focus-visible + span {
  outline: 3px solid #946409;
  outline-offset: 3px;
}

.wizard-paid-option > span {
  position: relative;
  padding-left: 39px;
}

.wizard-paid-option > span::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 12px;
  width: 17px;
  height: 17px;
  border: 1px solid #819685;
  border-radius: 4px;
  background: var(--white);
  text-align: center;
  font-size: .82rem;
  line-height: 15px;
}

.wizard-paid-option > input:checked + span::before {
  content: '✓';
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.wizard-paid-option [id^="booking-option-"] {
  display: grid;
  gap: 4px;
}

.wizard-option-description,
.wizard-priced-choice small {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
}

.wizard-visit-quote {
  color: var(--green);
  font-weight: 700;
  line-height: 1.35;
}

.wizard-visit-quote strong,
.wizard-action-credit strong {
  font-size: clamp(1.6rem, 3.5vw, 2.12rem);
  font-weight: 850;
  letter-spacing: -.045em;
}

.wizard-visit-quote small {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
}

.wizard-action-credit {
  display: block;
  color: var(--green);
  font-size: .91rem;
  font-weight: 750;
  line-height: 1.12;
}

.wizard-action-total {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}

.wizard-review-options small {
  color: var(--muted);
}

@media (forced-colors: active) {
  .wizard-count-option > input:checked + span,
  .wizard-period-choice > input:checked + span,
  .wizard-priced-choice > input:checked + span {
    border: 2px solid Highlight;
  }
}

@media (max-width: 650px) {
  .wizard-meal-prices,
  .wizard-option-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard-action-credit strong {
    font-size: 1.65rem;
  }

  .wizard-recipe-list,
  .wizard-dialog-recipes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .wizard-recipe-body {
    padding: 10px;
  }

  .wizard-recipe-body h4 {
    font-size: .98rem;
  }

  .wizard-favorite-button {
    top: 5px;
    right: 5px;
  }
}

@media (max-width: 370px) {
  .wizard-recipe-list,
  .wizard-dialog-recipes {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard-recipe-visual {
    aspect-ratio: 16 / 10;
  }

  .wizard-cadence-choices {
    grid-template-columns: minmax(0, 1fr);
  }
}
