/* Saved purchasing lists follow the account's appearance. Product photography
   always sits on white so packaging colors stay accurate in either theme. */
body.bear-saved-lists {
  --saved-bg: #101920;
  --saved-surface: #1b2832;
  --saved-soft: #223440;
  --saved-input: #13222c;
  --saved-border: #455c6a;
  --saved-control-border: #6f8d9e;
  --saved-text: #f2f6f8;
  --saved-muted: #bfced7;
  --saved-accent: #ffb779;
  --saved-focus: #ffae64;
  --saved-note: #203b34;
  --saved-note-border: #507867;
  --saved-note-text: #d5eee2;
  --saved-shadow: 0 3px 18px #00000012;
  background: var(--saved-bg);
  color: var(--saved-text);
  color-scheme: dark;
}
html[data-store-theme="light"] body.bear-saved-lists {
  --saved-bg: #f4f6f8;
  --saved-surface: #ffffff;
  --saved-soft: #edf2f5;
  --saved-input: #ffffff;
  --saved-border: #9aadb9;
  --saved-control-border: #6f8795;
  --saved-text: #182e3b;
  --saved-muted: #4c6371;
  --saved-accent: #97400c;
  --saved-focus: #b94c0b;
  --saved-note: #edf6f1;
  --saved-note-border: #a3bcaf;
  --saved-note-text: #254f3e;
  --saved-shadow: 0 3px 18px #172d3808;
  color-scheme: light;
}
body.bear-saved-lists #main {background: var(--saved-bg); color: var(--saved-text); font-size: 16px; min-height: 60vh; padding-bottom: 2rem;}
body.bear-saved-lists #main .wrap {max-width: 1480px;}
body.bear-saved-lists .page-head {padding-top: 1.75rem; padding-bottom: 1.5rem;}
body.bear-saved-lists .breadcrumb {color: var(--saved-muted); font-size: 14px; line-height: 1.5; margin-bottom: 1.75rem;}
body.bear-saved-lists .breadcrumb a:hover {color: var(--saved-accent);}
body.bear-saved-lists .page-head .eyebrow {background: var(--saved-soft); border-color: var(--saved-border); color: var(--saved-accent)!important; font-size: 14px; line-height: 1.5; letter-spacing: .08em;}
body.bear-saved-lists .page-head h1 {color: var(--saved-text); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.035em; margin: 0; overflow-wrap: anywhere;}
body.bear-saved-lists .page-head p {color: var(--saved-muted); font-size: 16px; line-height: 1.6; margin: .85rem 0 0;}
body.bear-saved-lists .page-head .row {align-items: center; gap: 1.5rem;}
body.bear-saved-lists #main :is(button,.text-btn) {font-size: 16px; line-height: 1.4; min-height: 44px;}
body.bear-saved-lists #main .text-btn {color: var(--saved-text);}
body.bear-saved-lists #main button:is(.dark,.lime),
body.bear-saved-lists #main .store-saved-list-card-actions .text-btn {background: #ff861f; color: #241809; border: 1px solid #ff861f; padding: .85rem 1.25rem; border-radius: .65rem; font-weight: 750; box-shadow: none;}
body.bear-saved-lists #main button:is(.dark,.lime):hover,
body.bear-saved-lists #main .store-saved-list-card-actions .text-btn:hover {background: #ff9c47; border-color: #ff9c47;}
body.bear-saved-lists #main .ghost {background: var(--saved-surface); color: var(--saved-text); border: 1px solid var(--saved-control-border); border-radius: .65rem; padding: .85rem 1.1rem;}
body.bear-saved-lists #main :is(a,button,input,select,summary):focus-visible,
body.bear-saved-lists dialog :is(a,button,input,select):focus-visible {outline: 3px solid var(--saved-focus); outline-offset: 4px;}
body.bear-saved-lists #main :is(.panel,.empty,.device-strip,.store-list-search,.store-list-products-panel),
body.bear-saved-lists dialog {background: var(--saved-surface); color: var(--saved-text); border: 1px solid var(--saved-border); box-shadow: var(--saved-shadow); border-radius: 1rem;}
body.bear-saved-lists #main :is(.panel-head,.store-list-section-heading) {background: var(--saved-surface); color: var(--saved-text); border-bottom: 1px solid var(--saved-border); padding: 1.5rem;}
body.bear-saved-lists #main :is(.panel-head h3,.store-list-section-heading h2,.empty h3) {color: var(--saved-text); font-size: 22px; line-height: 1.35; margin: 0; letter-spacing: -.025em;}
body.bear-saved-lists #main :is(.panel-head p,.store-list-section-heading p,.empty p,.device-strip small) {color: var(--saved-muted); font-size: 15px; line-height: 1.6;}
.store-list-products-panel {overflow: hidden;}
.store-list-section-heading p {margin: .55rem 0 0;}
body.bear-saved-lists .device-strip {gap: 1rem; padding: 1.25rem; margin-bottom: 1.25rem;}
body.bear-saved-lists .device-strip strong {font-size: 16px;}
body.bear-saved-lists #main :is(input,select,textarea),
body.bear-saved-lists dialog :is(input,select,textarea) {font-size: 16px; line-height: 1.4; min-height: 48px; border: 1px solid var(--saved-control-border); border-radius: .6rem; background: var(--saved-input); color: var(--saved-text);}
body.bear-saved-lists #main :is(input,textarea)::placeholder {color: var(--saved-muted); opacity: 1;}
body.bear-saved-lists #main .note {background: var(--saved-note); border-color: var(--saved-note-border); color: var(--saved-note-text); font-size: 14px; line-height: 1.6; padding: 1rem 1.2rem; gap: .8rem;}
body.bear-saved-lists #main .note svg {height: 20px; width: 20px; flex: none;}

/* Readable product rows: photograph, identity, quantity, and price are distinct. */
.store-list-items {list-style: none; padding: 0; margin: 0;}
.store-list-item {display: grid; grid-template-columns: 160px minmax(0,1fr) 100px 125px; gap: 1.15rem 1.5rem; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--saved-border);}
.store-list-item:last-child {border-bottom: 0;}
.store-list-item-photo {grid-column: 1; grid-row: 1 / 3; width: 160px; height: 160px; display: grid; place-items: center; padding: .55rem; border-radius: .85rem; border: 1px solid #d7e0e5; background: #fff; color: #48606e; overflow: hidden; text-decoration: none;}
.store-list-item-photo img,
.store-saved-list-preview img {display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: normal!important; filter: none!important; opacity: 1; background: #fff;}
.store-list-item-photo > span {font-size: 14px; line-height: 1.5; text-align: center;}
.store-list-item-info {grid-column: 2; grid-row: 1 / 3; min-width: 0;}
.store-list-item-info h3 {font-size: 20px; line-height: 1.45; letter-spacing: -.015em; margin: 0 0 .65rem; overflow-wrap: anywhere;}
.store-list-item-info h3 a {color: var(--saved-text); text-decoration: none;}
.store-list-item-info h3 a:hover {color: var(--saved-accent); text-decoration: underline; text-underline-offset: .18em;}
.store-list-item-sku {display: block; color: var(--saved-muted); font-size: 15px; line-height: 1.5; font-weight: 650; letter-spacing: .025em; overflow-wrap: anywhere;}
.store-list-item-pack {color: var(--saved-muted); font-size: 16px; line-height: 1.5; margin: .55rem 0 0; overflow-wrap: anywhere;}
.store-list-item-quantity {grid-column: 3; grid-row: 1; display: grid; align-self: end; gap: .5rem; color: var(--saved-muted); font-size: 14px; line-height: 1.5; font-weight: 650;}
body.bear-saved-lists #main .store-list-item-quantity input {width: 100%; min-width: 0; min-height: 52px; padding: .75rem; font-size: 18px; font-weight: 650;}
.store-list-item-price {grid-column: 4; grid-row: 1; display: grid; gap: .35rem; align-self: end; text-align: right;}
.store-list-item-price strong {color: var(--saved-text); font-size: 22px; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;}
.store-list-item-price :is(span,small) {color: var(--saved-muted); font-size: 14px; line-height: 1.5;}
body.bear-saved-lists #main .store-list-item-remove {grid-column: 3 / 5; grid-row: 2; justify-self: end; align-self: start; padding: .5rem .1rem; min-height: 44px; color: var(--saved-muted); background: transparent; border: 0; border-radius: .3rem; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: .2em;}
body.bear-saved-lists #main .store-list-item-remove:hover {color: var(--saved-accent);}

/* List library previews show the actual products, with the existing account scope. */
.store-saved-list-grid {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem;}
body.bear-saved-lists .store-saved-list-card {display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 1rem; border: 1px solid var(--saved-border); background: var(--saved-surface); color: var(--saved-text); box-shadow: var(--saved-shadow);}
.store-saved-list-previews {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; padding: 1.1rem; min-height: 142px; background: var(--saved-soft); border-bottom: 1px solid var(--saved-border);}
.store-saved-list-preview {display: grid; place-items: center; min-width: 0; height: 112px; background: #fff; color: #48606e; border: 1px solid #d7e0e5; border-radius: .65rem; overflow: hidden; padding: .45rem;}
.store-list-photo-placeholder {display: grid; justify-items: center; gap: .5rem; font-size: 14px; line-height: 1.4; text-align: center;}
.store-list-photo-placeholder svg {width: 32px; height: 32px;}
.store-list-item-photo-note {display: block; color: var(--saved-muted); font-size: 14px; line-height: 1.5; margin-top: .5rem;}
.store-saved-list-preview-empty {grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--saved-muted); font-size: 16px; line-height: 1.5; padding: .75rem;}
.store-saved-list-preview-empty svg {width: 30px; height: 30px; flex: none;}
.store-saved-list-card-body {padding: 1.4rem; flex: 1; display: flex; flex-direction: column;}
body.bear-saved-lists .store-saved-list-card h2 {color: var(--saved-text); font-size: 23px; line-height: 1.35; margin: 0 0 .65rem; letter-spacing: -.02em; overflow-wrap: anywhere;}
body.bear-saved-lists .store-saved-list-card h2 a {color: inherit; text-decoration: none;}
body.bear-saved-lists .store-saved-list-card h2 a:hover {color: var(--saved-accent); text-decoration: underline; text-underline-offset: .18em;}
body.bear-saved-lists .store-saved-list-card p {color: var(--saved-muted); font-size: 16px; line-height: 1.5; margin: 0;}
.store-saved-list-card-actions {display: flex; flex-wrap: wrap; gap: .75rem; padding-top: 1.4rem; margin-top: auto;}
.store-saved-list-card-actions > :is(a,button) {flex: 1; display: inline-flex; justify-content: center; align-items: center; white-space: nowrap; text-align: center; text-decoration: none;}
.store-saved-lists-note {margin-bottom: 1.5rem;}

/* Live product search uses the same surfaces, controls, and larger photographs. */
body.bear-saved-lists .store-list-search :is(h2,label,.store-list-search-purchase>strong) {color: var(--saved-text);}
body.bear-saved-lists .store-list-search :is(header p,.store-list-search-field>small,.store-list-search-status,.store-list-search-sku,.store-list-search-details>p,.store-list-search-purchase>small) {color: var(--saved-muted);}
body.bear-saved-lists .store-list-search .store-list-search-details>a {color: var(--saved-text); font-size: 18px;}
body.bear-saved-lists .store-list-search #list-product-query {background: var(--saved-input); color: var(--saved-text); border-color: var(--saved-control-border);}
body.bear-saved-lists .store-list-search .store-list-search-product {grid-template-columns: 112px minmax(0,1fr) minmax(9.5rem,11rem); background: var(--saved-soft); color: var(--saved-text); border-color: var(--saved-border); gap: 1.25rem;}
body.bear-saved-lists .store-list-search .store-list-search-photo {height: 112px; width: 112px; background: #fff; border-color: #d7e0e5;}
body.bear-saved-lists .store-list-search-photo img {mix-blend-mode: normal!important; filter: none!important; opacity: 1;}
body.bear-saved-lists .store-list-search button {background: #ff861f; border-color: #ff861f; color: #241809;}
body.bear-saved-lists .store-list-search button:hover:not(:disabled) {background: #ff9c47; border-color: #ff9c47;}
body.bear-saved-lists .store-list-search button:disabled {background: var(--saved-surface); color: var(--saved-muted); border-color: var(--saved-border);}
body.bear-saved-lists dialog :is(h2,h3,label) {color: var(--saved-text); font-size: 16px;}
body.bear-saved-lists dialog h2 {font-size: 24px;}
body.bear-saved-lists dialog :is(p,small,.dialog-head button) {color: var(--saved-muted);}
body.bear-saved-lists dialog :is(.dialog-head,.list-choice) {background: var(--saved-surface); color: var(--saved-text); border-color: var(--saved-border);}
body.bear-saved-lists dialog button {min-height: 44px; font-size: 16px;}
body.bear-saved-lists dialog button.dark {background: #ff861f; border-color: #ff861f; color: #241809;}
body.bear-saved-lists .floating-help {color: #182e3b;}

@media (max-width: 1100px) {
  .store-saved-list-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
  .store-list-item {grid-template-columns: 144px minmax(0,1fr) 90px 110px; gap: 1rem;}
  .store-list-item-photo {width: 144px; height: 144px;}
}
@media (max-width: 760px) {
  body.bear-saved-lists .page-head .row {align-items: flex-start;}
  .store-list-item {grid-template-columns: 128px minmax(0,1fr) minmax(0,1fr); gap: 1rem; padding: 1.25rem;}
  .store-list-item-photo {grid-row: 1; width: 128px; height: 128px; align-self: start;}
  .store-list-item-info {grid-column: 2 / 4; grid-row: 1; align-self: center;}
  .store-list-item-quantity {grid-column: 2; grid-row: 2;}
  .store-list-item-price {grid-column: 3; grid-row: 2;}
  body.bear-saved-lists #main .store-list-item-remove {grid-column: 1; grid-row: 2; justify-self: start; align-self: end;}
  .store-list-item-info h3 {font-size: 18px;}
  body.bear-saved-lists .device-strip {flex-wrap: wrap;}
  body.bear-saved-lists .device-strip select {max-width: 100%; width: 100%;}
  body.bear-saved-lists .store-list-search .store-list-search-product {grid-template-columns: 100px minmax(0,1fr); gap: 1rem;}
  body.bear-saved-lists .store-list-search .store-list-search-photo {height: 100px; width: 100px;}
  body.bear-saved-lists .store-list-search-purchase {grid-column: 2; text-align: left; align-items: flex-start;}
}
@media (max-width: 540px) {
  body.bear-saved-lists #main .wrap {padding-left: 16px; padding-right: 16px;}
  body.bear-saved-lists .page-head .row {display: flex; flex-direction: column; gap: 1.1rem;}
  body.bear-saved-lists .page-head .row>button {width: 100%;}
  body.bear-saved-lists .breadcrumb {margin-bottom: 1.25rem;}
  .store-saved-list-grid {grid-template-columns: minmax(0,1fr);}
  .store-list-item {grid-template-columns: 112px minmax(0,1fr); gap: 1rem; padding: 1.1rem;}
  .store-list-item-photo {width: 112px; height: 112px;}
  .store-list-item-info {grid-column: 2;}
  .store-list-item-quantity {grid-column: 1; grid-row: 2;}
  .store-list-item-price {grid-column: 2; grid-row: 2;}
  body.bear-saved-lists #main .store-list-item-remove {grid-column: 2; grid-row: 3; justify-self: end;}
  body.bear-saved-lists #main :is(.panel-head,.store-list-section-heading) {padding: 1.1rem;}
  .store-list-item-pack {font-size: 15px;}
  body.bear-saved-lists .store-list-search {padding: 1.1rem;}
  body.bear-saved-lists .store-list-search .store-list-search-product {padding: .85rem; grid-template-columns: 88px minmax(0,1fr);}
  body.bear-saved-lists .store-list-search .store-list-search-photo {width: 88px; height: 88px;}
  body.bear-saved-lists .store-list-search-purchase {grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .4rem .75rem; width: 100%;}
  body.bear-saved-lists .store-list-search-purchase>button {grid-column: 2; grid-row: 1 / 3; min-width: 0; margin: 0; width: auto;}
  body.bear-saved-lists .store-list-search-purchase>small {grid-column: 1;}
}
@media print {
  body.bear-saved-lists {--saved-bg:#fff;--saved-surface:#fff;--saved-soft:#f2f4f5;--saved-input:#fff;--saved-text:#182e3b;--saved-muted:#4c6371;--saved-border:#9aadb9;color-scheme:light;}
  body.bear-saved-lists .store-list-item {break-inside: avoid;}
}
