/* Keep the original LP. Dialogs inherit its typography and native CTA palette. */
#lpc-reminder[hidden],#lpc-loader[hidden]{display:none!important}
.lpc-loan-layer{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.78);display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;color:#111}
.lpc-loan-card{position:relative;background:#fff;border:3px solid var(--lpc-loan-accent,#00ade0);border-radius:9px;padding:40px 32px;max-width:530px;width:100%;box-sizing:border-box;text-align:center;max-height:calc(100dvh - 48px);overflow:auto;font-family:inherit}
.lpc-loan-card h2{font-size:28px;line-height:1.25;margin:0 0 18px;color:#111}
.lpc-loan-card p{font-size:17px;line-height:1.5;margin:12px 0;color:#222}
.lpc-loan-card button{font-family:inherit;cursor:pointer}
.lpc-loan-close{position:absolute;right:8px;top:5px;background:transparent;border:0;color:#087f9f;font-size:28px;line-height:1;padding:8px}
.lpc-loan-primary{display:block;width:100%;padding:15px 20px;border:0;border-radius:35px;background:var(--lpc-loan-accent,#00ade0);color:#fff;font-size:18px;font-weight:bold;margin-top:24px}
.lpc-loan-secondary{background:transparent;border:0;text-decoration:underline;padding:14px;color:#444;font-size:16px}
.lpc-loan-card button:focus-visible,#popup-form .close-popup:focus-visible{outline:3px solid #1354ac;outline-offset:3px}
.lpc-loan-dots{height:70px;position:relative;margin:4px auto 25px;width:95px}
.lpc-loan-dots:before,.lpc-loan-dots:after{content:"";display:block;position:absolute;width:62px;height:62px;border-radius:50%;background:var(--lpc-loan-accent,#00ade0);left:0;top:4px;animation:lpc-loan-pulse 1.5s ease-in-out infinite alternate}
.lpc-loan-dots:after{background:#153e7d;left:29px;animation-delay:-.75s}
@keyframes lpc-loan-pulse{from{transform:scale(.83);opacity:.6}to{transform:scale(1);opacity:1}}
body.lpc-loan-busy #pdmOverlay{visibility:hidden}
body.lpc-loan-busy{overflow:hidden}
#popup-form .lpc-loan-note{font-size:14px;line-height:1.5}
#popup-form .popup{max-height:calc(100dvh - 55px);overflow:auto;box-sizing:border-box}
@media(max-width:600px){.lpc-loan-layer{padding:18px}.lpc-loan-card{padding:38px 20px 24px}.lpc-loan-card h2{font-size:24px}.lpc-loan-card p{font-size:16px}#popup-form .popup{max-height:calc(100dvh - 38px)}}
@media(prefers-reduced-motion:reduce){.lpc-loan-dots:before,.lpc-loan-dots:after{animation:none}}

/* Preserve the existing dialog, make its longer dynamic copy readable and its close reachable. */
#popup-form .popup{width:calc(100vw - 48px);max-width:740px;padding:32px 26px 24px;overflow-x:hidden}
#popup-form h3{font-size:26px;line-height:1.25;margin:8px 40px 20px 0}
#popup-form p.rrso{font-size:16px;line-height:1.55;margin:14px 0}
#popup-form .close-popup{top:10px;right:10px;margin:0;width:32px;height:32px;line-height:32px;font-size:22px;text-align:center;cursor:pointer}
@media(max-width:600px){#popup-form .popup{width:calc(100vw - 28px);padding:24px 18px 18px}#popup-form h3{font-size:23px}#popup-form p.rrso{font-size:15px}}

#popup-form p.rrso{height:auto;max-height:none;overflow:visible}
#popup-form{top:50%;left:0;transform:translateY(-50%);margin:0;width:100%;height:auto;max-height:calc(100dvh - 24px);padding:0 12px;box-sizing:border-box}

/* Additional brands retain their layout, controls and inherited palette. */
#popup-form.lpc-generated-example{position:fixed;inset:0;transform:none;display:flex;align-items:center;justify-content:center;width:100%;height:100dvh;max-height:none;padding:14px;background:rgba(0,0,0,.78);z-index:2147482900;color:#111}
#popup-form.lpc-generated-example[hidden]{display:none!important}
#popup-form.lpc-generated-example .popup{position:relative;background:#fff;border:3px solid var(--lpc-loan-accent,#00ade0);border-radius:9px;margin:0;color:#111}
#popup-form.lpc-generated-example button.close-popup{position:absolute;border:0;background:none;color:inherit;padding:0}

/* Legacy popup implementations also use visibility/opacity rather than display alone. */
#popup-form.lpc-example-open{position:fixed!important;visibility:visible!important;opacity:1!important;z-index:2147482999!important}
#popup-form[hidden]{display:none!important}
#popup-form.lpc-generated-example.lpc-example-open{display:flex!important}
.popup-layer.lpc-example-open{position:fixed!important;inset:0;display:block!important;visibility:visible!important;opacity:1!important;z-index:2147482998!important}

/* Return, reminder and processing use the landing's actual CTA and typography. */
.lpc-loan-card{font-family:var(--lpc-loan-font,inherit);border-width:1px;border-top-width:4px;border-radius:16px;box-shadow:0 18px 60px #0003}
.lpc-loan-primary{background-color:var(--lpc-loan-primary,#333);background-image:var(--lpc-loan-primary-image,none);color:var(--lpc-loan-primary-text,#fff);border-radius:var(--lpc-loan-radius,8px);min-height:50px;line-height:1.4}
.lpc-loan-close{color:#333;min-width:44px;min-height:44px}
.lpc-loan-dots:after{background:var(--lpc-loan-secondary,#333)}
.lpc-loan-card button:focus-visible{outline-color:var(--lpc-loan-primary,#333)}
#popup[data-lpc-return]{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:24px!important;box-sizing:border-box!important;background:rgba(0,0,0,.78)!important;overflow:auto!important;transform:none!important;align-items:center;justify-content:center;visibility:visible;opacity:1}
#popup[data-lpc-return][style*="display: block"]{display:flex!important}
#popup[data-lpc-return]>.image,#popup[data-lpc-return]>.logo-center{display:none!important}
#popup[data-lpc-return] .popup-content{position:relative!important;inset:auto!important;float:none!important;transform:none!important;box-sizing:border-box!important;background:#fff!important;color:#333!important;width:100%!important;max-width:530px!important;min-width:0!important;max-height:calc(100dvh - 48px)!important;height:auto!important;min-height:0!important;overflow:auto!important;margin:auto!important;padding:40px 28px 24px!important;border:1px solid var(--lpc-loan-accent,#333)!important;border-top-width:4px!important;border-radius:16px!important;box-shadow:0 18px 60px #0003!important;text-align:center!important;font-family:var(--lpc-loan-font,inherit)!important}
#popup[data-lpc-return] .popup-content:before,#popup[data-lpc-return] .popup-content:after,#popup[data-lpc-return] .popup-content>h1{display:none!important}
#popup[data-lpc-return] .popup-content h2,#popup[data-lpc-return] .popup-content h3{font:600 28px/1.25 var(--lpc-loan-font,Arial)!important;color:#222!important;text-transform:none!important;margin:0 0 18px!important;padding:0!important;width:auto!important;height:auto!important;background:none!important}
#popup[data-lpc-return] .popup-content p:not(.close){font:400 17px/1.5 var(--lpc-loan-font,Arial)!important;color:#333!important;margin:14px 0!important;padding:0!important;width:auto!important;height:auto!important;position:static!important;float:none!important}
#popup[data-lpc-return] .popup-content .lpc-return-brand{font-size:13px!important;font-weight:700!important;letter-spacing:.05em;text-transform:uppercase;padding-right:20px!important}
#popup[data-lpc-return] [data-lpc-resume]{display:block!important;box-sizing:border-box!important;width:100%!important;height:auto!important;min-height:50px!important;white-space:normal!important;padding:15px 20px!important;margin:22px 0 0!important;position:static!important;float:none!important;transform:none!important;border:0!important;background-color:var(--lpc-loan-primary,#333)!important;background-image:var(--lpc-loan-primary-image,none)!important;color:var(--lpc-loan-primary-text,#fff)!important;border-radius:var(--lpc-loan-radius,8px)!important;font:700 18px/1.4 var(--lpc-loan-font,Arial)!important;text-decoration:none!important;text-align:center!important;box-shadow:none!important}
#popup[data-lpc-return] .close{position:absolute!important;inset:5px 5px auto auto!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;opacity:1!important;float:none!important}
#popup[data-lpc-return] .close a,#popup[data-lpc-return] button.close-button{display:block!important;box-sizing:border-box!important;position:static!important;width:44px!important;height:44px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;color:#333!important;font:32px/44px Arial!important;text-decoration:none!important;text-indent:0!important}
#popup[data-lpc-return] .close a:before,#popup[data-lpc-return] .close a:after{display:none!important}
#popup[data-lpc-return] a:focus-visible{outline:3px solid var(--lpc-loan-primary,#333)!important;outline-offset:3px!important}
body.lpc-return-busy{overflow:hidden}
@media(max-width:600px){#popup[data-lpc-return]{padding:14px!important}#popup[data-lpc-return] .popup-content{padding:40px 20px 22px!important;max-height:calc(100dvh - 28px)!important}#popup[data-lpc-return] .popup-content h2,#popup[data-lpc-return] .popup-content h3{font-size:24px!important}#popup[data-lpc-return] .popup-content p:not(.close){font-size:16px!important}}

#popup[data-lpc-return] .popup-inner,#popup[data-lpc-return] form,#popup[data-lpc-return] fieldset,#popup[data-lpc-return] .form-group{position:static!important;float:none!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;transform:none!important}

/* Older fixed-width wrappers and money-art pseudo-elements must not cover the CTA. */
#popup[data-lpc-return]{min-width:0!important;min-height:0!important}
#popup[data-lpc-return] .popup-outer,#popup[data-lpc-return] .popup-outer1,#popup[data-lpc-return] .popup-form{position:static!important;float:none!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;transform:none!important}
#popup[data-lpc-return] .image,#popup[data-lpc-return] .popup-outer1:before,#popup[data-lpc-return] .popup-outer1:after{display:none!important}
.lpc-loan-primary,#popup[data-lpc-return] [data-lpc-resume]{background-size:var(--lpc-loan-primary-size,auto)!important;background-position:var(--lpc-loan-primary-position,center)!important;background-repeat:var(--lpc-loan-primary-repeat,no-repeat)!important}
.lpc-loan-primary:before,.lpc-loan-primary:after,#popup[data-lpc-return] [data-lpc-resume]:before,#popup[data-lpc-return] [data-lpc-resume]:after{display:none!important}

/* One small link uses the current form typography; financial details stay in the dialog. */
.lpc-information-slot{margin:12px 0;text-align:center}
a.lpc-information-link{font-family:inherit;font-size:14px;line-height:1.5;color:inherit;text-decoration:underline;cursor:pointer}
.lpc-information-only:before,.lpc-information-only:after{display:none!important}

.lpc-information-only{background:none!important;padding-left:0!important}
