/* Independent shopping plan. The receipt workspace keeps its existing layout. */
.shopping-view{max-width:1020px;margin:0 auto;padding:4px 0 18px;color:var(--ink)}
.shopping-view button,.shopping-view summary{touch-action:manipulation}
.shopping-view button{font:inherit;font-weight:700;cursor:pointer}
.shopping-view button:disabled{cursor:default;opacity:.42}
.shopping-view svg{width:20px;height:20px;flex:none}
.shopping-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}
.shopping-heading h1{font-size:clamp(28px,3.5vw,34px);line-height:1.2;letter-spacing:-1px;margin:0;font-weight:800;white-space:nowrap}
.shopping-heading h1+p{font-size:12px;line-height:1.5;color:var(--muted);margin:5px 0 0}
.shopping-restart{display:grid;place-items:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:50%;padding:12px}
.shopping-restart svg{width:18px;height:18px}
.shopping-add-actions{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.shopping-add-product{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;border:0;border-radius:100px;padding:12px 20px;background:var(--hero);color:var(--on-hero);font-size:13px!important;box-shadow:inset 0 1px 0 #ffffff20,0 5px 12px -9px var(--ink)}
.shopping-add-ticket{min-width:44px;min-height:44px;border:0;background:none;color:var(--muted);padding:8px 12px;font-size:12px!important;white-space:nowrap}
.shopping-view-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--line);background:var(--soft);border-radius:100px;margin-bottom:14px;max-width:410px}
.shopping-view-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:44px;border:0;border-radius:100px;background:transparent;color:var(--muted);font-size:12px}
.shopping-view-tabs button[aria-pressed=true]{background:var(--hero);color:var(--on-hero);box-shadow:0 2px 5px var(--shadow)}
.shopping-list-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:12px;color:var(--muted)}
.shopping-list-tools button{border:0;background:none;color:var(--ink);min-height:44px;font-size:11px;padding:8px 0}
.shopping-store-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}
.shopping-store{min-width:0;border:1px solid var(--line);border-radius:21px;background:var(--surface);overflow:hidden;box-shadow:0 5px 14px -12px var(--shadow)}
.shopping-store>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:102px;padding:17px 19px;cursor:pointer;list-style:none;background:var(--soft)}
.shopping-store[open]>summary{border-bottom:1px solid var(--line)}
.shopping-view summary::-webkit-details-marker{display:none}
.shopping-store-brand{display:block;min-width:0}
.shopping-store-brand>strong{display:block;font-size:17px;line-height:1.3}
.shopping-store-brand>small{display:block;font-size:10px;line-height:1.4;color:var(--muted);margin-top:4px}
.shopping-retailer-logo{display:block;height:25px;line-height:1;margin-bottom:7px}
.shopping-retailer-logo .retailer-mini-logo{height:25px!important;width:auto!important;max-width:116px!important;object-fit:contain;object-position:left center;display:block}
.shopping-retailer-logo .retailer-name-fallback{display:block;font-size:16px;font-weight:800;color:var(--ink)}
.shopping-store-end{position:relative;display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none;padding-right:20px;max-width:52%}
.shopping-store-end>strong{font-size:25px;letter-spacing:-.9px;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}
.shopping-store-end>strong>small{font-size:11px;letter-spacing:0}
.shopping-store-end>small{font-size:9px;color:var(--muted);text-align:right;line-height:1.4;max-width:140px}
.shopping-chevron{width:7px;height:7px;flex:none;border-bottom:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);margin:0 3px 4px}
.shopping-store-end>.shopping-chevron{position:absolute;right:0;top:50%;margin-top:-5px}
.shopping-view details[open]>summary .shopping-chevron{transform:rotate(225deg);margin-bottom:0}
.shopping-product-list{list-style:none;margin:0;padding:0 17px}
.shopping-purchase-row,.shopping-prepare-row{padding:14px 0;border-bottom:1px solid var(--line);min-width:0}
.shopping-purchase-row:last-child,.shopping-prepare-row:last-child{border-bottom:0}
.shopping-product-line{display:flex;align-items:center;gap:9px;min-width:0}
.shopping-check{display:grid;place-items:center;flex:none;width:28px;min-height:44px;cursor:pointer}
.shopping-check input{width:20px;height:20px;min-height:0;padding:0;margin:0;accent-color:var(--ink);cursor:pointer}
.shopping-photo{display:grid;place-items:center;flex:none;width:38px;height:46px;color:var(--muted)}
.shopping-photo img{width:100%;height:100%;object-fit:contain}
.shopping-photo .photo-missing{font-size:8px;text-align:center;line-height:1.2}
.shopping-photo svg{width:25px;height:25px;opacity:.65}
.shopping-product-copy{flex:1;min-width:0}
.shopping-product-copy>strong{display:block;font-size:12px;line-height:1.4;overflow-wrap:anywhere;font-weight:750}
.shopping-product-copy>small{display:block;font-size:10px;line-height:1.4;color:var(--muted);margin-top:4px}
.shopping-product-copy>.shopping-original{font-size:9px}
.shopping-price{flex:none;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:800;letter-spacing:-.3px}
.shopping-price small{font-size:9px;letter-spacing:0}
.shopping-price-unknown{flex:none;max-width:56px;font-size:10px;line-height:1.35;text-align:right;color:var(--muted)}
.shopping-product-end{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:2px;flex:none}
.shopping-view .shopping-rating{display:grid;place-items:center;flex:none;min-height:44px;border:0;background:transparent;padding:4px 0;color:#747474;line-height:1;cursor:pointer}
.shopping-view .shopping-rating.is-known{width:84px}
.shopping-rating>img{display:block;width:84px!important;height:36px!important;max-width:none;object-fit:contain;object-position:center;filter:none;mix-blend-mode:normal}
.shopping-pending-item-actions{display:grid;grid-template-columns:auto 44px;align-items:center;gap:2px 5px;flex:none}
.shopping-pending-item-actions>.shopping-rating{grid-column:1/-1;justify-self:end}
.shopping-purchase-row.is-checked .shopping-product-copy>strong{text-decoration:line-through;color:var(--muted)}
.shopping-purchase-row.is-checked .shopping-photo{opacity:.65}
.shopping-product-footer{display:flex;align-items:flex-start;gap:7px;margin-top:3px;min-width:0}
.shopping-product-footer>.shopping-item-details,.shopping-product-footer>.shopping-row-actions{flex:1;min-width:0}
.shopping-view .shopping-exclude{display:grid;place-items:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;border:0;border-radius:12px;padding:12px;background:transparent;color:var(--muted);line-height:1}
.shopping-view .shopping-exclude svg{width:17px;height:17px}
.shopping-view .shopping-exclude:hover{background:var(--soft);color:var(--ink)}
.shopping-view .shopping-exclude:active{background:var(--accent-soft);color:var(--ink)}
.shopping-row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:0 14px;margin:5px 0 0 37px}
.shopping-row-actions button{min-height:44px;padding:7px 0;border:0;background:none;color:var(--ink);font-size:10px;line-height:1.4;text-align:left}
.shopping-row-actions button>span{margin-left:4px;color:var(--muted)}
.shopping-row-actions .shopping-remove{color:var(--danger-ink)}
.shopping-row-note{font-size:10px;line-height:1.55;color:var(--warning-ink,var(--muted));margin:8px 0 0 37px}
.shopping-item-details{margin:4px 0 0 37px}
.shopping-item-details>summary{font-size:10px;color:var(--muted);min-height:40px;display:flex;align-items:center;cursor:pointer;list-style:none;text-decoration:underline;text-underline-offset:3px}
.shopping-item-details .shopping-row-actions,.shopping-item-details .shopping-row-note{margin-left:0}
.shopping-store>footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding:5px 18px}
.shopping-store>footer button{display:flex;align-items:center;gap:5px;font-size:11px;min-height:44px;padding:8px 0;background:none;border:0;color:var(--ink)}
.shopping-store>footer svg{width:15px;height:15px}
.shopping-pending{margin-top:18px}
.shopping-complete{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;width:100%;background:var(--accent-soft);color:var(--ink);border:1px solid var(--accent-border);border-radius:14px;padding:12px 16px;text-align:left;font-size:12px!important}
.shopping-pending>details{border:1px dashed var(--line);border-radius:15px;margin-top:10px;overflow:hidden}
.shopping-pending summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:12px 16px;list-style:none;cursor:pointer;font-size:11px;font-weight:700}
.shopping-pending ul{list-style:none;margin:0;padding:0 16px}
.shopping-pending li{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:10px 0}
.shopping-pending li>span{min-width:0}
.shopping-pending li strong{display:block;font-size:12px;overflow-wrap:anywhere}
.shopping-pending li small{display:block;font-size:10px;color:var(--muted);line-height:1.5;margin-top:4px}
.shopping-pending li button{flex:none;background:none;border:0;color:var(--ink);min-height:44px;font-size:10px;padding:8px 0}
.shopping-price-note{font-size:10px;line-height:1.6;color:var(--muted);margin:14px 2px 0;max-width:65ch}
.shopping-empty{display:flex;align-items:center;gap:12px;min-height:62px;padding:12px 16px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}
.shopping-empty>svg{width:23px;height:23px;color:var(--muted)}
.shopping-empty h2{font-size:14px;line-height:1.4;margin:0;font-weight:650}
.shopping-empty button{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0;min-height:44px;border:0;background:none;color:var(--ink);padding:0;text-align:left;font-size:13px!important}
.shopping-show-stores{border:0;background:var(--hero);color:var(--on-hero);border-radius:100px;min-height:46px;padding:12px 19px;font-size:12px!important}
.shopping-search{display:flex;align-items:center;gap:9px;min-height:46px;padding:0 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin:12px 0 15px;color:var(--muted)}
.shopping-search svg{width:17px;height:17px}
.shopping-search input{display:block;width:100%;min-width:0;padding:12px 0;min-height:44px;border:0;background:transparent;color:var(--ink);font-size:13px;box-shadow:none;border-radius:0}
.shopping-search:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.shopping-search input:focus-visible{outline:none}
.shopping-prepare-group{border:1px solid var(--line);background:var(--surface);border-radius:18px;overflow:hidden;margin-bottom:12px}
.shopping-prepare-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:13px 17px;background:var(--soft);list-style:none;cursor:pointer;font-size:12px;font-weight:750}
.shopping-prepare-group>summary small{font-size:10px;font-weight:500;color:var(--muted);margin-left:7px}
.shopping-prepare-group[open]>summary{border-bottom:1px solid var(--line)}
.shopping-prepare-row:not(.is-included) .shopping-row-actions{opacity:.8}
.shopping-show-stores{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;margin-top:16px;text-align:left}
.shopping-backup{margin-top:16px;padding-top:4px;border-top:1px solid var(--line);color:var(--muted)}
.shopping-backup>summary{font-size:10px;min-height:44px;display:flex;align-items:center;cursor:pointer;list-style:none;text-decoration:underline;text-underline-offset:3px}
.shopping-backup>p{font-size:11px;line-height:1.6;margin:4px 0}
.shopping-backup>div{display:flex;flex-wrap:wrap;gap:14px}
.shopping-backup button{border:0;background:none;color:var(--ink);padding:8px 0;min-height:44px;font-size:11px}
.shopping-view summary:focus-visible,.shopping-view button:focus-visible,.shopping-check input:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
@media(max-width:680px){
 .shopping-view{padding-top:0}.shopping-heading{gap:10px;margin-bottom:12px}.shopping-heading h1{font-size:28px}.shopping-heading h1+p{font-size:12px}
 .shopping-add-product{font-size:13px!important;min-height:48px;padding:12px 18px}.shopping-view-tabs{max-width:none}.shopping-view-tabs button{font-size:12px}
 .shopping-store-grid{grid-template-columns:minmax(0,1fr);gap:12px}.shopping-store>summary{min-height:96px;padding:15px 16px}.shopping-store-end>strong{font-size:24px}.shopping-store-brand>small{font-size:10px}.shopping-retailer-logo,.shopping-retailer-logo .retailer-mini-logo{height:23px!important}
 .shopping-product-list{padding:0 13px}.shopping-product-line{gap:8px}.shopping-check{width:26px}.shopping-photo{width:31px;height:42px}.shopping-product-copy>strong{font-size:12px}.shopping-price{font-size:13px}.shopping-price small{font-size:9px}.shopping-row-actions{gap:0 12px;margin-left:34px}.shopping-row-note,.shopping-item-details{margin-left:34px}
 .shopping-store>footer{padding:4px 15px}.shopping-store>footer button{font-size:10px}.shopping-price-note{font-size:9px}
}
@media(max-width:360px){.shopping-heading h1{font-size:26px}.shopping-photo{width:25px}.shopping-product-line{gap:6px}.shopping-store-end>strong{font-size:22px}}
/* Explicit selection actions; checkboxes are reserved for purchases. */
.shopping-view .shopping-view-help{font-size:14px;line-height:1.55;color:var(--muted);margin:0 0 18px;max-width:60ch}
.shopping-view .shopping-heading h1{white-space:normal;font-size:clamp(26px,3.5vw,34px)}
.shopping-view .shopping-add-actions{margin-top:24px;flex-wrap:wrap;padding-top:18px;border-top:1px solid var(--line)}
.shopping-view .shopping-add-product{background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:none}
.shopping-view .shopping-prepare-row .shopping-row-actions{margin-left:0;gap:0 16px}
.shopping-view .shopping-selection-action{align-self:center;flex:none;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:12px;padding:9px 13px}
.shopping-view .shopping-selection-action[data-included=false]{background:var(--hero);color:var(--on-hero);border-color:transparent}
.shopping-view .shopping-unplaced{padding:18px;border:1px solid var(--accent-border);border-radius:18px;background:var(--surface)}
.shopping-unplaced h2{font-size:17px;margin:0 0 7px;line-height:1.35}
.shopping-unplaced>p{font-size:13px;line-height:1.55;color:var(--muted);margin:0 0 14px}
.shopping-unplaced ul{padding:0}
.shopping-view .shopping-unplaced [data-shop-choose]{padding:9px 12px;background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:10px;font-size:12px}
.shopping-view .shopping-product-copy>strong{font-size:14px}
.shopping-view .shopping-product-copy>small,.shopping-view .shopping-pending li small{font-size:12px}
.shopping-view .shopping-pending li strong{font-size:14px}
.shopping-view .shopping-row-actions button{font-size:12px}
.shopping-view .shopping-photo{width:42px;height:50px}
.shopping-view .shopping-view-tabs{max-width:none}
.shopping-view .shopping-view-tabs button{font-size:14px}
.shopping-view .shopping-prepare-group>summary{font-size:14px}
.shopping-view .shopping-store-brand>small{font-size:12px}
@media(max-width:680px){
 .shopping-view .shopping-product-line{gap:10px}
 .shopping-view .shopping-product-copy>strong{font-size:13px}
 .shopping-view .shopping-product-copy>small{font-size:11px}
 .shopping-view .shopping-row-actions{gap:0 12px}
 .shopping-view .shopping-row-actions button{font-size:11px}
 .shopping-view .shopping-unplaced{padding:15px}
 .shopping-view .shopping-unplaced li{gap:8px}
}
.shopping-heading .shopping-done{color:var(--feedback-favorable,#166534);font-weight:650;line-height:1.5}
.shopping-heading h1{white-space:normal}
.shopping-unplaced>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;font-size:14px;font-weight:700;list-style:none;cursor:pointer}
.shopping-list-tools{flex-wrap:wrap}
.shopping-price-note>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.shopping-heading{padding-top:16px;margin-bottom:24px}
.shopping-store-picker{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 16px;scroll-snap-type:x proximity}
.shopping-store-picker button{flex:0 0 auto;min-width:130px;min-height:88px;padding:14px 16px;text-align:left;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);scroll-snap-align:start}
.shopping-store-picker button strong,.shopping-store-picker button small,.shopping-store-picker button span{display:block}
.shopping-store-picker button strong{font-size:14px}.shopping-store-picker button small{font-size:11px;font-weight:500;margin-top:5px}.shopping-store-picker button span{font-size:10px;margin-top:8px}
.shopping-store-picker button[aria-pressed=true]{background:var(--hero);color:var(--on-hero);border-color:var(--hero)}
.shopping-store-picker button:focus-visible{outline:2px solid var(--focus,var(--ink));outline-offset:2px}
.shopping-store-grid{grid-template-columns:minmax(0,1fr)}
.shopping-store>summary{min-height:76px;padding:14px 18px}

.shopping-saving{font-size:9px;color:var(--positive,#31734b);white-space:nowrap}
.shopping-saving.is-extra{color:var(--ink)}
.shopping-savings-total{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:10px 14px;margin:0 0 12px;border-radius:14px;background:var(--soft);color:var(--positive,#31734b);font-size:12px}
.shopping-savings-total strong{font-size:19px;margin-left:auto;white-space:nowrap}
.shopping-savings-total small{font-size:9px;color:var(--muted)}
.shopping-savings-total.is-extra{color:var(--ink)}
.shopping-store>.shopping-savings-total{border-radius:0;margin:0;padding:8px 16px}
.shopping-store>.shopping-savings-total strong{font-size:14px}
.shopping-savings-total .savings-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;color:var(--ink);font-size:11px;line-height:1.5}
.savings-breakdown b{display:block;font-size:15px}
.shopping-savings-total details{width:100%;color:var(--muted);font-size:10px;line-height:1.5}
.shopping-savings-total summary{cursor:pointer;padding:5px 0;min-height:28px}
.shopping-savings-total details p{margin:5px 0}
.shopping-saving span{display:block;color:var(--muted);font-size:9px}
.recap-stores{display:grid;gap:10px}
.recap-store{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface);text-align:left;color:var(--ink)}
.recap-store strong,.recap-store small{display:block}.recap-store small{color:var(--muted);margin-top:5px;font-size:11px}.recap-store b{font-size:15px}
.shopping-ticket-recovery{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;margin:0 0 16px;border-radius:14px;background:var(--soft);font-size:12px;color:var(--ink)}
.shopping-ticket-recovery button{border:0;background:none;color:var(--ink);font-weight:700;text-align:left;text-decoration:underline;text-underline-offset:3px;min-height:40px;padding:4px 0}
.shopping-receipt-price{display:block;font-size:10px;line-height:1.3;color:var(--muted);margin-top:3px}
.shopping-purchase-row{padding:9px 0}
.shopping-purchase-row .shopping-product-footer{margin-top:0}
.shopping-purchase-row .shopping-photo{width:32px;height:38px}
.shopping-purchase-row .shopping-original{display:none}
.shopping-purchase-row .shopping-product-copy>small{margin-top:2px}
.shopping-purchase-row .shopping-item-details>summary{min-height:32px;padding-top:6px;padding-bottom:6px}
.shopping-purchase-row .shopping-exclude{height:36px;min-height:36px;padding:9px}
.shopping-store-picker button{min-height:76px;padding:10px 14px}
.shopping-group-tabs{display:flex;gap:6px;padding:5px;background:var(--soft,#f1e8ee);border-radius:28px;margin:0 0 18px}
.shopping-group-tabs button{flex:1;min-height:42px;border:0;border-radius:24px;background:transparent;color:var(--ink);font:inherit;font-weight:650}
.shopping-group-tabs button[aria-pressed="true"]{background:var(--purple,#35243e);color:#fff}
.shopping-receipt-picker{display:block;font-size:12px;color:var(--muted);margin:0 0 12px}
.shopping-receipt-picker select{display:block;width:100%;min-height:44px;margin-top:6px;padding:10px;border:1px solid var(--line,#e4dce3);border-radius:14px;background:var(--card,#fff);color:var(--ink);font:inherit;font-size:14px}
