#modal[open]:has(.recipe-selection) { width: min(700px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 5px; }
#modal:has(.recipe-selection) > .modal-head { padding: 17px 23px; }
#modal:has(.recipe-selection) > .modal-head h2 { font: 500 27px/1.15 "Barlow Condensed", "Arial Narrow", sans-serif; overflow-wrap: anywhere; }
#modal:has(.recipe-selection) > .modal-body { padding: 0; overflow: hidden; }
.recipe-selection { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 118px); margin: 0; color: var(--text); font: 400 13px/1.45 "IBM Plex Sans", "Segoe UI", sans-serif; }
.recipe-selection * { box-sizing: border-box; }
.sale-product .recipe-line-edit { display:block; padding:3px 0; border:0; box-shadow:none; background:none; font:inherit; font-size:11px; text-align:left; color:var(--muted); }
.sale-product .recipe-line-edit:hover { color:var(--text); }
.sale-product .recipe-line-edit span { margin-left:5px; }
.rchoice-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 23px 16px; }
.rchoice-group { min-width: 0; margin: 0; padding: 15px 0 3px; border: 0; }
.rchoice-group + .rchoice-group { margin-top: 13px; border-top: 1px solid var(--border); }
.rchoice-group legend { padding: 0; font-weight: 500; }
.rchoice-group legend > span { margin-left: 12px; color: var(--muted); font-size: 11px; font-weight: 400; }
.rchoice-options { margin-top: 8px; }
.rchoice-option { display: flex; align-items: center; gap: 12px; min-height: 45px; border-bottom: 1px solid var(--border); }
.rchoice-option > label { display: flex; flex: 1; align-items: center; gap: 12px; margin: 0; cursor: pointer; }
.rchoice-option input[type="radio"], .rchoice-option input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.rchoice-option small { display: block; color: var(--muted); font-size: 11px; }
.recipe-selection input[type="text"] { width: 60px; min-height: 32px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface-input); color: var(--text); font: inherit; text-align: center; }
.rchoice-error, .rchoice-footer > [data-rchoice-status] { margin: 5px 0 0; color: var(--red, #ee7b81); font-size: 12px; }
.rchoice-error:empty, .rchoice-footer > [data-rchoice-status]:empty { display: none; }
.rchoice-footer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 18px; flex: 0 0 auto; padding: 16px 23px; border-top: 1px solid var(--border); background: var(--surface); }
.rchoice-footer > [data-rchoice-status] { grid-column: 1 / -1; }
.rchoice-value span, .rchoice-value small { display: block; color: var(--muted); font-size: 11px; }
.rchoice-value strong { font: 500 30px/1.12 "Barlow Condensed", "Arial Narrow", sans-serif; font-variant-numeric: tabular-nums; }
.rchoice-actions { display: flex; gap: 9px; }
.recipe-selection button { min-height: 37px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--text); box-shadow: none; font: inherit; font-size: 12px; }
.recipe-selection button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.recipe-selection :is(button,input):focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.recipe-selection :disabled { opacity: .45; cursor: default; }
@media(max-width:480px) { .rchoice-footer { padding: 13px 16px; } .rchoice-scroll { padding-inline: 16px; } .rchoice-actions button { padding-inline: 11px; } }
.rchoice-clear { padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: .8rem; }
