.ld-credit-module{font-size:14px;background:#fff;border:1px solid #e7e7e7;border-radius:0;margin:14px 0 18px;padding:0;line-height:1.45;color:#213044;box-shadow:none}
.ld-credit-offer{padding:18px;background:#fff;border-radius:0}
.ld-credit-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.ld-credit-paid-wrap{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ld-credit-paid{font-size:12px;line-height:1.2;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#213044}
.ld-credit-help{width:24px;height:24px;border:1px solid #cfd7e3;border-radius:50%;background:#fff;color:#51647a;font-weight:700;cursor:help}
.ld-credit-lender-name{font-size:14px;font-weight:700;color:#213044;text-align:right;max-width:40%}
.ld-credit-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.ld-credit-copy h3{font-size:24px;line-height:1.15;margin:0 0 8px;color:#12263f}
.ld-credit-copy p{margin:0;color:#5c6d80;font-size:14px}
.ld-credit-logo-placeholder{width:116px;height:72px;border:1px dashed #cfd7e3;display:flex;align-items:center;justify-content:center;color:#8a98aa;font-weight:700;font-size:13px;flex:0 0 auto;background:#fafbfc}
.ld-credit-label{display:block;font-size:13px;font-weight:700;color:#213044;margin-bottom:8px}
.ld-credit-amount-block,.ld-credit-term-block{margin-bottom:18px}
.ld-credit-amount-input{width:100%;max-width:260px;border:1px solid #d6dde7;background:#fff;padding:11px 12px;font:inherit;color:#213044}
.ld-credit-amount-range{display:block;width:100%;margin:14px 0 8px;accent-color:#eb651e}
.ld-credit-amount-limits{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#6c7b8d}
.ld-credit-term-tiles{display:flex;flex-wrap:wrap;gap:10px}
.ld-credit-term-tile{border:1px solid #d6dde7;background:#fff;padding:10px 14px;font:inherit;font-weight:700;color:#23354c;cursor:pointer;min-width:96px}
.ld-credit-term-tile.is-active{background:#fff3eb;border-color:#eb651e;color:#a24b12}
.ld-credit-summary{display:flex;justify-content:space-between;gap:14px;border-top:1px solid #eceff3;border-bottom:1px solid #eceff3;padding:16px 0;margin:18px 0}
.ld-credit-summary-item{display:flex;flex-direction:column;gap:4px}
.ld-credit-summary-item span{font-size:12px;color:#6a788b;text-transform:uppercase;letter-spacing:.3px}
.ld-credit-summary-item strong{font-size:28px;line-height:1.1;color:#12263f}
.ld-credit-summary-left{text-align:left}
.ld-credit-summary-right{text-align:right;margin-left:auto}
.ld-credit-meta{display:grid;gap:8px;margin-bottom:16px}
.ld-credit-meta-line{display:flex;justify-content:space-between;gap:14px;color:#415267;font-size:14px}
.ld-credit-meta-line strong{white-space:nowrap;color:#12263f}
.ld-credit-example{margin:0 0 16px;background:#fafbfc;border:1px solid #eef1f4;padding:12px;color:#23354c;font-size:13px}
.ld-credit-example strong{display:block;margin-bottom:6px}
.ld-credit-example p{margin:0;white-space:pre-line}
.ld-credit-link{display:block;text-align:center;background:#eb651e;padding:13px 14px;font-size:14px;font-weight:700;color:#fff!important;text-decoration:none!important;border-radius:0}
.ld-credit-link:hover{background:#d0500d}
.ld-credit-legal{font-size:12px;color:#647487;line-height:1.55;margin:14px 0 0}
.ld-credit-amount-input:focus-visible,.ld-credit-term-tile:focus-visible,.ld-credit-link:focus-visible,.ld-credit-help:focus-visible{outline:3px solid #f7b27e;outline-offset:2px}
@media(max-width:900px){
  .ld-credit-offer{padding:14px}
  .ld-credit-topbar{align-items:flex-start}
  .ld-credit-lender-name{max-width:48%}
  .ld-credit-copy h3{font-size:20px}
  .ld-credit-summary-item strong{font-size:22px}
}
@media(max-width:680px){
  .ld-credit-module{margin:12px 0 16px}
  .ld-credit-topbar,.ld-credit-hero,.ld-credit-summary{display:block}
  .ld-credit-lender-name{text-align:left;max-width:none;margin-top:6px}
  .ld-credit-logo-placeholder{margin-top:12px;width:100%;max-width:150px;height:64px}
  .ld-credit-summary-right{margin-left:0;text-align:left;margin-top:14px}
  .ld-credit-term-tile{min-width:unset;flex:1 1 calc(50% - 10px)}
 .ld-credit-amount-input{max-width:none}
}
#ldCreditDesktopSlot .ld-credit-module{margin:14px 0 18px}
#ldCreditMobileSlot .ld-credit-module{margin:14px 0 18px}

/* V4: kompaktowy panel rat bez tabeli kosztów; CTA na linii kwoty */
.ld-credit-amount-actions{display:flex;align-items:stretch;gap:12px;width:100%}
.ld-credit-amount-actions .ld-credit-amount-input{flex:0 1 230px;min-width:120px;max-width:260px}
.ld-credit-amount-actions .ld-credit-link{flex:1;display:flex;align-items:center;justify-content:center;min-width:0;max-width:none;padding:10px 12px;line-height:1.3;white-space:normal}
.ld-credit-summary{align-items:center;margin:14px 0 12px}
.ld-credit-summary-left{display:flex;flex-direction:row;align-items:center;gap:5px;white-space:nowrap}
.ld-credit-summary-left span,.ld-credit-summary-left .ld-credit-rrso{font-size:13px;line-height:1.4;font-weight:500;color:#6c7b8d;text-transform:none;letter-spacing:0}
.ld-credit-summary-right{display:flex;flex-direction:column}
.ld-credit-example{background:none;border:0;border-top:1px solid #edf0f4;padding:12px 0 0;margin:12px 0 0;color:#4d5e71;font-size:13px;line-height:1.5}
.ld-credit-example strong{font-size:13px;color:#4d5e71;font-weight:600}
.ld-credit-example p{margin-top:4px}
.ld-credit-example-missing{font-style:italic;color:#8c5b25}
@media(max-width:680px){
  .ld-credit-summary-left{margin-bottom:10px}
  .ld-credit-amount-actions .ld-credit-amount-input{flex:0 1 40%}
  .ld-credit-amount-actions .ld-credit-link{font-size:12px}
}
@media(max-width:390px){
  .ld-credit-amount-actions{flex-wrap:wrap;gap:8px}
  .ld-credit-amount-actions .ld-credit-amount-input{flex:1 1 100%;max-width:none}
  .ld-credit-amount-actions .ld-credit-link{flex:1 1 100%}
}

/* V5: RRSO i rata równorzędne, dyskretne informacje na jednej linii. */
.ld-credit-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 18px;padding:15px 0;margin:12px 0 0}
.ld-credit-summary-item,.ld-credit-summary-right{display:inline-flex;flex-direction:row;align-items:baseline;gap:5px;margin:0}
.ld-credit-summary-item span,.ld-credit-summary-item strong,.ld-credit-summary-item .ld-credit-installment,.ld-credit-summary-item .ld-credit-rrso{font-size:13px;line-height:1.45;font-weight:500;color:#6c7b8d;letter-spacing:0;text-transform:none;white-space:nowrap}
.ld-credit-summary-right{margin-left:auto;text-align:right}
/* Nagłówek przykładu reprezentatywnego po prawej od "Liczba rat". */
.ld-credit-term-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px}
.ld-credit-term-heading .ld-credit-label{margin-bottom:0}
.ld-credit-representative-title,.ld-credit-representative-toggle{font:inherit;font-size:12px;font-weight:500;line-height:1.3;color:#718093;text-align:right}
.ld-credit-representative-toggle{border:0;background:none;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.ld-credit-representative-toggle:hover{color:#d35d18}
.ld-credit-representative-toggle:focus-visible{outline:2px solid #eb651e;outline-offset:3px}
.ld-credit-representative-content{background:#fafbfc;border:1px solid #e9edf1;padding:12px;margin-top:12px;color:#45576b;font-size:12px;line-height:1.5}
.ld-credit-representative-content p{margin:0;white-space:pre-line;overflow-wrap:anywhere}
@media(max-width:680px){
  .ld-credit-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}
  .ld-credit-summary-left{margin:0}
  .ld-credit-summary-right{margin:0 0 0 auto;text-align:right}
  .ld-credit-summary-item span,.ld-credit-summary-item strong,.ld-credit-summary-item .ld-credit-installment,.ld-credit-summary-item .ld-credit-rrso{font-size:12px}
  .ld-credit-term-heading{align-items:center}
}

/* V6 — szersze miejsce na logo; bez dolnej linii pod RRSO i ratą. */
.ld-credit-summary{border-bottom:0}
.ld-credit-hero .ld-credit-copy{min-width:0;flex:1 1 auto}
.ld-credit-hero .ld-credit-logo-placeholder{width:210px;max-width:35%;height:84px;flex:0 1 210px}
@media(max-width:680px){
  .ld-credit-hero .ld-credit-logo-placeholder{max-width:210px;width:100%;height:76px;flex:none}
}

/* V7: ciaśniejszy dół karty, bez niepotrzebnej pustej przestrzeni pod ratą. */
.ld-credit-offer{padding-bottom:10px}
.ld-credit-summary{padding-bottom:4px;margin-bottom:0}

/* V8: mobilna zakładka NA RATY i pełnoekranowy panel pod głównym nagłówkiem. */
.ld-credit-mobile-tab,.ld-credit-mobile-dialog{display:none}
.ld-credit-mobile-tab[hidden],.ld-credit-mobile-dialog[hidden]{display:none!important}
@media(max-width:900px){
  html.ld-credit-drawer-scroll-locked,body.ld-credit-drawer-scroll-locked{overflow:hidden!important;overscroll-behavior:none}
  /* V13: lewa krawędź prosta jak przyklejona do ekranu, zaokrąglenie tylko po prawej, niżej, błękitny połysk. */
  .ld-credit-mobile-tab:not([hidden]){
    box-sizing:border-box;
    position:fixed;left:0;top:calc(var(--ld-credit-header-bottom,68px) + 148px);
    width:26px;height:72px;z-index:2147483000;
    display:flex;align-items:center;justify-content:center;
    padding:4px 3px 4px 0;cursor:pointer;
    color:#12466c;
    background:linear-gradient(150deg,#88c9f4 0%,#c2eafb 24%,#76b9e8 47%,#dbf4ff 68%,#82c5f1 100%);
    background-size:250% 250%;
    border:0;border-radius:0 14px 14px 0;
    box-shadow:none;font:800 11px/1.05 Arial,sans-serif;
    isolation:isolate;overflow:hidden;
    animation:ld-credit-tab-blue-glow 4.4s ease-in-out infinite;
    touch-action:pan-y;-webkit-tap-highlight-color:transparent;
  }
  .ld-credit-mobile-tab:not([hidden])::before{
    content:"";position:absolute;inset:-14px -8px -14px 0;
    background:linear-gradient(105deg,transparent 26%,rgba(255,255,255,0) 41%,rgba(255,255,255,.72) 50%,rgba(255,255,255,0) 59%,transparent 75%);
    transform:translateX(-155%);pointer-events:none;z-index:0;
    animation:ld-credit-tab-shine 4.4s ease-in-out infinite;
  }
  .ld-credit-mobile-tab span{
    position:relative;z-index:1;
    display:block;writing-mode:vertical-rl;transform:rotate(180deg);
    letter-spacing:.35px;font-weight:800;font-size:11px;line-height:1;white-space:nowrap;
  }
  @keyframes ld-credit-tab-blue-glow{
    0%,100%{background-position:0% 50%}
    45%,58%{background-position:100% 50%}
  }
  @keyframes ld-credit-tab-shine{
    0%,18%{transform:translateX(-155%);opacity:0}
    23%{opacity:.85}
    46%{transform:translateX(155%);opacity:.78}
    52%,100%{transform:translateX(155%);opacity:0}
  }
  .ld-credit-mobile-tab:focus-visible{outline:3px solid #0b5a90;outline-offset:2px}
  /* V14: pełny viewport, razem z nagłówkiem serwisu. */
  .ld-credit-mobile-dialog:not([hidden]){
    position:fixed;inset:0;
    z-index:2147483647;background:#fff;
    display:flex;flex-direction:column;min-width:0;max-width:none;
    overflow:hidden;overscroll-behavior:contain;
    box-shadow:0 -4px 24px rgba(19,38,59,.12);
    animation:ld-credit-enter .19s ease-out both;
  }
  .ld-credit-mobile-dialog-head{
    flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;
    background:#fff;border-bottom:1px solid #e5e9ef;
    padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px;min-height:56px;
    touch-action:pan-y;
  }
  .ld-credit-mobile-dialog-head h2{margin:0;color:#192f4a;font-weight:750;font-size:17px;line-height:1.3}
  .ld-credit-mobile-close{
    flex:0 0 auto;width:42px;height:42px;display:flex;align-items:center;justify-content:center;
    border:1px solid #dce4ee;border-radius:0;background:#fff;color:#344f6e;
    font:400 30px/1 Arial,sans-serif;cursor:pointer;
  }
  .ld-credit-mobile-close:focus-visible{outline:2px solid #2879b5;outline-offset:2px}
  .ld-credit-mobile-dialog-content{
    flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
    -webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;
    padding:12px 14px calc(20px + env(safe-area-inset-bottom,0px));
  }
  .ld-credit-mobile-dialog-content .ld-credit-module{display:block!important;margin:0!important;border:0!important;background:#fff;box-shadow:none}
  .ld-credit-mobile-dialog-content .ld-credit-offer{padding:8px 0 10px}
  .ld-credit-mobile-dialog-content .ld-credit-topbar{display:flex;align-items:center;margin-bottom:18px;gap:10px}
  .ld-credit-mobile-dialog-content .ld-credit-lender-name{text-align:right;margin:0;max-width:52%;overflow-wrap:anywhere}
  .ld-credit-mobile-dialog-content .ld-credit-hero{display:grid;grid-template-columns:minmax(0,1fr) 106px;gap:12px;align-items:center}
  .ld-credit-mobile-dialog-content .ld-credit-copy h3{font-size:21px;line-height:1.16}
  .ld-credit-mobile-dialog-content .ld-credit-copy p{font-size:13px;line-height:1.5}
  .ld-credit-mobile-dialog-content .ld-credit-hero .ld-credit-logo-placeholder{margin:0!important;width:100%!important;max-width:106px!important;height:70px!important;min-width:0;flex:none}
  .ld-credit-mobile-dialog-content .ld-credit-amount-actions{display:flex;gap:8px;flex-wrap:nowrap}
  .ld-credit-mobile-dialog-content .ld-credit-amount-actions .ld-credit-amount-input{flex:0 0 39%;min-width:0;max-width:none;font-size:14px;padding:11px 9px}
  .ld-credit-mobile-dialog-content .ld-credit-amount-actions .ld-credit-link{flex:1 1 auto;font-size:12px;line-height:1.25;padding:9px 7px;min-height:44px}
  .ld-credit-mobile-dialog-content .ld-credit-term-tiles{display:flex;gap:8px}
  .ld-credit-mobile-dialog-content .ld-credit-term-tile{flex:1 1 88px;min-width:0;padding:10px 7px;font-size:13px}
  .ld-credit-mobile-dialog-content .ld-credit-summary{display:flex;flex-wrap:wrap;gap:8px 14px;padding:12px 0 4px;margin:12px 0 0;border-bottom:0}
  .ld-credit-mobile-dialog-content .ld-credit-summary-item{display:inline-flex;flex-direction:row;align-items:baseline;gap:5px;margin:0}
  .ld-credit-mobile-dialog-content .ld-credit-summary-right{margin-left:auto;text-align:right}
  .ld-credit-mobile-dialog-content .ld-credit-summary-item span,.ld-credit-mobile-dialog-content .ld-credit-summary-item strong{font-size:12px;line-height:1.45;white-space:nowrap;color:#6c7b8d;font-weight:500;text-transform:none;letter-spacing:0}
  @keyframes ld-credit-enter{from{transform:translateX(-12px);opacity:.92}to{transform:translateX(0);opacity:1}}
}
@media(max-width:360px){
  .ld-credit-mobile-tab:not([hidden]){top:calc(var(--ld-credit-header-bottom,68px) + 138px);width:24px;height:68px;border-radius:0 12px 12px 0}
  .ld-credit-mobile-dialog-content{padding-left:10px;padding-right:10px}
  .ld-credit-mobile-dialog-content .ld-credit-hero{grid-template-columns:minmax(0,1fr) 82px;gap:8px}
  .ld-credit-mobile-dialog-content .ld-credit-copy h3{font-size:19px}
  .ld-credit-mobile-dialog-content .ld-credit-hero .ld-credit-logo-placeholder{max-width:82px!important}
  .ld-credit-mobile-dialog-content .ld-credit-amount-actions .ld-credit-link{font-size:11px}
  .ld-credit-mobile-dialog-content .ld-credit-summary-item span,.ld-credit-mobile-dialog-content .ld-credit-summary-item strong{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.ld-credit-mobile-dialog:not([hidden]){animation:none}.ld-credit-mobile-tab:not([hidden]),.ld-credit-mobile-tab:not([hidden])::before{animation:none}}

/* Okno przykładu reprezentatywnego; własna warstwa nad kalkulatorem mobilnym. */
.ld-credit-representative-dialog:not([open]){display:none}
.ld-credit-representative-dialog[open]{
  box-sizing:border-box;width:min(560px,calc(100vw - 26px));max-width:560px;
  max-height:min(80vh,740px);max-height:min(80dvh,740px);
  margin:auto;padding:0;border:1px solid #dce3eb;border-radius:16px;
  background:#fff;color:#283950;box-shadow:0 22px 65px rgba(12,26,43,.30);
  overflow-y:auto;overscroll-behavior:contain;
}
.ld-credit-representative-dialog::backdrop{background:rgba(13,28,47,.56)}
.ld-credit-representative-dialog-inner{padding:0;margin:0}
.ld-credit-representative-dialog-header{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:17px 18px;border-bottom:1px solid #e7ebf0;
}
.ld-credit-representative-dialog-header h3{margin:0;font:750 18px/1.3 Arial,sans-serif;color:#20354b}
.ld-credit-representative-close{
  flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;
  padding:0;border:1px solid #dfe5ec;border-radius:50%;background:#f8fafc;
  color:#41546b;font:400 25px/1 Arial,sans-serif;cursor:pointer;
}
.ld-credit-representative-close:hover{background:#edf2f8}
.ld-credit-representative-close:focus-visible{outline:2px solid #ee7029;outline-offset:2px}
.ld-credit-representative-dialog-body{padding:18px 19px 21px;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.ld-credit-representative-dialog-body p{margin:0;white-space:pre-wrap}
@media(max-width:600px){
  .ld-credit-representative-dialog[open]{width:calc(100vw - 24px);max-height:calc(100dvh - 48px);border-radius:13px}
  .ld-credit-representative-dialog-header{padding:14px 15px}
  .ld-credit-representative-dialog-header h3{font-size:16px}
  .ld-credit-representative-dialog-body{padding:15px 16px 19px;font-size:13px}
}

/* Logo partnera: zachowuje naturalne proporcje na PC i na urządzeniach mobilnych. */
.ld-credit-logo-placeholder.ld-credit-logo-set{border-style:solid;background:#fff;overflow:hidden;box-sizing:border-box;padding:7px}
.ld-credit-logo-set img{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%}
