/* ─────────────────────────────────────────────────────────────────────────────
   Shopping list editor — after Cytens's plant-shop "after" reference:
   each item is one calm card with compact details, quiet list tools, a
   readable transport choice and sentence-case sections. Loaded after
   refresh.css; existing tokens only.
   ───────────────────────────────────────────────────────────────────────────── */

/* List tools: small pills instead of underlined links in boxes. */
.home-sidebar .uyali-list-tools { gap: 8px; margin: 0 0 14px; }
.home-sidebar .uyali-list-tools button {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-subtle);
  background: var(--bg-card); color: var(--text-primary); font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.home-sidebar .uyali-list-tools button:hover { background: var(--bg-input); }

/* One card per item: name on top, compact details beneath. */
.home-sidebar .items-list { gap: 12px; }
.home-sidebar .item-row {
  display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--bg-card);
}
.home-sidebar .item-main { gap: 8px; }
.home-sidebar .item-input { min-height: 48px; font-weight: 600; background: var(--bg-input); border-color: transparent; }
.home-sidebar .item-input:focus { border-color: var(--uyali-brand); }
.home-sidebar .item-row [data-remove-item] { width: 44px; height: 44px; border-radius: 12px; background: transparent; color: var(--text-muted); }
.home-sidebar .item-row [data-remove-item]:hover { background: var(--bg-input); color: var(--text-primary); }
.home-sidebar .uyali-item-details { gap: 8px 10px; padding: 0; }
.home-sidebar .uyali-item-details label { gap: 4px; font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.home-sidebar .uyali-item-details .form-input { min-height: 44px; padding: 8px 12px; border-radius: 10px; }
/* The substitution choice sits flush with the details instead of an indented row. */
.home-sidebar .item-row .item-actions { padding: 0; margin: 0; gap: 8px; }
.home-sidebar .uyali-substitution-label { display: grid; gap: 4px; width: 100%; font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.home-sidebar .uyali-substitution-label select { width: 100%; max-width: none; min-height: 44px; border-radius: 10px; font-size: 16px; font-weight: 500; }
.home-sidebar .uyali-local-reference { margin: 0; }
.home-sidebar .uyali-local-reference > summary { min-height: 36px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.home-sidebar .add-item-btn {
  min-height: 48px; border-radius: 14px; border: 1px dashed var(--border-primary); background: transparent;
  color: var(--uyali-brand-text); font-weight: 600;
}
.home-sidebar .add-item-btn:hover { background: var(--bg-input); }

/* Transport: readable selected state (it was white text on pale green). */
.home-sidebar .transport-grid { gap: 10px; }
.home-sidebar .transport-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; text-align: start; border: 1.5px solid var(--border-subtle);
  border-radius: 16px; background: var(--bg-card); color: var(--text-primary); box-shadow: none; transform: none;
}
.home-sidebar .transport-card .transport-icon { flex: none; width: 24px; height: 24px; margin: 0; color: var(--text-secondary); }
.home-sidebar .transport-card .transport-title { font-size: 14.5px; font-weight: 600; padding: 0; }
.home-sidebar .transport-card .transport-desc { margin-top: 2px; font-size: 12.5px; opacity: 1; color: var(--text-secondary); }
.home-sidebar .transport-card.active {
  background: var(--uyali-brand-soft, var(--bg-input)); border-color: var(--uyali-brand); color: var(--text-primary); box-shadow: none;
}
.home-sidebar .transport-card.active .transport-icon { color: var(--uyali-brand-text); }
.home-sidebar .transport-card:hover { transform: none; box-shadow: none; border-color: var(--border-primary); }
.home-sidebar .transport-card.active:hover { border-color: var(--uyali-brand); }
:root[data-theme="dark"] .home-sidebar .transport-card.active { background: rgba(52, 211, 153, .10); }
/* Card body text sits in a column next to the icon. */
.home-sidebar .transport-card > .transport-title, .home-sidebar .transport-card > .transport-desc { display: block; }
.home-sidebar .transport-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; }
.home-sidebar .transport-card .transport-icon { grid-row: 1 / span 2; align-self: center; }

/* Price summary: a light card with hairline rows. */
.home-sidebar .price-breakdown { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; }

/* Room for the selection indicator so both titles line up. */
.home-sidebar .transport-card { position: relative; padding-inline-end: 40px; }
/* Price rows inside the card, not against its border. */
.home-sidebar .price-breakdown { padding: 4px 16px; }
.home-sidebar .price-breakdown .price-row { padding-block: 12px; }
/* The substitution select matches the other detail fields. */
.home-sidebar .uyali-substitution-label select { border: 1px solid var(--uyali-control-border, var(--border-primary)); background: var(--bg-input); padding: 8px 12px; }
