/* Compact, native merchant-routing illustration and simulated quota animation. */
.ui-payment #s3.pds-section{position:relative;isolation:isolate;overflow:hidden;padding:70px 0 76px;background:radial-gradient(ellipse at 80% 48%,#dfecff8c,transparent 60%),linear-gradient(180deg,#fff,#f5f9ff 70%,#fff);scroll-margin-top:76px}
.ui-payment #s3>.wrap{width:min(1200px,calc(100% - 64px));max-width:1200px}
.pds-layout{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:27px;align-items:center}
.pds-copy{position:relative;z-index:2;min-width:0}
.ui-payment #s3 .pds-copy h2{font-size:38px;line-height:1.5;font-weight:650;letter-spacing:-.02em;color:#142340;margin:0 0 22px;white-space:nowrap}
.pds-title-blue{color:#2875ff}
.ui-payment #s3 .pds-description{font-size:15px;line-height:1.9;color:#657d9f;margin:0 0 25px;max-width:415px}
.pds-benefits{list-style:none;display:grid;gap:13px;margin:0;padding:0}
.pds-benefits li{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.85;color:#5f799d}
.pds-benefits li>svg{width:21px;height:21px;padding:4px;box-sizing:content-box;flex:none;background:#e8f1ff;color:#347eff;border-radius:50%}
.pds-benefits strong{font-weight:500;color:#2d456b}
.pds-benefits small{font-size:12px}
.pds-contact{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:49px;min-width:164px;padding:10px 25px;margin-top:29px;border:1px solid #c8dcff;border-radius:28px;background:#ffffffba;color:#29436c;font:inherit;font-size:16px;font-weight:500;cursor:pointer;box-shadow:0 5px 15px #6996d909;transition:background .2s,border-color .2s}
.pds-contact>svg{width:19px;height:19px;color:#377fff}.pds-contact:hover{background:#eff5ff;border-color:#89b5ff}.pds-contact:focus-visible,.pds-demo-control:focus-visible,.pds-order-pay:focus-visible{outline:2px solid #347aff;outline-offset:4px}
.pds-scene{position:relative;isolation:isolate;height:548px;min-width:0;margin:0}
.pds-scene::before{content:"";position:absolute;inset:30px -45px 18px -40px;z-index:-2;border-radius:50%;background:linear-gradient(145deg,#eff6ff66,#dceaff8c);transform:rotate(-9deg)}
.pds-scene::after{content:"";position:absolute;left:-8%;right:-8%;height:100px;bottom:-5px;border-bottom:15px solid #e0ecff87;border-radius:50%;z-index:-1;transform:rotate(-6deg);pointer-events:none}
.pds-connections{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}
.pds-branch{stroke:#d5e5ff;stroke-width:1.4;fill:none}.pds-outgoing{stroke:#bdD6ff;stroke-width:1.4;stroke-dasharray:5 5;fill:none;opacity:.45;transition:opacity .3s,stroke .3s}
.pds-outgoing.is-active{stroke:#3983ff;stroke-width:2;stroke-dasharray:none;opacity:1}
.pds-demo-label{position:absolute;left:0;top:144px;z-index:2;color:#8b9eb9;font-size:11px;line-height:1.6;text-align:center;width:108px}
.pds-order{position:absolute;left:0;top:183px;z-index:2;width:110px;padding:12px 10px;border:1px solid #fff;border-radius:19px;background:linear-gradient(140deg,#ffffffea,#f6faffc9);box-shadow:0 9px 22px #7b9ccd12}
.pds-order-live{display:flex;align-items:center;justify-content:center;gap:5px;padding:4px 3px;border-radius:12px;background:#94a5bf73;font-size:10px;color:#fff;white-space:nowrap}.pds-order-live i{width:5px;height:5px;border-radius:50%;background:#f78a96}
.pds-order-art{position:relative;height:79px;border-radius:9px;background:linear-gradient(145deg,#eaf3ff,#dceaff);margin-top:12px;overflow:hidden}
.pds-order-art i{position:absolute;width:22px;height:45px;bottom:12px;border:1px solid #e7f2ff;border-radius:10px 10px 5px 5px;background:linear-gradient(100deg,#c3dafe,#f6fbff);box-shadow:5px 6px 7px #8db4ea20;transform:rotate(-5deg)}
.pds-order-art i:nth-child(1){left:14px;height:38px}.pds-order-art i:nth-child(2){left:34px;height:51px}.pds-order-art i:nth-child(3){right:12px;height:31px}
.pds-order-art span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#ffffffb3;color:#3c83f5;font-size:11px;padding-left:2px;box-shadow:0 3px 9px #7199d51c}
.ui-payment #s3 .pds-order h3{font-size:12px;line-height:1.6;margin:10px 0 1px;color:#2d4364;font-weight:600}
.pds-order-price{display:block;font-size:13px;color:#294364;line-height:1.7;font-weight:600}
.pds-order-pay{display:block;width:100%;border:0;margin-top:11px;border-radius:7px;padding:8px 2px;background:linear-gradient(100deg,#3e90ff,#2170fb);color:#fff;font:inherit;font-size:11px;line-height:1.5;cursor:pointer}
.pds-link{position:absolute;left:14.3%;top:302px;z-index:3;padding:8px 8px;border:1px solid #fff;border-radius:19px;background:#ffffffeb;box-shadow:0 4px 12px #7b9acd12;color:#337eff;display:flex;align-items:center;gap:4px;font-size:10px;white-space:nowrap}
.pds-link svg{width:13px;height:13px;flex:none}
.pds-merchants{position:absolute;left:27%;top:8px;width:41%;z-index:2;padding:17px 11px 14px;border:1px solid #fffffff0;border-radius:27px;background:linear-gradient(140deg,#ffffff7a,#eaf2ff9c);box-shadow:0 14px 27px #7298d313,inset 0 1px 1px #fff;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.ui-payment #s3 .pds-merchants h3{margin:0 0 4px;text-align:center;font-size:16px;line-height:1.6;font-weight:600;color:#253c62}
.ui-payment #s3 .pds-merchants>p{margin:0 0 18px;font-size:11px;line-height:1.7;text-align:center;color:#8296b5}
.pds-merchant-list{display:grid;gap:12px}
.pds-merchant{position:relative;display:grid;grid-template-columns:29px minmax(0,1fr);gap:9px;padding:11px 9px;border:1px solid #fff;border-radius:13px;background:linear-gradient(125deg,#fff,#f7faff);box-shadow:0 6px 14px #7598d00d;transition:border-color .25s,box-shadow .25s}
.pds-merchant.is-active{border-color:#a6c9ff;box-shadow:0 5px 18px #538ce82b}
.ui-payment .pds-merchant-icon{width:29px;height:29px;object-fit:contain;border-radius:6px;margin-top:2px}
.pds-merchant-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0}
.pds-merchant-heading strong{font-size:13px;line-height:1.7;color:#2e4160;font-weight:600;white-space:nowrap}
.pds-status{display:inline-flex;align-items:center;gap:4px;flex:none;padding:1px 5px;border-radius:8px;background:#ebf8f0;color:#20a86d;font-size:10px;line-height:1.6;white-space:nowrap}
.pds-status::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}
.pds-company{display:block;font-size:11px;line-height:1.6;color:#8295b0;margin-top:2px}
.pds-quota{display:flex;align-items:center;gap:7px;margin-top:7px;min-width:0}
.pds-progress{display:block;flex:1;min-width:32px;height:5px;border-radius:5px;background:#d9e3f5;overflow:hidden}
.pds-progress-fill{display:block;width:100%;height:100%;border-radius:5px;background:#3c86ff;transform-origin:0 50%;transform:scaleX(var(--quota,.96))}
.pds-quota-label{color:#7186a6;font-size:11px;line-height:1.6;white-space:nowrap;font-variant-numeric:tabular-nums;min-width:80px;text-align:right}
.pds-merchant[data-state="near"] .pds-status{background:#fff4e4;color:#ef9d2b}.pds-merchant[data-state="near"] .pds-progress-fill{background:#ffa631}
.pds-merchant[data-state="full"] .pds-status{background:#eef2f7;color:#91a0b5}.pds-merchant[data-state="full"] .pds-progress-fill{background:#abbcd8}
.pds-merchant[data-state="error"] .pds-status{background:#fff0f1;color:#ec626d}.pds-merchant[data-state="error"] .pds-progress-fill{background:#e9a7af}
.pds-switch{position:absolute;left:70%;top:288px;width:91px;z-index:3;padding:12px 7px;border:1px solid #fff;border-radius:18px;background:#fffffff0;box-shadow:0 8px 15px #7399da17;text-align:center}
.pds-switch strong{display:flex;align-items:center;justify-content:center;gap:3px;font-size:12px;font-weight:600;color:#317eff;line-height:1.7}
.pds-switch strong svg{width:13px;height:13px}
.pds-switch span{display:block;font-size:9px;line-height:1.7;color:#7c90b1;margin-top:3px;white-space:nowrap}
.pds-paid{position:absolute;right:-1%;top:184px;width:117px;min-height:225px;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:21px 10px;border:1px solid #fff;border-radius:23px;background:linear-gradient(140deg,#ffffffc2,#f6faffb0);box-shadow:0 8px 25px #7399d110;text-align:center}
.pds-paid-check{display:grid;place-items:center;flex:none;width:51px;height:51px;background:linear-gradient(125deg,#3989ff,#196cfa);border-radius:50%;color:#fff;box-shadow:0 8px 14px #4280e529;margin-bottom:17px}
.pds-paid-check svg{width:26px;height:26px}
.ui-payment #s3 .pds-paid h3{font-size:17px;line-height:1.6;font-weight:600;color:#253b5e;margin:0 0 8px}
.ui-payment #s3 .pds-paid p{font-size:10px;line-height:1.8;color:#7f92b0;margin:0}
.pds-paid-lines{width:86%;display:grid;justify-items:center;gap:6px;margin-top:17px}.pds-paid-lines i{display:block;width:100%;height:5px;border-radius:5px;background:#e7f0ff}.pds-paid-lines i:last-child{width:59%}
.pds-scene.is-switching .pds-switch{border-color:#accfff;background:#edf5ff}
.pds-demo-control{position:absolute;right:2px;bottom:2px;border:1px solid #dce8fa;border-radius:17px;background:#ffffffb5;color:#7690b5;font:inherit;font-size:10px;line-height:1.7;padding:5px 10px;cursor:pointer;z-index:5}
.pds-live-status{position:absolute;left:27%;bottom:13px;width:42%;font-size:10px;line-height:1.7;color:#8099bd;text-align:center}
@media(max-width:1250px){.ui-payment #s3 .pds-copy h2{font-size:32px}.ui-payment #s3 .pds-description{font-size:14px}.pds-benefits li{font-size:13px}.pds-layout{grid-template-columns:minmax(0,.68fr) minmax(0,1.32fr);gap:20px}.pds-scene{width:710px;transform:scale(.9);transform-origin:0 50%;margin-right:-71px}.pds-benefits small{font-size:11px}}
@media(max-width:1050px){.pds-layout{grid-template-columns:minmax(0,1fr)}.pds-copy{max-width:570px;margin:auto;width:100%}.pds-scene{width:710px;transform:none;margin:5px auto 0}.ui-payment #s3 .pds-copy h2{font-size:38px}.ui-payment #s3 .pds-description{max-width:560px;font-size:15px}.pds-benefits li{font-size:14px}}
@media(prefers-reduced-motion:reduce){.pds-outgoing,.pds-merchant,.pds-contact{transition:none}}

/* Stronger visual hierarchy for the simulated routing changes. */
.pds-branch.is-active,.pds-outgoing.is-active{stroke:#267bff;stroke-width:2.8;stroke-dasharray:7 6;opacity:1;animation:pdsFlow .7s linear infinite;animation-play-state:paused}
.pds-scene.is-playing .pds-branch.is-active,.pds-scene.is-playing .pds-outgoing.is-active{animation-play-state:running}
.pds-merchant.is-active{border-color:#4f98ff;background:linear-gradient(110deg,#edf5ff,#fff);box-shadow:0 0 0 3px #8cbbff35,0 8px 20px #558ce52b;transform:translateX(-3px)}
.pds-merchant.is-active .pds-progress-fill{background:linear-gradient(90deg,#2476f5,#76bbff,#2476f5);background-size:200% 100%;animation:pdsShine 1.1s linear infinite;animation-play-state:paused}
.pds-scene.is-playing .pds-merchant.is-active .pds-progress-fill{animation-play-state:running}
.pds-merchant.is-active .pds-quota-label{color:#3277d8;font-weight:600}
.pds-merchant[data-state="full"]{background:#fffaf1;border-color:#ffe1ad}
.pds-merchant[data-state="full"] .pds-status{color:#d79424;background:#fff0d3}
.pds-merchant[data-state="full"] .pds-progress-fill{background:#edb654}
.pds-merchant[data-state="error"]{background:#fff6f7;border-color:#ffc7ce}
.pds-switch{transition:transform .25s,background .25s,border-color .25s}
.pds-scene.is-switching .pds-switch{transform:scale(1.12);background:#347fff;border-color:#a5ceff;box-shadow:0 0 0 6px #81b3ff24,0 10px 22px #397be72b}
.pds-scene.is-switching .pds-switch strong,.pds-scene.is-switching .pds-switch span{color:#fff}
.pds-live-status{left:23%;bottom:-2px;width:56%;min-height:36px;display:flex;align-items:center;justify-content:center;padding:6px 8px;border:1px solid #cfe2ff;border-radius:10px;background:#f5faff;color:#4f81bd;font-size:12px;font-weight:500;line-height:1.6;box-shadow:0 5px 12px #6f95cb0a;transition:background .25s,color .25s}
.pds-scene.is-switching .pds-live-status{background:#317bfa;color:#fff;border-color:#317bfa;box-shadow:0 5px 16px #367eec2a}
.pds-scene.is-switching[data-reason="error"] .pds-live-status{background:#ec6877;border-color:#ec6877}
.pds-scene.is-switching[data-reason="full"] .pds-live-status{background:#edaa3b;border-color:#edaa3b}
.pds-paid-source{font-size:9px;line-height:1.7;margin-top:8px;padding:2px 5px;border-radius:7px;background:#e9f3ff;color:#4f88d3;white-space:nowrap}
@keyframes pdsFlow{to{stroke-dashoffset:-26}}
@keyframes pdsShine{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.pds-branch,.pds-outgoing,.pds-progress-fill{animation:none!important}.pds-merchant,.pds-switch,.pds-live-status{transition:none!important}.pds-merchant.is-active,.pds-scene.is-switching .pds-switch{transform:none}}

/* Keep interactive parts at reading size instead of shrinking the desktop diagram. */
@media(max-width:800px){
 .ui-payment #s3.pds-section{padding:42px 0 48px}
 .ui-payment #s3>.wrap{width:calc(100% - 36px)}
 .pds-layout{gap:24px}
 .ui-payment #s3 .pds-copy h2{margin-bottom:16px;white-space:normal}
 .ui-payment #s3 .pds-description{margin-bottom:20px}
 .pds-benefits li>span{min-width:0}
 .pds-contact{margin-top:24px;font-size:15px;min-height:46px}
 .pds-scene{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch;
  width:min(100%,570px);height:auto;margin:0 auto;padding:14px;
  border:1px solid #e2ecfb;border-radius:20px;background:#f1f7ff;
 }
 .pds-scene::before,.pds-scene::after,.pds-connections,.pds-order-art,.pds-paid-lines{display:none}
 .pds-scene>:is(.pds-demo-label,.pds-order,.pds-link,.pds-merchants,.pds-switch,.pds-paid,.pds-live-status,.pds-demo-control){
  position:static;inset:auto;min-width:0;width:auto;margin:0;
 }
 .pds-scene>:not(.pds-switch,.pds-paid){grid-column:1 / -1}
 .pds-demo-label{text-align:left;line-height:1.5}
 .pds-order{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;
  align-items:center;padding:12px;border-radius:14px
 }
 .pds-order-live{grid-column:1;justify-self:start}
 .ui-payment #s3 .pds-order h3,.pds-order-price{grid-column:1;margin:0}
 .pds-order-pay{grid-area:1 / 2 / 4;min-height:44px;padding:8px 12px;margin:0;font-size:13px}
 .pds-link{justify-self:center;padding:5px 10px;line-height:1.5}
 .pds-merchants{padding:12px;border-radius:15px}
 .ui-payment #s3 .pds-merchants>p{margin-bottom:12px}
 .pds-merchant-list{gap:8px}
 .pds-merchant{gap:8px;padding:8px}
 .pds-merchant.is-active,.pds-scene.is-switching .pds-switch{transform:none}
 .pds-merchant-heading{flex-wrap:wrap}
 .pds-merchant-heading strong,.pds-paid-source,.pds-switch span{white-space:normal}
 .pds-quota-label{min-width:0}
 .pds-switch{display:flex;flex-direction:column;justify-content:center;padding:10px 6px;border-radius:14px}
 .pds-paid{min-height:0;padding:10px 6px;border-radius:14px}
 .pds-paid-check{width:28px;height:28px;margin-bottom:4px}
 .pds-paid-check svg{width:17px;height:17px}
 .ui-payment #s3 .pds-paid h3{margin-bottom:4px;font-size:14px}
 .pds-paid-source{margin-top:5px}
 .pds-live-status{min-height:36px}
 .pds-demo-control{min-height:44px;justify-self:end;padding-inline:14px;font-size:12px}
}
@media(min-width:520px) and (max-width:800px){
 .pds-merchant-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
