/* Editors used by the reusable shopping lists. */
/* The same comparison and choice controls are used from the ticket and lists. */
.shopping-choice-modal{width:min(660px,calc(100% - 24px))}
.shopping-choice-modal .modal-body{padding-top:8px}
.shopping-choice-context{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 6px;color:var(--muted);font-size:11px}
.shopping-choice-context button{min-height:40px;border:0;background:none;color:var(--ink);font-size:12px;font-weight:700;padding:7px 2px}
.shopping-product-choice.flow-card.photo-comparison.coop-product{padding:12px;border-radius:22px;background:var(--surface);border:1px solid var(--line);margin:0}
.shopping-product-choice .coop-product-heading>small{max-width:none;text-align:left}
.shopping-product-choice .store-comparison{align-items:stretch}
.shopping-product-choice .store-side{height:100%;display:grid;grid-template-rows:26px 72px minmax(34px,1fr) 20px 30px 16px 28px;gap:2px;text-align:center;align-items:center;justify-items:center;align-content:start}
.shopping-product-choice .store-side>.retailer-mini-logo{margin:0}
.shopping-product-choice .comparison-photo{width:100%;height:68px;margin:0}
.shopping-product-choice .pair-product-name,.shopping-product-choice .store-quantity,.shopping-product-choice .pair-price-caption,.shopping-product-choice .store-side>strong{margin:0;padding-top:0}
.shopping-product-choice .store-side>strong{white-space:normal;font-size:23px;line-height:1.2;overflow-wrap:normal}
.shopping-product-choice .pair-product-name{width:100%;display:block}
.shopping-product-choice .store-arrow{align-self:center}
.shopping-product-choice .flow-choice-modes{margin-top:10px}
.shopping-product-choice .flow-choice-modes.mode-count-5{grid-template-columns:repeat(2,minmax(0,1fr))}
.shopping-product-choice .flow-choice-modes.mode-count-5>button:last-child{grid-column:1/-1}
.shopping-product-choice .substitution-summary{margin-bottom:2px}
.shopping-product-choice .substitution-note{margin-top:9px}
.shopping-other-offers{border-top:1px solid var(--line);margin-top:8px}
.shopping-other-offers[hidden]{display:none}
.shopping-other-offers button:disabled{opacity:.55;cursor:not-allowed}
.shopping-other-offers>summary{font-size:11px;font-weight:650;min-height:40px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none}
.shopping-other-offers>summary:after{content:'+';font-size:16px}.shopping-other-offers[open]>summary:after{content:'−'}
.shopping-other-offers>div{display:grid;gap:5px;margin:0 0 8px}
.shopping-other-offers button{display:flex;align-items:center;gap:10px;width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);padding:9px 10px;text-align:left;min-height:52px}
.shopping-other-offers button>span:nth-last-child(2){flex:1;min-width:0}
.shopping-other-offers button strong,.shopping-other-offers button small{display:block;font-size:11px;line-height:1.4}
.shopping-other-offers button small{color:var(--muted);margin-top:3px;font-size:10px}
.shopping-other-offers .retailer-mini-logo{width:48px;max-width:48px;height:22px;margin:0;flex:none}
.shopping-choice-context button:focus-visible,.shopping-other-offers button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
@media(max-width:680px){
 .shopping-choice-modal{width:100%;max-width:100%}
 .shopping-choice-modal .modal-head{padding:14px 18px}
 .shopping-choice-modal .modal-head h2{font-size:22px;letter-spacing:-.5px}
 .shopping-choice-modal .modal-body{padding:5px 12px calc(14px + env(safe-area-inset-bottom,0px))}
 .shopping-product-choice.flow-card.photo-comparison.coop-product{padding:10px 9px 4px}
 .shopping-product-choice .store-side>strong{font-size:21px;letter-spacing:-.4px}
 .shopping-product-choice .store-side{padding:4px 5px 7px;grid-template-rows:24px 62px minmax(34px,1fr) 20px 30px 16px 28px}
 .shopping-product-choice .comparison-photo{height:58px}
 .shopping-product-choice .flow-choice-modes{gap:6px}
 .shopping-product-choice .flow-choice-modes button{min-height:56px}
 .shopping-product-choice .substitution-summary{font-size:11px;line-height:1.4}
 .shopping-choice-modal .shopping-completion-controls{padding-bottom:5px;margin-bottom:4px;font-size:11px;gap:8px}
 .shopping-choice-modal .shopping-completion-controls>div{gap:8px}
 .shopping-choice-modal .shopping-completion-controls .text-button{font-size:10px;min-height:36px}
}
.shopping-completion-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line,#ddd);padding-bottom:10px;margin-bottom:16px;font-size:13px}
.shopping-completion-controls>div{display:flex;align-items:center;justify-content:flex-end;gap:12px}.shopping-completion-controls>span{flex:none}.shopping-completion-controls .text-button{font-size:11px;min-height:40px;text-align:right}
.shopping-source-buttons{display:grid;gap:12px}
.shopping-source-buttons .button{justify-content:flex-start;text-align:left;min-height:72px;display:flex;gap:12px}
.shopping-source-buttons strong,.shopping-source-buttons small{display:block}
.shopping-source-buttons strong{font-size:16px}.shopping-source-buttons small{font-size:12px;font-weight:450;margin-top:4px;opacity:.8}
.shopping-home-wallet .wallet-amount{font-size:clamp(32px,4vw,52px)}
.shopping-next-course{margin:18px 0 24px}.shopping-next-course .button{width:100%;min-height:52px}.shopping-next-course p{font-size:12px;color:var(--muted);line-height:1.5;margin:9px 0 0;text-align:center}
#shoppingQuantityForm .button{width:100%;margin-top:14px}
#shoppingQuantityForm select{min-height:46px}
.shopping-rating-result,.shopping-rating-empty{display:flex;align-items:center;gap:16px;margin:20px 0}.shopping-rating-result img{width:84px;height:36px;object-fit:contain;flex:none}.shopping-rating-result strong,.shopping-rating-empty strong{display:block;font-size:17px}.shopping-rating-result small{display:block;color:var(--muted);font-size:12px;margin-top:7px}.shopping-rating-empty>span{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--soft,#eee);color:var(--muted,#606065);font-weight:700;font-size:20px}.shopping-rating-empty p{font-size:13px;line-height:1.5;color:var(--muted);margin:7px 0 0}.shopping-rating-help{font-size:13px;line-height:1.6;margin:20px 0}.shopping-rating-help summary{cursor:pointer;font-weight:650}.shopping-rating-legend{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:11px;color:var(--muted);margin-top:22px}

/* Compact cards stay in normal flow: no floating strip above the sources. */
.flow-card .flow-choice-modes{position:static;bottom:auto}
.flow-card .ticket-card-details{border-top:0;margin-top:6px}
.shopping-product-choice .store-side{grid-template-rows:24px 52px minmax(32px,1fr) 18px 28px 14px 26px;gap:2px}
.shopping-product-choice .comparison-photo{height:48px}
.shopping-product-choice .coop-product-heading{min-height:36px;margin-bottom:5px}
.shopping-product-choice .compact-change{margin-left:auto}
.shopping-product-choice .flow-choice-modes.has-keep button{min-height:48px}
.shopping-product-choice .tradeoff{margin-top:8px}
.shopping-choice-modal .modal-head h2{font-size:21px}
.flow-card .tradeoff .tradeoff-reference{display:block;margin:3px 0 0;font-size:10px;line-height:1.3;color:var(--muted);text-align:center}
