/* Consumer feed CCD2 v3.2.9. Scoped to avoid changing business-grid styles. */
.ls-consumer, .ls-consumer * { box-sizing: border-box; }
.ls-consumer {
    --ls-accent: #1e824c;
    --ls-accent-dark: #146137;
    --ls-border: #dfe5e9;
    --ls-text: #243241;
    --ls-muted: #586675;
    color: var(--ls-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    max-width: 1160px;
    margin: 22px auto;
    font-size: 15px;
    line-height: 1.55;
}
.ls-consumer [hidden] { display: none !important; }
.ls-consumer .ls-feed-warning {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
    border: 1px solid #ecc3bd;
    background: #fff4f1;
    border-radius: 12px;
    padding: 13px 16px;
    margin: 0 0 14px;
}
.ls-consumer .ls-warning-main { display: flex; align-items: center; gap: 10px; color: #872d1d; flex: 1 1 270px; }
.ls-consumer .ls-warning-main strong { font-weight: 800; font-size: 17px; line-height: 1.35; }
.ls-consumer .ls-warning-symbol { flex: none; display: inline-flex; align-items: center; justify-content: center; background: #ad3524; color: #fff; font-size: 16px; width: 25px; height: 25px; border-radius: 999px; font-weight: 800; }
.ls-consumer .ls-language-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid #dcc2bd; background: #fff; border-radius: 9px; }
.ls-consumer .ls-lang-button { min-width: 38px; border: 0; border-radius: 6px; padding: 4px 7px; background: transparent; color: #66514b; cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1.7; }
.ls-consumer .ls-lang-button.is-active { background: #872d1d; color: #fff; }
.ls-consumer .ls-lang-button:focus-visible, .ls-consumer .ls-sort:focus-visible, .ls-consumer a:focus-visible { outline: 3px solid #247e9e; outline-offset: 2px; }
.ls-consumer .ls-ad-disclosure { margin: 0 0 18px; background: #f7f9fb; border: 1px solid var(--ls-border); border-radius: 10px; padding: 11px 14px; color: var(--ls-muted); font-size: 13px; }
.ls-consumer .ls-ad-disclosure strong { color: var(--ls-text); }
.ls-consumer .ls-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 15px; }
.ls-consumer .ls-feed-timestamp { color: var(--ls-muted); font-size: 12px; font-weight: 400; }
.ls-consumer .ls-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.ls-consumer .ls-sort-wrap { display: flex; align-items: center; gap: 10px; }
.ls-consumer .ls-sort-wrap label { white-space: nowrap; font-size: 13px; font-weight: 700; }
.ls-consumer .ls-sort { min-width: 185px; height: 41px; border-radius: 8px; background: #fff; border: 1px solid #cbd5de; padding: 6px 10px; font-size: 14px; color: var(--ls-text); }
/* Stretch cards to the tallest card in their own grid row, not across all rows. */
.ls-consumer .ls-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.ls-consumer .ls-card { display: flex; flex-direction: column; min-width: 0; height: 100%; padding: 14px; border: 1px solid var(--ls-border); border-radius: 15px; background: #fff; box-shadow: 0 6px 18px rgba(19, 32, 45, .05); }
.ls-consumer .ls-card-header { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 86px; margin-bottom: 9px; }
.ls-consumer .ls-ad-label { font-size: 11px; color: #606c77; background: #f1f3f5; border: 1px solid #e2e6ea; border-radius: 4px; padding: 2px 6px; font-weight: 700; letter-spacing: .01em; }
/* Every provider uses the same 170 × 52 px logo slot; contain keeps original proportions. */
.ls-consumer .ls-logo { display: block; width: 170px; max-width: 100%; height: 52px; max-height: none; object-fit: contain; object-position: left center; flex-shrink: 0; }
.ls-consumer .ls-provider-name { font-size: 18px; font-weight: 800; }
.ls-consumer .ls-loan-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 0 11px; }
.ls-consumer .ls-loan-facts > div { padding: 9px 10px; background: #f7faf8; border: 1px solid #e4eee6; border-radius: 10px; }
.ls-consumer .ls-loan-facts dt { font-size: 12px; color: var(--ls-muted); margin: 0 0 4px; }
.ls-consumer .ls-loan-facts dd { font-size: 13px; font-weight: 750; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.ls-consumer .ls-example { background: #f8fafb; border: 1px solid var(--ls-border); border-radius: 10px; padding: 11px 12px; margin: 0 0 11px; }
.ls-consumer .ls-example-heading { display: block; font-size: 13px; font-weight: 800; margin-bottom: 7px; }
.ls-consumer .ls-example p { margin: 0; padding: 0; font-size: 13px; line-height: 1.65; color: #344150; white-space: pre-line; overflow-wrap: anywhere; }
.ls-consumer .ls-example .ls-example-missing { color: #972f26; }
.ls-consumer .ls-provider-contact { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; color: var(--ls-muted); margin-bottom: 12px; }
.ls-consumer .ls-provider-contact strong { color: var(--ls-text); }
.ls-consumer .ls-provider-contact a { overflow-wrap: anywhere; }
.ls-consumer .ls-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: 4px; }
/* New 900×136 px disclaimer. Display it at natural aspect ratio, nearly full
   card width, without the old 240px cap that made its text illegibly small.
   Never enlarge beyond 340 CSS pixels; the original file stays crisp on HiDPI. */
.ls-consumer .ls-warning-image {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: left center;
}
/* Accessible HTML alternative to the per-card warning image. */
.ls-consumer .ls-warning-text { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; margin: 0; padding: 5px 0; color: #222; font-size: 13px; line-height: 1.45; text-align: center; }
.ls-consumer .ls-warning-text strong { font-weight: 750; }
.ls-consumer .ls-warning-text-icon { display: block; width: 19px; height: 19px; flex: 0 0 19px; color: #11223a; }
.ls-consumer .ls-btn { display: block; background: var(--ls-accent); color: #fff !important; padding: 12px 18px; border-radius: 9px; font-weight: 800; font-size: 14px; text-align: center; text-decoration: none !important; line-height: 1.5; transition: background .15s ease; }
.ls-consumer a.ls-btn:hover { background: var(--ls-accent-dark); color: #fff !important; }
.ls-consumer .ls-btn-disabled { background: #e8ecf0; color: #637180 !important; cursor: not-allowed; }
.ls-consumer .ls-feed-note { color: var(--ls-muted); font-size: 13px; margin: 18px 0 12px; }
.ls-consumer .ls-disclosure { background: #f7f9fb; border: 1px solid var(--ls-border); border-radius: 12px; padding: 15px 17px; font-size: 13px; color: var(--ls-muted); }
.ls-consumer .ls-disclosure strong { color: var(--ls-text); }
.ls-consumer .ls-disclosure p { margin: 8px 0 0; }
.ls-consumer .ls-empty { grid-column: 1 / -1; padding: 25px; background: #f7f9fb; border-radius: 10px; text-align: center; }
@media (max-width: 1023px) { .ls-consumer .ls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
    .ls-consumer .ls-grid { grid-template-columns: minmax(0, 1fr); }
    /* Compact one-line warning layout: message left, language control right. */
    .ls-consumer .ls-feed-warning { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; }
    .ls-consumer .ls-warning-main { flex: 1 1 auto; width: auto; min-width: 0; gap: 7px; }
    .ls-consumer .ls-warning-main strong { font-size: 14px; line-height: 1.3; }
    .ls-consumer .ls-warning-symbol { width: 22px; height: 22px; font-size: 14px; }
    .ls-consumer .ls-language-switch { align-self: center; flex: 0 0 auto; gap: 1px; padding: 2px; border-radius: 7px; }
    .ls-consumer .ls-lang-button { min-width: 30px; height: 28px; padding: 3px 4px; border-radius: 5px; font-size: 11px; line-height: 1; }
}
@media (max-width: 440px) {
    .ls-consumer .ls-toolbar { align-items: flex-start; }
    .ls-consumer .ls-sort-wrap { width: 100%; justify-content: space-between; }
    .ls-consumer .ls-sort { flex: 1; min-width: 0; }
    .ls-consumer .ls-card { padding: 14px; }
    .ls-consumer .ls-feed-warning { padding: 10px 11px; }
    .ls-consumer .ls-loan-facts { gap: 7px; }
    .ls-consumer .ls-loan-facts > div { padding: 9px; }
    .ls-consumer .ls-loan-facts dd { font-size: 13px; }
}

/* Compact display-only currency selector; no amount filters. */
.ls-consumer .ls-toolbar-controls { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 16px; }
.ls-consumer .ls-currency-wrap { display: flex; align-items: center; gap: 7px; }
.ls-consumer .ls-currency-label { font-size: 12px; font-weight: 700; white-space: nowrap; }
.ls-consumer .ls-currency-buttons { display: inline-flex; gap: 1px; border: 1px solid #cbd5de; background: #fff; padding: 3px; border-radius: 8px; }
.ls-consumer .ls-currency-button { cursor: pointer; min-height: 29px; min-width: 37px; border: 0; padding: 4px 5px; background: transparent; border-radius: 5px; color: var(--ls-text); font-size: 11px; font-weight: 700; line-height: 1.2; }
.ls-consumer .ls-currency-button.is-active { background: #e6f1eb; color: #165d3c; }
.ls-consumer .ls-currency-button:hover:not(:disabled):not(.is-active) { background: #f2f5f7; }
.ls-consumer .ls-currency-button:disabled { cursor: not-allowed; opacity: .36; }
.ls-consumer .ls-currency-button:focus-visible { outline: 3px solid #247e9e; outline-offset: 2px; }
.ls-consumer .ls-amount-original { display: block; margin-top: 3px; font-size: 11px; line-height: 1.3; font-weight: 500; color: var(--ls-muted); }
@media (max-width: 680px) {
    .ls-consumer .ls-toolbar-controls { width: 100%; justify-content: space-between; gap: 8px; }
    .ls-consumer .ls-currency-wrap { gap: 6px; }
    .ls-consumer .ls-currency-buttons { padding: 2px; }
    .ls-consumer .ls-currency-button { min-width: 34px; }
    .ls-consumer .ls-sort { min-width: 145px; }
}
@media (max-width: 440px) {
    .ls-consumer .ls-toolbar-controls { flex-direction: column; align-items: stretch; gap: 9px; }
    .ls-consumer .ls-currency-wrap { justify-content: space-between; }
    .ls-consumer .ls-sort-wrap { width: 100%; }
}
