/* PAY_SBP_FIRST (владелец 16.11): «СБП — главный способ» в окне оплаты /w/. Файл подключается только при включённом флаге.
   Цвета — токены темы (светлая/тёмная/inapp); собственные цвета — только знак СБП на белой подложке и точки банков. */
.actions.sbf { gap: 10px; }
.sbf-hero { position: relative; margin-top: 6px; }
.sbf-hero .sbf-sbp.btn { width: 100%; min-height: 72px; padding: 12px 16px 12px 14px; gap: 12px; justify-content: flex-start; border-radius: 18px; text-align: left; }
.sbf-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.sbf-mark img { width: 22px; height: 27px; display: block; }
.sbf-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.sbf-t b { font: 650 18px/1.2 var(--f-body); letter-spacing: -.005em; }
.sbf-t small { font: 500 14px/1.3 var(--f-body); opacity: .88; }
.sbf-go { flex: none; font: 600 22px/1 var(--f-body); opacity: .9; }
.sbf-hero .sbf-sbp.btn[aria-busy="true"] .sbf-go { display: none; }
.sbf-badge { position: absolute; top: -11px; right: 12px; display: inline-flex; align-items: center; min-height: 22px; padding: 0 10px; border-radius: 999px;
  background: var(--panel); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); font: 650 12.5px/1 var(--f-body);
  white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.sheet .sbf-banks { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 0; font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.sbf-bks { display: inline-flex; gap: 4px; flex: none; }
.sbf-bks .bk { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font: 700 11.5px/1 var(--f-body); font-style: normal; color: #fff; }
.sbf-bks .bk.s { background: #21a038; }
.sbf-bks .bk.t { background: #ffdd2d; color: #1d1d1b; }
.sbf-bks .bk.a { background: #ef3124; }
.sbf-bks .bk.v { background: #0a2896; }
/* окно «Оплата»: СБП и карта прилипают к низу окна — карта видна без прокрутки (виза legal 16.11) */
.actions.sbf.sbf-stick { position: sticky; bottom: 0; z-index: 1; margin: 12px -20px 0; padding: 16px 20px calc(10px + var(--af-bottom-inset, 0px));
  background: var(--panel); box-shadow: 0 -10px 16px -14px rgba(0, 0, 0, .35); }
.actions.sbf.sbf-stick .sbf-hero { margin-top: 0; }
.actions.sbf-rest { margin-top: 6px; gap: 4px; justify-items: stretch; }
.actions.sbf-rest .paynote { margin: 4px 0; }
.actions.sbf .sbf-card.btn { width: 100%; min-height: 48px; gap: 10px; font-weight: 600; background: none; border-color: var(--line2); color: var(--text2); }
.actions.sbf .sbf-card.btn:not([aria-busy="true"])::before { content: ""; flex: none; width: 20px; height: 14px; box-sizing: border-box; border: 1.8px solid currentColor;
  border-radius: 3.5px; background: linear-gradient(currentColor, currentColor) 0 2.5px / 100% 2px no-repeat; }
.actions .sbf-quiet.btn { border-color: transparent; background: none; box-shadow: none; min-height: 44px; color: var(--muted); font-weight: 500; font-size: 15px; }
@media (max-width: 340px) {
  .sbf-hero .sbf-sbp.btn { padding: 10px 12px; gap: 10px; }
  .sbf-t b { font-size: 16.5px; }
  .sbf-go { display: none; }
  .sbf-badge { font-size: 11.5px; padding: 0 8px; right: 8px; max-width: calc(100% - 16px); }
}


/* Компактная оплата 19.11: размеры определены здесь, цвета — из обеих тем widget.css. */
:root {
  --pay-compact-card-min: 76px;
  --pay-compact-gap: 6px;
  --dep-amount-height: 64px;
  --dep-amount-font: 30px;
}
html.pay-ux .pk-filter { margin-top: 8px; }
html.pay-ux .pk-bar .pk-filter:first-child { margin-top: 8px; }
html.pay-ux .pk-filter > .pk-lab { display: none; }
html.pay-ux .pk-h { margin-top: 10px; }
html.pay-ux .choice.pk-same,
html.pay-ux .pk-list .choice { gap: var(--pay-compact-gap); margin-top: 8px; }
html.pay-ux .choice.pk-same button.buy,
html.pay-ux .pk-list .choice button.buy { min-height: var(--pay-compact-card-min); padding: 9px 12px; gap: 10px; border-radius: 14px; }
html.pay-ux .choice.pk-same button.buy > span:first-child,
html.pay-ux .pk-list .choice button.buy > span:first-child { min-width: 0; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
html.pay-ux .choice.pk-same .price,
html.pay-ux .pk-list .choice .price { font-size: 18px; line-height: 1.2; }
html.pay-ux .choice.pk-same small,
html.pay-ux .pk-list .choice small { margin-top: 4px; font-size: 12.5px; line-height: 1.25; }
html.pay-ux .choice.pk-same .sum .per,
html.pay-ux .pk-list .choice .sum .per,
html.pay-ux .choice.pk-same .save,
html.pay-ux .pk-list .choice .save,
html.pay-ux .choice.pk-same .rec-b,
html.pay-ux .pk-list .choice .rec-b { display: none; }
html.pay-ux .choice.pk-same li > .paybtn,
html.pay-ux .pk-list .choice li > .paybtn { min-height: 44px; margin-top: 0; }
.dep-amt { margin: 12px 0 10px; }
.dep-amt-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.dep-amt-wrap { position: relative; }
#depamt.dep-amt-input { display: block; width: 100%; height: var(--dep-amount-height); padding: 0 52px 0 16px; border: 1.5px solid var(--line2);
  border-radius: 16px; background: var(--field); color: var(--text); font: 650 var(--dep-amount-font)/1 var(--f-num); text-align: left; -moz-appearance: textfield; }
#depamt.dep-amt-input::-webkit-outer-spin-button,
#depamt.dep-amt-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#depamt.dep-amt-input:focus-visible { outline-offset: 0; border-color: var(--amber); }
.dep-amt-cur { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font: 600 24px/1 var(--f-body); pointer-events: none; }
.dep-amt-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.dep-amt-presets button { min-width: 0; min-height: 44px; padding: 0 5px; border: 1px solid var(--line2); border-radius: 12px;
  background: var(--panel); color: var(--text2); font: 600 13px/1.15 var(--f-body); white-space: nowrap; cursor: pointer; }
.dep-amt-presets button[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.dep-amt-presets button:disabled { opacity: .45; cursor: default; }
.dep-terms { margin: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dep-terms summary { min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: 14px; cursor: pointer; }
.dep-terms .dep-note { margin: 0 0 10px; }
.pay-wait-summary { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--field); }
.sheet .pay-wait-amount { margin: 0; color: var(--text); font: 700 32px/1.15 var(--f-num); letter-spacing: -.02em; }
.sheet .pay-wait-name { margin: 6px 0 0; color: var(--text2); font-size: 15px; overflow-wrap: anywhere; }
.sheet .pay-wait-help { margin: 12px 0; }
.sheet .pay-wait-status { margin: 14px 0 4px; color: var(--text); font-weight: 600; }
.pay-wait-actions { margin-top: 14px; }
.pay-auto-fallback:empty { display: none; }
@media (max-width: 350px) {
  .dep-amt-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
