/* Find your match (loan-match lane). Sits on the Squad application kit (site/squad/_base.html,
   bx-squad-app.css): cards, fields, radio rows, details, tags and the primary button all come
   from there. This file adds only what the kit has no piece for: the step progress bar, the
   amount picker, the grouped lender list and the save bar. No new button style.
   Motion per 01-STANDART-KACHESTVA: 300ms in, 75ms press, expo-out, nothing moves by itself,
   prefers-reduced-motion respected.
   Glass (19 Nov 2026, Art: "liquid glass design"): the top surfaces only (the step card, the lender
   list, the payment note, the phone save bar, the toast) are frosted glass with a lit top edge over a
   still brand light field; nothing inside them is glass again. Where the browser cannot blur, or the
   person asks for less transparency or more contrast, they fall back to the solid kit card. */

/* ---------------------------------------------------------------- glass */
:root { --lm-glass: linear-gradient(158deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.05) 52%, rgba(255,255,255,.025) 100%), rgba(11,15,42,.52);
  --lm-glass-edge: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.08);
  --lm-glass-lift: 0 30px 80px -24px rgba(0,0,0,.65);
  --lm-press: cubic-bezier(.16,1,.3,1); }
/* the light the glass bends: two still brand glows added to the kit's glow layer (site/squad/_base.html
   .bxa-glows), placed behind the cards; they never move */
.bxa-glows::before, .bxa-glows::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.bxa-glows::before { width: 620px; height: 620px; left: -260px; top: 140px; background: radial-gradient(circle, rgba(133,133,233,.34), rgba(133,133,233,0) 66%); }
.bxa-glows::after { width: 700px; height: 700px; right: -300px; top: 560px; background: radial-gradient(circle, rgba(38,75,255,.32), rgba(38,75,255,0) 66%); }
.lm-glass, .lm-list, .lm-paid, .lm-savebar, .lm-toast { background: var(--lm-glass); border-color: transparent;
  box-shadow: var(--lm-glass-edge), var(--lm-glass-lift);
  -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); }
.lm-paid, .lm-toast { box-shadow: var(--lm-glass-edge); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lm-glass, .lm-list, .lm-paid, .lm-savebar, .lm-toast { background: var(--bxa-card); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .bxa-glows::before, .bxa-glows::after { display: none; }
  .lm-glass, .lm-list, .lm-paid, .lm-savebar, .lm-toast { background: var(--bxa-card); -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: inset 0 0 0 1.5px var(--bxa-line-2); }
}

.lm-progress { display: flex; gap: 6px; margin: 0 0 22px; }
.lm-progress span { flex: 1; height: 4px; border-radius: 999px; background: rgba(255,255,255,.12); }
.lm-progress span.is-done { background: linear-gradient(90deg, var(--bxa-blue), var(--bxa-violet)); }

.lm-step[hidden] { display: none; }
.lm-step > legend { padding: 0; }
.lm-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.lm-q { font-family: var(--bxa-heading); font-weight: 400; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -.8px; margin: 0 0 10px; }
.lm-q em { font-style: italic; color: var(--bxa-violet); }
.lm-options { display: grid; gap: 8px; margin: 18px 0 0; }
.lm-options .bxa-radio { min-height: 56px; font-size: 16px; color: #fff; border-color: transparent; background: rgba(255,255,255,.045); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.1); transition: background .3s var(--lm-press), box-shadow .3s var(--lm-press), transform .15s var(--lm-press); }
.lm-options .bxa-radio:hover { background: rgba(255,255,255,.07); }
.lm-options .bxa-radio:active { transform: scale(.98); }
.lm-options .bxa-radio:has(input:checked) { background: rgba(133,133,233,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1.5px #8585E9, 0 8px 24px -8px rgba(38,75,255,.55); }
.lm-options .bxa-radio:has(input:focus-visible) { outline: 2px solid #B9C3FF; outline-offset: 2px; }

.lm-amount { margin: 26px 0 0; text-align: center; font-family: var(--bxa-heading); font-size: 56px; line-height: 1; letter-spacing: -1.5px; }
.lm-range { display: block; width: 100%; height: 32px; margin: 26px 0 0; accent-color: var(--bxa-blue); cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y; }
.lm-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #8585E9, #264BFF) 0 0 / var(--p, 0%) 100% no-repeat, rgba(255,255,255,.12); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.lm-range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.lm-range::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #8585E9, #264BFF); }
.lm-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; border: 0;
  background: radial-gradient(70% 70% at 35% 28%, #fff 0%, #EEF0FF 55%, #C9D0FF 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 -2px 4px rgba(38,75,255,.25), 0 0 0 1px rgba(255,255,255,.5); transition: transform .15s var(--lm-press); }
.lm-range::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: radial-gradient(70% 70% at 35% 28%, #fff 0%, #EEF0FF 55%, #C9D0FF 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 -2px 4px rgba(38,75,255,.25), 0 0 0 1px rgba(255,255,255,.5); transition: transform .15s var(--lm-press); }
.lm-range:active::-webkit-slider-thumb { transform: scale(1.14); }
.lm-range:active::-moz-range-thumb { transform: scale(1.14); }
.lm-range:focus-visible { outline: none; }
.lm-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 6px 16px rgba(0,0,0,.45), 0 0 0 3px #0B0F2A, 0 0 0 5px #B9C3FF; }
.lm-range:focus-visible::-moz-range-thumb { box-shadow: 0 6px 16px rgba(0,0,0,.45), 0 0 0 3px #0B0F2A, 0 0 0 5px #B9C3FF; }
.lm-range-ends { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 12.5px; color: var(--bxa-dim); }
.lm-presets { display: flex; gap: 4px; margin: 22px 0 0; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.18); box-shadow: inset 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.07); }
.lm-presets label { flex: 1; position: relative; }
.lm-presets input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lm-presets span { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--bxa-muted); cursor: pointer; transition: background .3s var(--lm-press), color .3s var(--lm-press), box-shadow .3s var(--lm-press), transform .15s var(--lm-press); }
.lm-presets label:active span { transform: scale(.94); }
.lm-presets input:checked + span { background: radial-gradient(50% 169.64% at 50% 50%, #8585E9 0%, #264BFF 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px rgba(38,75,255,.35); }
.lm-presets input:focus-visible + span { outline: 2px solid var(--bxa-violet); outline-offset: 2px; }

.lm-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lm-keep { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.08); font-size: 13.5px; line-height: 1.5; color: var(--bxa-muted); }
.lm-keep svg { flex-shrink: 0; margin-top: 2px; }
.lm-keep a { color: #c7ceff; }

.lm-nav { display: flex; gap: 10px; margin: 26px 0 0; }
.lm-nav .bxa-btn-primary { flex: 1; }
.lm-nav .bxa-btn, .lm-savebar .bxa-btn, .lm-glass .bxa-btn-primary { transition: transform .15s var(--lm-press), filter .3s var(--lm-press); }
.lm-nav .bxa-btn-primary, .lm-savebar .bxa-btn-primary, .lm-glass .bxa-btn-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 12px 34px rgba(38,75,255,.38); }
.lm-nav .bxa-btn:active, .lm-savebar .bxa-btn:active, .lm-glass .bxa-btn-primary:active { transform: scale(.97); }
.lm-nav .bxa-btn[disabled] { opacity: .4; cursor: not-allowed; }

.lm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.lm-chips .bxa-chip { color: #fff; border-color: transparent; background: rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.12); }
.lm-paid { margin: 18px 0 0; padding: 14px 16px; border-radius: 18px; border: 0; font-size: 13.5px; line-height: 1.5; color: var(--bxa-muted); }
.lm-paid b { color: #fff; }
.lm-count { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 24px 4px 10px; }
.lm-count strong { font-family: var(--bxa-heading); font-weight: 400; font-size: 20px; white-space: nowrap; }
.lm-count span { font-size: 12.5px; color: var(--bxa-dim); text-align: right; }

.lm-list { border: 0; border-radius: 22px; overflow: hidden; }
.lm-offer + .lm-offer { border-top: 1px solid rgba(255,255,255,.08); }
.lm-offer { padding: 6px 8px 16px; }
.lm-offer summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 18px; gap: 4px 12px; align-items: center; padding: 10px 8px; border-radius: 14px; transition: background .3s cubic-bezier(.16,1,.3,1); }
.lm-offer summary::-webkit-details-marker { display: none; }
.lm-offer summary:hover { background: rgba(255,255,255,.04); }
.lm-offer summary:active { background: rgba(255,255,255,.08); transition-duration: 75ms; }
.lm-offer summary:focus-visible { outline: 2px solid var(--bxa-violet); outline-offset: 2px; }
.lm-offer summary::after { content: ''; grid-column: 4; grid-row: 1; width: 8px; height: 8px; border-right: 2px solid #b9c3ff; border-bottom: 2px solid #b9c3ff; transform: translateY(-25%) rotate(45deg); transition: transform .3s cubic-bezier(.16,1,.3,1); justify-self: center; }
.lm-offer details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.lm-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(158deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); font-weight: 700; font-size: 13px; }
.lm-name { min-width: 0; }
.lm-name b { display: block; font-size: 15px; line-height: 1.25; }
.lm-name small { display: block; font-size: 12px; color: var(--bxa-dim); }
.lm-apr { text-align: right; }
.lm-apr b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; }
.lm-apr small { display: block; font-size: 11px; color: var(--bxa-dim); }
.lm-meta { grid-column: 2 / -1; grid-row: 2; margin: 0; font-size: 13px; line-height: 1.45; color: var(--bxa-muted); }
.lm-facts { margin: 12px 8px 0; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.lm-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.4; }
.lm-facts div + div { border-top: 1px solid rgba(255,255,255,.07); }
.lm-facts dt { color: var(--bxa-dim); flex-shrink: 0; }
.lm-facts dd { margin: 0; text-align: right; }
.lm-why { margin: 12px 8px 0; }
.lm-why .bxa-list { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.82); }
.lm-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin: 12px 8px 0; }
.lm-act .bxa-fine { margin: 0; flex: 1 1 140px; }
.lm-act .bxa-btn { height: 44px; padding: 0 14px; font-size: 14px; white-space: nowrap; border-color: var(--bxa-violet); }

.lm-more { margin: 12px 0 0; }
.lm-more > summary { list-style: none; width: 100%; }
.lm-more > summary::-webkit-details-marker { display: none; }
.lm-more[open] > summary { display: none; }
.lm-more-list { margin: 12px 0 0; }

.lm-tool { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.045); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.1); transition: background .3s var(--lm-press), transform .15s var(--lm-press); color: #fff; text-decoration: none; }
.lm-tool:hover { background: rgba(255,255,255,.07); }
.lm-tool:active { transform: scale(.98); }
.lm-tool b { display: block; font-size: 15px; }
.lm-tool small { display: block; font-size: 13px; color: var(--bxa-muted); }

/* Phone: the one main action sits at the bottom, full width, where the thumb is. */
.lm-savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; margin: 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 22px 22px 0 0; text-align: center; }
body:has(.lm-savebar) { padding-bottom: 150px; }
.lm-savebar p { margin: 0 0 10px; font-size: 13.5px; color: var(--bxa-muted); }
.lm-savebar .bxa-btn { width: 100%; }
/* the site's cookie pill (bx-consent-pill, fixed bottom left) sat on top of the bar's button: lift it above the bar */
body:has(.lm-savebar) #bx-consent-pill { bottom: calc(172px + env(safe-area-inset-bottom)); }

.lm-toast { position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; font-size: 14px; font-weight: 600; white-space: nowrap; z-index: 20; animation: lm-toast 2.5s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes lm-toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 12% { opacity: 1; transform: translate(-50%, 0); } 88% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

.lm-saved { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(49,166,80,.16); color: #5FD07F; font-size: 13px; font-weight: 600; }

@media (min-width: 900px) {
  .lm-results { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; }
  .lm-savebar { position: static; margin: 18px 0 0; padding: 18px; border-radius: 22px; text-align: left; }
  body:has(.lm-savebar) { padding-bottom: 0; }
  body:has(.lm-savebar) #bx-consent-pill { bottom: 12px; }
}
@media (max-width: 600px) {
  .lm-offer summary { grid-template-columns: 30px minmax(0, 1fr) 18px; }
  .lm-offer summary::after { grid-column: 3; }
  .lm-apr { grid-column: 2; grid-row: 2; text-align: left; }
  .lm-apr b, .lm-apr small { display: inline; }
  .lm-apr small { margin-left: 6px; }
  .lm-meta { grid-column: 2 / -1; grid-row: 3; }
}
@media (max-width: 420px) {
  .lm-names { grid-template-columns: 1fr; }
  .lm-amount { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-presets span, .lm-offer summary, .lm-offer summary::after { transition: none; }
  .lm-options .bxa-radio, .lm-tool, .lm-nav .bxa-btn, .lm-savebar .bxa-btn, .lm-glass .bxa-btn-primary,
  .lm-range::-webkit-slider-thumb, .lm-range::-moz-range-thumb { transition: none; }
  .lm-presets label:active span, .lm-options .bxa-radio:active, .lm-tool:active, .lm-nav .bxa-btn:active,
  .lm-savebar .bxa-btn:active, .lm-glass .bxa-btn-primary:active,
  .lm-range:active::-webkit-slider-thumb, .lm-range:active::-moz-range-thumb { transform: none; }
  .lm-toast { animation: none; }
}
