/* The Finby pay block of Soc-Promotion (prototype a1-v2, владелец
   2026-09-30): every way to pay is a line to pick, the chosen one opens its
   part — the card form lives inside "Card" — and one pay bar holds the total
   and the button of the chosen way. On a phone the bar sticks to the bottom
   of the screen while the list scrolls under it. The Apple Pay mark is the
   one of a5-v2; the crypto line says its discount, never a sum. */

.fp{--green-ink:#007A52;--blue-ink:#1E6AD0;--red:#B42318;--red-t:#FDECEA;--red-line:#F6C9C4;--sys-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--apple-font:-apple-system,"SF Pro Text","Helvetica Neue","Segoe UI",Arial,sans-serif}
.fp [hidden]{display:none!important}
/* the corner notice of the newest order would lie on the pay button */
html.fp-paying #recentOrderNotice{display:none!important}

/* ---------- the list of ways to pay ---------- */
.fp .m-title{margin:22px 0 0;font-family:'Poppins',sans-serif;font-weight:700;font-size:16px;line-height:1.3;color:var(--head)}
.fp .m-list{display:flex;flex-direction:column;gap:9px;margin-top:12px}
.fp .m-item{border:2px solid var(--line);border-radius:14px;background:#fff;transition:border-color .15s,box-shadow .15s,opacity .2s}
.fp .m-item:hover{border-color:#BFD4F2}
.fp .m-item.is-sel{border-color:var(--blue);box-shadow:0 0 0 3px rgba(44,123,229,.14)}
/* a balance too small to pay: at the bottom, saying so, not to be picked */
.fp .m-item.is-short{order:9;border-style:dashed}
.fp .m-item.is-short .m-head{cursor:default}
.fp .m-item.is-short .m-mark{filter:grayscale(1);opacity:.6}
.fp .m-item.is-short .m-radio{visibility:hidden}
.fp .m-head{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:10px 12px;border:0;border-radius:12px;background:none;text-align:left;color:var(--head);font-family:'Open Sans',sans-serif;cursor:pointer}
.fp .m-head:focus-visible{outline:3px solid rgba(44,123,229,.45);outline-offset:0}
.fp .m-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.fp .m-text b{font-family:'Poppins',sans-serif;font-weight:600;font-size:15px}
.fp .m-text span{margin-top:1px;font-size:12.5px;color:var(--text)}
.fp .m-radio{flex:none;position:relative;width:22px;height:22px;border-radius:50%;border:2px solid #C9D5E3;background:#fff;transition:background .15s,border-color .15s}
.fp .m-item.is-sel .m-radio{border-color:var(--blue);background:var(--blue)}
.fp .m-item.is-sel .m-radio::after{content:"";position:absolute;top:3px;left:6.5px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}

/* the marks of the ways (the wallets' marks, not their buttons) */
.fp .m-mark{flex:none;display:flex;align-items:center;justify-content:center;width:50px;height:34px;border-radius:8px}
.fp .m-mark-apple{gap:1px;border:1px solid #000;background:#fff;color:#000}
.fp .m-mark-apple svg{width:14px;height:17px;margin-top:-3px}
.fp .m-mark-apple span{font:600 14px/1 var(--apple-font);letter-spacing:-.2px}
.fp .m-mark-google{gap:3px;background:#fff;border:1px solid #D5DDE8}
.fp .m-mark-google svg{width:14px;height:14px}
.fp .m-mark-google span{font:500 14px/1 "Google Sans",Roboto,"Segoe UI",Helvetica,Arial,sans-serif;color:#3C4043}
.fp .m-mark-card{background:var(--blue-t);color:var(--blue)}
.fp .m-mark-card svg{width:22px;height:22px}
.fp .m-mark-crypto{background:#FFF4E5}
.fp .m-mark-crypto svg{width:22px;height:22px}
.fp .m-mark-bal{background:var(--green-t);color:var(--green-d)}
.fp .m-mark-bal svg{width:21px;height:21px}
.fp .m-brands{flex:none;display:flex;gap:4px}
.fp .cf-visa,.fp .cf-mc{display:inline-flex;align-items:center;justify-content:center;height:22px;min-width:34px;padding:0 4px;border:1px solid var(--line);border-radius:5px;background:#fff}
.fp .cf-visa{font:italic 800 11.5px/1 'Poppins',sans-serif;letter-spacing:.3px;color:#1A1F71}
.fp .cf-mc svg{width:24px;height:15px}
.fp .m-off{flex:none;padding:3px 8px;border-radius:999px;background:#FFF4E5;color:#9A5B00;font-family:'Poppins',sans-serif;font-weight:700;font-size:12px;white-space:nowrap}

/* the chosen way opens its part */
.fp .m-body{margin:0 12px;padding:14px 0;border-top:1px solid var(--line)}
.fp .m-item:not(.is-sel) .m-body{display:none}
.fp .m-note{margin:0;font-size:13px;line-height:1.55;color:var(--text)}
.fp .m-hint{display:flex;gap:10px;align-items:flex-start;margin:0;padding:10px 12px;border-radius:12px;background:#F7F9FC;border:1px dashed #C6D3E3;font-size:12.5px;line-height:1.5;color:var(--text)}
.fp .m-hint svg{flex:none;width:18px;height:18px;margin-top:1px;color:var(--blue)}
.fp .m-notice{display:flex;gap:12px;align-items:flex-start;margin:12px 0 0;padding:14px 15px;border-radius:14px;background:#FFF8EC;border:1px solid #F3DDB3}
.fp .m-notice-ic{flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#FFF0D6;color:#9A5B00}
.fp .m-notice-ic svg{width:20px;height:20px}
.fp .m-notice-text{display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-size:13.5px;line-height:1.55;color:var(--head)}
.fp .m-notice-link{font-weight:600;color:var(--blue-ink)}
.fp .m-notice-retry{padding:0;border:0;background:none;font:600 13.5px/1.4 'Open Sans',sans-serif;color:var(--blue-ink);text-decoration:underline;cursor:pointer}

/* ---------- the card form: Finby's fields in our boxes ---------- */
.fp .cf{display:grid;gap:12px}
.fp .cf-label{display:block;margin-bottom:6px;font-family:'Poppins',sans-serif;font-weight:600;font-size:13px;line-height:1.2;color:var(--head)}
.fp .cf-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
/* Finby writes its own inline style on the element it mounts in, so the
   frame of the field is this outer box and the mount lives inside it. */
.fp .cf-box{position:relative;display:flex;align-items:center;height:50px;padding:0 13px;border:1.5px solid #CFDAE8;border-radius:10px;background:#fff;transition:border-color .15s,box-shadow .15s,background .15s}
.fp .cf-box:hover{border-color:#B4C6DC}
.fp .cf-box:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(44,123,229,.16)}
.fp .cf-mount,.fp .cf-mount .fp-m{width:100%;height:100%}
.fp .cf-mount iframe{display:block;width:100%!important;height:100%!important;border:0}
.fp .cf-mount input{width:100%;height:100%;padding:0;border:0;outline:0;background:transparent;font:16px/1 var(--sys-font);color:var(--head)}
/* The holder, the country and the billing address (2026-10-01) */
.fp .cf-input{width:100%;height:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;font:16px/1 var(--sys-font);color:var(--head)}
.fp .cf-input::placeholder{color:#98A7BA;opacity:1}
.fp .cf-box.is-bad{border-color:var(--red);box-shadow:0 0 0 3px rgba(180,35,24,.12)}
.fp .cf-err{margin:6px 0 0;font-size:12.5px;font-weight:600;line-height:1.4;color:var(--red)}
.fp .cf-address{display:grid;gap:12px}
.fp .cf-note{margin:-4px 0 0;font-size:12.5px;line-height:1.45;color:#5D6B80}
.fp .fp-cty{position:relative}
.fp .fp-cty-btn{display:flex;align-items:center;gap:10px;width:100%;height:50px;padding:0 13px;border:1.5px solid #CFDAE8;border-radius:10px;background:#fff;font:15px/1.2 var(--sys-font);color:var(--head);text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.fp .fp-cty-btn:hover{border-color:#B4C6DC}
.fp .fp-cty-btn:focus-visible,.fp .fp-cty-btn[aria-expanded="true"]{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px rgba(44,123,229,.16)}
.fp .fp-cty-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fp .fp-cty-chev{flex:none;width:16px;height:16px;fill:none;stroke:#7A8BA3;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.fp .fp-cty-btn[aria-expanded="true"] .fp-cty-chev{transform:rotate(180deg)}
.fp .fp-flag{flex:none;width:22px;height:16.5px;border-radius:3px;object-fit:cover;background:#EEF2F7;box-shadow:0 0 0 1px rgba(16,24,40,.12)}
.fp .fp-cty-pop{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 6px);padding:8px;border:1px solid #DCE4EF;border-radius:12px;background:#fff;box-shadow:0 14px 36px rgba(16,24,40,.18)}
.fp .fp-cty-search{display:block;width:100%;height:42px;padding:0 12px 0 36px;border:1.5px solid #CFDAE8;border-radius:9px;background:#F6F8FB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8BA3' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") no-repeat 11px 50%/16px;font:16px/1 var(--sys-font);color:var(--head);outline:0;-webkit-appearance:none;appearance:none}
.fp .fp-cty-search:focus{border-color:var(--blue);background-color:#fff}
.fp .fp-cty-list{max-height:264px;margin:6px 0 0;padding:0;overflow:auto;list-style:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.fp .fp-cty-list li{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;font-size:15px;line-height:1.25;color:var(--head);cursor:pointer}
.fp .fp-cty-list li.is-on{background:#EEF4FD}
.fp .fp-cty-list li[aria-selected="true"]{font-weight:600}
.fp .fp-cty-list li[aria-selected="true"]::after{content:"";flex:none;margin-left:auto;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C7BE5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center/16px}
.fp .fp-cty-code{flex:none;margin-left:auto;font-size:12px;font-weight:600;color:#98A7BA}
.fp .fp-cty-list li[aria-selected="true"] .fp-cty-code{display:none}
.fp .fp-cty-none{margin:12px 6px 6px;font-size:14px;color:#5D6B80}
.fp .cf-check{margin:10px 0 0;font-size:13px;font-weight:600;line-height:1.45;color:var(--red)}
.fp .m-alert{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:12px 13px;border-radius:12px;background:var(--red-t);border:1px solid var(--red-line);color:var(--red);font-size:13.5px;line-height:1.5}
.fp .m-alert svg{flex:none;width:20px;height:20px;margin-top:1px}
.fp .m-alert b{display:block;margin-bottom:2px;font-family:'Poppins',sans-serif;font-weight:700;font-size:14px;line-height:1.3}
.fp .m-3ds{display:flex;gap:9px;align-items:flex-start;margin:12px 0 0;font-size:12.5px;line-height:1.5;color:var(--text)}
.fp .m-3ds svg{flex:none;width:16px;height:16px;margin-top:2px;color:var(--green-d)}
.fp[data-phase="busy"] .cf,.fp[data-phase="error"] .cf{pointer-events:none;opacity:.55}

/* ---------- the one pay bar ---------- */
.fp .pbar{position:sticky;bottom:0;z-index:6;margin-top:18px;padding:13px 16px 12px;background:#fff;border:1px solid var(--line);border-radius:14px;transition:box-shadow .2s}
.fp .pbar.is-stuck{box-shadow:0 -14px 26px -20px rgba(34,48,74,.6)}
.fp[data-count="0"] .pbar{display:none}
.fp .pbar-end{display:block;height:1px;margin-top:-1px}
.fp .pbar-row{display:flex;align-items:center;gap:14px}
.fp .pbar-total{flex:none;display:flex;flex-direction:column;min-width:80px;line-height:1.1}
.fp .pbar-label{display:flex;align-items:center;gap:6px;font-family:'Poppins',sans-serif;font-weight:600;font-size:12px;color:var(--text);white-space:nowrap}
.fp .pbar-off{padding:1px 6px;border-radius:999px;background:#FFF4E5;color:#9A5B00;font-weight:700;font-size:11px}
.fp .pbar-sum{display:block;margin-top:3px}
.fp .pbar-sum b{font-family:'Poppins',sans-serif;font-weight:800;font-size:25px;letter-spacing:-.02em;color:var(--green-d)}
.fp .pbar-action{flex:1;min-width:0}
.fp .pbar-note{display:flex;align-items:center;justify-content:center;gap:6px;margin:9px 0 0;font-size:12px;line-height:1.4;color:var(--text);text-align:center}
.fp .pbar-note svg{flex:none;width:13px;height:13px;color:var(--green-d)}
.fp .pbar-note .btn-spin{width:12px;height:12px;border-width:2px;color:var(--blue)}
.fp .pbar-wait{display:flex;align-items:center;justify-content:center;height:52px;border-radius:12px;background:#F2F5F9;color:var(--blue)}

/* the wallets' own buttons, drawn by Apple and Google through Finby */
.fp .wallet-slot,.fp .wallet-mount,.fp .wallet-mount .fp-m{width:100%}
.fp .wallet-mount{min-height:52px}
.fp .wallet-mount:empty{display:none}
.fp .wallet-mount apple-pay-button{display:block;width:100%;height:52px;--apple-pay-button-width:100%;--apple-pay-button-height:52px;--apple-pay-button-border-radius:12px}
/* Finby draws Google Pay in a frame of 100% height: without a height of its own it would be the 150px default */
.fp .wallet-mount[data-fp-mount="google"] .fp-m{height:52px;border-radius:12px;overflow:hidden}
.fp .wallet-mount[data-fp-mount="google"] iframe{display:block;border:0}
.fp .wallet-mount button,.fp .wallet-mount .gpay-card-info-container{width:100%!important;min-height:52px}
.fp .wallet-none{margin:0;padding:10px 12px;border-radius:12px;background:#F7F9FC;border:1px solid var(--line);font-size:12.5px;line-height:1.45;color:var(--text)}
.fp .pbtn{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;height:52px;padding:0 14px;border:0;border-radius:12px;color:#fff;font-family:'Poppins',sans-serif;font-weight:700;font-size:19px;line-height:1;white-space:nowrap;cursor:pointer;transition:background .18s,transform .12s,box-shadow .18s}
.fp .pbtn:active{transform:translateY(1px)}
.fp a.pbtn,.fp a.pbtn:hover{color:#fff;text-decoration:none}
.fp .pbtn svg{width:19px;height:19px}
.fp .pbtn-ic{display:flex}
.fp .pbtn-ic .btn-spin{width:18px;height:18px}
.fp .pbtn-orange{background:var(--orange-d);box-shadow:0 12px 22px -12px rgba(229,110,43,.85)}
.fp .pbtn-orange:hover{background:#D9621F}
.fp .pbtn-green{background:#007F57;box-shadow:0 12px 22px -12px rgba(0,127,87,.75)}
.fp .pbtn-green:hover{background:#006F4C}
.fp .pbtn.is-busy{cursor:progress}
.fp .pbtn-orange.is-busy:hover{background:var(--orange-d)}
.fp .pbtn-green.is-busy:hover{background:#007F57}

/* a payment on its way: the other ways are locked */
.fp .is-dim{opacity:.42;pointer-events:none;filter:saturate(.6)}
.fp[data-phase="busy"] .m-hint,.fp[data-phase="busy"] .m-notice{opacity:.42}

/* ---------- in the pay step: the bar spans the card ---------- */
#orderFlow .ow-pay.is-finby{overflow:clip}
#orderFlow .ow-pay.is-finby .ow-inner{padding-bottom:0}
#orderFlow .ow-pay.is-finby .fp .pbar{margin:20px -24px 0;padding:13px 24px 12px;border-width:1px 0 0;border-radius:0}
#orderFlow .ow-pay.is-finby .ow-foot{display:none}

/* ---------- paid in the pay step: a receipt that follows the orders ---------- */
#orderFlow .fp-rc{padding-top:32px}
#orderFlow .fp-rc .rc-head{display:flex;align-items:center;gap:14px}
#orderFlow .fp-rc .rc-tick{flex:none;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:var(--green-t);color:var(--green-d)}
#orderFlow .fp-rc .rc-tick svg{width:27px;height:27px}
#orderFlow .fp-rc .rc-title{margin:0;padding:0;font-size:22px;font-weight:800;line-height:1.2}
#orderFlow .fp-rc .rc-sub{display:flex;flex-direction:column;margin:3px 0 0;font-size:13.5px;line-height:1.4;color:var(--text)}
#orderFlow .fp-rc .rc-steps{list-style:none;margin:22px 0 0;padding:16px 16px 14px;border-radius:14px;background:#F7F9FC;border:1px solid var(--line)}
#orderFlow .fp-rc .rc-steps li{position:relative;display:flex;gap:12px;padding-bottom:14px}
#orderFlow .fp-rc .rc-steps li:last-child{padding-bottom:0}
#orderFlow .fp-rc .rc-steps li:not(:last-child)::before{content:"";position:absolute;left:11px;top:25px;bottom:1px;width:2px;background:var(--green)}
#orderFlow .fp-rc .rc-dot{flex:none;position:relative;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--green-d);color:#fff}
#orderFlow .fp-rc .rc-dot svg{width:13px;height:13px}
#orderFlow .fp-rc .rc-steps li.is-now .rc-dot{background:#fff;border:2px solid var(--green)}
#orderFlow .fp-rc .rc-steps li.is-now .rc-dot::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--green);animation:fp-ping 1.6s ease-out infinite}
#orderFlow .fp-rc .rc-steps li>span:last-child{display:flex;flex-direction:column;font-size:12.5px;line-height:1.4;color:var(--text)}
#orderFlow .fp-rc .rc-steps b{font-family:'Poppins',sans-serif;font-weight:600;font-size:14px;color:var(--head)}
#orderFlow .fp-rc .rc-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:20px}
#orderFlow .fp-rc .rc-mail{margin:0;font-size:13px;line-height:1.45;color:var(--text)}
@keyframes fp-ping{0%{box-shadow:0 0 0 0 rgba(0,182,122,.55)}80%,100%{box-shadow:0 0 0 7px rgba(0,182,122,0)}}

@media(max-width:440px){
  .fp .pbar-row{gap:12px}
  .fp .pbar-total{min-width:74px}
  .fp .pbar-sum b{font-size:24px}
  .fp .m-head{gap:11px;padding:10px 11px}
  .fp .m-body{margin:0 11px}
  .fp .m-mark{width:46px;height:32px}
  #orderFlow .ow-pay.is-finby .fp .pbar{margin:18px -16px 0;padding:12px 16px 11px}
  #orderFlow .fp-rc .rc-foot .btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
  #orderFlow .fp-rc .rc-steps li.is-now .rc-dot::after{animation:none}
}
