/* Storefront theme "default": the wish list page (EcWishList, Template/WishList/default, ssr). Uses the theme tokens and
   the "my orders" page blocks of theme.css (.ec-ord-head, .ec-ord-empty, .ec-ord-note, .ec-ord-more). */
.ec-wl { padding: 8px 0 32px; }
.ec-wl-head { margin-bottom: 12px; }
.ec-wl-total { font-size: 13px; font-weight: 400; color: var(--ec-muted); margin-inline-start: 6px; }
.ec-wl-guest { flex-wrap: wrap; }
.ec-wl-guest span { flex: 1 1 200px; }
.ec-wl-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ec-wl-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--ec-border); border-radius: 999px; background: #fff; color: var(--ec-text-2); font: inherit; font-size: 13px; cursor: pointer; }
.ec-wl-chip span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ec-page); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.ec-wl-chip:hover { border-color: var(--ec-text-2); }
.ec-wl-chip.ec-on { border-color: var(--ec-primary); color: var(--ec-primary); font-weight: 700; }
.ec-wl-chip.ec-on span { background: var(--ec-primary); color: #fff; }

/* grid of product cards: lines between cards, like the store lists */
.ec-wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); border-top: 1px solid var(--ec-line); border-inline-start: 1px solid var(--ec-line); }
.ec-wl-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; background: #fff; border-bottom: 1px solid var(--ec-line); border-inline-end: 1px solid var(--ec-line); transition: box-shadow .15s, opacity .18s, transform .18s; min-width: 0; }
.ec-wl-card:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, .1); z-index: 1; }
.ec-wl-card.ec-wl-going { opacity: 0; transform: scale(.96); }
.ec-wl-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; overflow: hidden; color: var(--ec-border); font-size: 40px; }
.ec-wl-img img { width: 100%; height: 100%; object-fit: contain; }
.ec-wl-off .ec-wl-img img { filter: grayscale(1); opacity: .6; }
.ec-wl-name { font-size: 13px; line-height: 2; color: var(--ec-text-2) !important; height: 52px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none !important; }
.ec-wl-name:hover { color: var(--ec-text) !important; }
.ec-wl-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 18px; font-size: 11px; color: var(--ec-muted); }
.ec-wl-summary { margin: 0; font-size: 11px; line-height: 1.9; color: var(--ec-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ec-wl-stats { display: flex; gap: 12px; font-size: 11px; color: var(--ec-muted); }
.ec-wl-stats span { display: inline-flex; align-items: center; gap: 4px; }
.ec-wl-brand { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-wl-price { min-height: 44px; display: flex; flex-direction: column; justify-content: flex-end; }
.ec-wl-buy { display: flex; min-height: 36px; }
.ec-wl-buy .ec-btn { width: 100%; gap: 6px; }
.ec-wl-buy .ec-btn.ec-done { color: var(--ec-success) !important; border-color: var(--ec-success); }
.ec-wl-note { font-size: 12px; color: var(--ec-muted); align-self: center; }
.ec-wl-tools { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.ec-wl-tool { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ec-line); background: rgba(255, 255, 255, .92); color: var(--ec-text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.ec-wl-tool:hover { color: var(--ec-text); border-color: var(--ec-border); }
.ec-wl-remove:hover { color: var(--ec-primary); border-color: var(--ec-primary-soft); background: var(--ec-primary-soft); }

/* empty list */
.ec-wl-empty { padding: 56px 16px; }
.ec-wl-empty-icon { width: 96px; height: 96px; border-radius: 50%; background: var(--ec-primary-soft); color: var(--ec-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 40px; }
.ec-wl-empty .ec-wl-empty-title { margin: 4px 0 0; font-size: 15px; font-weight: 700; color: var(--ec-text); }
.ec-wl-empty .ec-wl-empty-hint { margin: 0 0 8px; font-size: 13px; }

@media (max-width: 575.98px) {
    .ec-wl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ec-wl-card { padding: 12px 10px; gap: 6px; }
    .ec-wl-name { font-size: 12px; height: 48px; }
    .ec-wl-tools { top: 6px; inset-inline-end: 6px; }
    .ec-wl-tool { width: 30px; height: 30px; font-size: 13px; }
    .ec-wl-buy .ec-btn { padding: 0 8px; font-size: 11px; }
    .ec-wl-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}

/* ---------- my lists ---------- */
.ec-wl-head .ec-wl-newlist, .ec-wl-ltools .ec-btn { gap: 6px; }
.ec-wl-ltools { display: flex; gap: 8px; flex-wrap: wrap; }
.ec-wl-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ec-wl-lcard { display: flex; flex-direction: column; border: 1px solid var(--ec-border); border-radius: var(--ec-radius); overflow: hidden; background: #fff; color: var(--ec-text) !important; text-decoration: none !important; transition: box-shadow .15s; }
.ec-wl-lcard:hover { box-shadow: var(--ec-shadow); }
.ec-wl-cover { display: grid; aspect-ratio: 16 / 10; background: var(--ec-page); gap: 2px; }
.ec-wl-cover img { width: 100%; height: 100%; object-fit: contain; background: #fff; min-height: 0; }
.ec-wl-cover-2, .ec-wl-cover-4 { grid-template-columns: 1fr 1fr; }
.ec-wl-cover-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ec-wl-cover-3 img:first-child { grid-row: 1 / span 2; }
.ec-wl-cover-4 { grid-template-rows: 1fr 1fr; }
.ec-wl-cover-empty { display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--ec-border); }
.ec-wl-lbody { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.ec-wl-lbody b { font-size: 14px; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-wl-lbody b i { color: var(--ec-primary); }
.ec-wl-lbody small { color: var(--ec-muted); font-size: 12px; }
.ec-wl-ldesc { color: var(--ec-text-2); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ec-wl-pub { color: #0e8fa0; }
.ec-wl-pub i { margin-inline-end: 3px; }
.ec-wl-by { margin: -4px 0 8px; font-size: 13px; color: var(--ec-muted); }
.ec-wl-by i { margin-inline-end: 6px; }
.ec-wl-desc { margin: 0 0 16px; font-size: 13px; line-height: 1.9; color: var(--ec-text-2); white-space: pre-line; overflow-wrap: anywhere; }
.ec-wl-switch { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; cursor: pointer; }
.ec-wl-switch input { width: 18px; height: 18px; accent-color: var(--ec-primary); }
.ec-wl-switch span { font-weight: 600; }
.ec-wl-switch small { grid-column: 2; color: var(--ec-muted); }
.ec-wl-link { display: flex; gap: 8px; }
.ec-wl-link .ec-input { flex: 1; min-width: 0; }
.ec-wl-link .ec-btn { gap: 6px; }

/* ---------- "save to list" dialog of the product hearts (skin/theme/wishlists.js) ---------- */
.ec-wls { width: min(420px, 100%); }
.ec-wls-rows { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; }
.ec-wls-row { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--ec-line); cursor: pointer; font-size: 14px; }
.ec-wls-row input { width: 18px; height: 18px; accent-color: var(--ec-primary); flex: 0 0 auto; }
.ec-wls-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-wls-name > i:first-child { color: var(--ec-muted); }
.ec-wls-pub { color: #0e8fa0; font-size: 12px; }
.ec-wls-row small { color: var(--ec-muted); font-size: 12px; white-space: nowrap; }
.ec-wls-new { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; border: 0; background: none; color: #19bfd3; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px; }
.ec-wls-form { display: flex; gap: 8px; margin-top: 12px; }
.ec-wls-form .ec-input { flex: 1; min-width: 0; }

@media (max-width: 575.98px) {
    .ec-wl-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ec-wl-ltools .ec-btn span, .ec-wl-head .ec-wl-newlist span { display: none; }
    .ec-wl-ltools .ec-btn, .ec-wl-head .ec-wl-newlist { width: 36px; padding: 0; }
}
