/* Customer-entered budget and recommendation badge, scoped to the existing booking step. */
body.redesign-ui #bookingPiece .customer-budget-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--isekai-radius);
  background: rgba(16,16,16,.6);
}
body.redesign-ui #bookingPiece .customer-budget-box:focus-within { border-color: #aaa; }
body.redesign-ui #bookingPiece .customer-budget-box:has([aria-invalid="true"]) { border-color: #eb7070; }
body.redesign-ui #bookingPiece #budgetMinimum {
  margin: 0;
  color: var(--text);
  font: 600 16px/1.5 var(--isekai-body);
}
body.redesign-ui #bookingPiece #budgetAmountError {
  margin: 0;
  color: #eb7070;
  font: 500 14px/1.5 var(--isekai-body);
}
body.redesign-ui #bookingPiece #budgetAmountError:empty { display: none; }
body.redesign-ui #bookingPiece #budgetCurrency {
  flex: 0 0 auto;
  color: #999;
  font: 400 14px/1.5 var(--isekai-body);
}
body.redesign-ui #bookingPiece #preferredBudgetAmount {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: var(--text);
  font: 400 16px/1.5 var(--isekai-body);
  appearance: textfield;
  -moz-appearance: textfield;
}
body.redesign-ui #bookingPiece #preferredBudgetAmount::-webkit-inner-spin-button,
body.redesign-ui #bookingPiece #preferredBudgetAmount::-webkit-outer-spin-button { appearance: none; margin: 0; }
body.redesign-ui #bookingPiece #preferredBudgetAmount:disabled { opacity: .45; }
body.redesign-ui #bookingPiece #budgetPreferenceNote { margin: 0; }
body.redesign-ui #bookingPiece .country-size-options .artist-recommended {
  display: inline-flex;
  justify-self: start;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid #a50021;
  border-radius: 3px;
  color: #eee;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Match the artist-choice height across all mobile size cards. */
@media (max-width: 899px) {
  body.redesign-ui #bookingPiece .country-size-options .size-option {
    box-sizing: border-box;
    height: 52px;
    min-height: 52px;
    padding: 7px 10px;
    grid-template-rows: 19px;
    gap: 2px 8px;
  }
  body.redesign-ui #bookingPiece .country-size-options .size-option:has(.artist-recommended) {
    grid-template-rows: 19px 12px;
    padding-block: 6px;
  }
  body.redesign-ui #bookingPiece .country-size-options .artist-recommended {
    justify-self: start;
    align-self: center;
    padding: 1px 3px;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}
@media (max-width: 359px) {
  body.redesign-ui #bookingPiece .country-size-options .artist-recommended { font-size: 8px; }
}
