[data-litpay] [hidden] { display: none !important; }
.checkout-tools { position: fixed; top: 18px; right: 18px; z-index: 60; display: flex; align-items: center; gap: 7px; }
.checkout-tools .language-toggle, .currency-toggle { background: #fff; box-shadow: 0 8px 28px #0000001f; }
.currency-toggle { border: 0; border-radius: 999px; min-height: 38px; padding: 0 10px; color: #343b4c; font: 700 11px Manrope, Arial, sans-serif; cursor: pointer; }
.currency-toggle:focus-visible { outline: 2px solid #ff765f; outline-offset: 3px; }
.catalog-fiat { margin: -10px 0 16px; text-align: center; color: #6f7785; font-size: 12px; line-height: 1.55; }
.gateway-options { display: grid; gap: 17px; min-width: 0; margin: 0; padding: 0; border: 0; }
.gateway-choice { cursor: pointer; }
.gateway-choice:hover { border-color: #f4b5aa; }
.gateway-choice:has(:checked) { border-color: var(--coral); }
.gateway-choice:has(:focus-visible) { outline: 2px solid #bc5443; outline-offset: 2px; }
.gateway-choice input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.sbp-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sbp-options-page .methods { padding-bottom: 20px; }
.sbp-options-page .methods h1 { margin-bottom: 12px; }
.gateway-back { display: block; margin-bottom: 20px; color: #8a4035; font-size: 12px; font-weight: 700; text-decoration: none; }
.gateway-back:hover { text-decoration: underline; }
.checkout-storefront { display: none; }
body[data-sbp-navigation] .checkout-storefront {
  display: table;
  margin: 12px auto 0;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--litpay-accent, #5145a6);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.checkout-storefront:hover { text-decoration: underline; }
.checkout-storefront:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.gateway-hint { margin: 15px 0 0; color: #6f7785; text-align: center; font-size: 12px; line-height: 1.5; }
.payment-orbit { display: none; }
.invoice-amount-label { display: none; }
@media (max-width: 560px) { .checkout-tools { top: 12px; right: 12px; } }

html:not([data-litpay-design="classic"]) body[data-litpay] {
  --litpay-ink: #1c2443;
  --litpay-muted: #535e7a;
  --litpay-line: #dce3ef;
  --litpay-accent: #48359b;
  --litpay-selected: #f1eeff;
  --litpay-ring: #7660bd;
  --litpay-size: 428px;
  --litpay-gutter: clamp(20px, 6vw, 32px);
  --litpay-action: linear-gradient(106deg, #30226f 0%, #483496 57%, #5941ac 100%);
  --litpay-shadow: 0 16px 45px #293d7124, 0 2px 6px #293d7110;
  min-height: 100svh;
  margin: 0;
  isolation: isolate;
  color: var(--litpay-ink);
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #eff3fb;

  &::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 50% 30%, #f9fbff 9%, #f9fbff00 64%),
      repeating-radial-gradient(ellipse at 112% 104%, transparent 0 42px, #464f9423 43px, transparent 44px 67px),
      radial-gradient(ellipse at 100% 93%, #c9cdf3, transparent 55%),
      radial-gradient(ellipse at -5% 12%, #cbe5f7, transparent 62%),
      linear-gradient(145deg, #edf5fd 25%, #f0f0fc 74%, #e1e9fa);
  }

  :is(.shell, .page) {
    min-height: 100svh;
    padding: 59px 14px 26px;
    align-items: flex-start;
    align-content: start;
    justify-content: center;
    background: transparent;
  }

  :is(.shell-inner, .column, .page > .card) {
    width: min(var(--litpay-size), 100%);
    margin-inline: auto;
  }

  .card {
    background: #fff;
    border: 1px solid #e4e9f3;
    border-radius: 22px;
    box-shadow: var(--litpay-shadow);
  }

  .payment-card { width: 100%; max-width: none; overflow: visible; background: transparent; border-radius: 0; box-shadow: none; }
  .page > .card { padding: 28px var(--litpay-gutter); }
  .methods { padding: 0; }
  .checkout {
    margin-top: 13px;
    padding: 21px var(--litpay-gutter) 18px;
    background: linear-gradient(160deg, #fff 24%, #fbfaff 100%);
    border: 1px solid #e2e7f2;
    border-radius: 22px;
    box-shadow: var(--litpay-shadow);
  }

  .checkout-tools {
    position: absolute;
    top: 13px;
    right: max(14px, calc((100% - var(--litpay-size)) / 2));
    gap: 2px;
    padding: 2px;
    border: 1px solid #dbe4f2;
    border-radius: 999px;
    background: #ffffffb8;
  }

  .checkout-tools :is(.currency-toggle, .language-toggle) {
    min-height: 31px;
    height: 31px;
    padding-inline: 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--litpay-muted);
    box-shadow: none;
    font-size: 11px;
  }

  .checkout-tools .language-toggle { width: 31px; flex: 0 0 31px; padding: 0; }
  .checkout-tools :is(.currency-toggle, .language-toggle):hover { background: #e7ecf8; }
  .checkout-tools .currency-toggle:disabled { opacity: .6; cursor: default; }

  .brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0 auto 17px;
    color: var(--litpay-ink);
    font-size: 29px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.075em;
  }

  .brand span { color: #5040a3; }
  .brand .brand-mark { display: none; }
  .methods .brand { font-size: 35px; }

  :is(.methods h1, .page > .card h1) {
    margin: 0 0 14px;
    color: var(--litpay-ink);
    font-size: clamp(19px, 4vw, 23px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.045em;
  }

  :is(.method-list, .gateway-options) {
    gap: 4px;
    padding: 7px;
    border: 1px solid #e1e7f2;
    border-radius: 20px;
    background: #ffffffed;
    box-shadow: var(--litpay-shadow);
  }

  :is(.method, .option) {
    min-height: 51px;
    height: auto;
    gap: 10px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: var(--litpay-ink);
    font-size: 14px;
    font-weight: 750;
    box-shadow: none;
  }

  :is(.method, .option):not(:disabled):hover { border-color: #d4d9f0; background: #f6f7fc; cursor: pointer; }
  .method:is(.selected, :has(:checked)) { border-color: #b5a7e9; background: var(--litpay-selected); }
  .method:disabled { color: var(--litpay-muted); background: #f8fafc; }
  .method:disabled > span:not(.method-icon) { opacity: 1; }
  .method-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 50%;
    font-size: 19px;
  }

  .method .sbp-icon { background: #edf1fa; }
  .method .sbp-icon svg { width: 23px; height: 24px; }
  .method-badge {
    position: static;
    flex-shrink: 0;
    max-width: 35%;
    margin-left: auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: #edf0f8;
    color: #4e5877;
    text-align: center;
    text-transform: none;
    font-size: 10px;
    letter-spacing: 0;
  }

  .gateway-choice::after {
    content: '';
    flex: 0 0 14px;
    height: 14px;
    margin-left: auto;
    border: 1px solid #9099bd;
    border-radius: 50%;
  }

  .gateway-choice:has(:checked)::after { background: #5841a0; border-color: #5841a0; box-shadow: inset 0 0 0 3px #fff; }
  .gateway-back { width: fit-content; margin: 0 auto 12px; color: var(--litpay-accent); }
  .gateway-hint { margin-top: 11px; }

  .price {
    margin-bottom: 14px;
    color: var(--litpay-ink);
    font-size: clamp(33px, 7vw, 43px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  .price .star { font-size: 22px; }
  .catalog-fiat, .notice, .gateway-hint, .status, .details, .product { color: var(--litpay-muted); }
  .notice { width: 100%; margin-top: 12px; padding-inline: 12px; }
  .catalog-fiat { margin: -7px 0 13px; }
  .field-error:empty { display: none; }
  .field { height: 46px; border-color: var(--litpay-line); background: #fcfdff; box-shadow: none; }
  .field::placeholder { color: #66718a; }
  .field:focus { border-color: var(--litpay-ring); box-shadow: 0 0 0 3px #836ac723; }
  .promo-label { margin-top: 11px; color: var(--litpay-muted); font-weight: 650; }
  .promo-row .field { height: 40px; }
  .promo-apply { padding-inline: 12px; background: #eeebfb; color: #463479; }
  .promo-apply:hover:not(:disabled) { background: #e6dffa; }
  .promo-note { margin-top: 6px; }

  :is(.pay-button, .btn-primary, .page > .card .btn) {
    min-height: 47px;
    border-radius: 12px;
    background: var(--litpay-action);
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    box-shadow: 0 5px 12px #50378d3b;
  }

  .pay-button { height: auto; gap: 10px; margin-top: 13px; padding: 8px 12px; font-size: 14px; }
  .pay-button::after { content: ''; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
  .pay-button[aria-busy="true"] { cursor: progress; }
  .pay-button[aria-busy="true"]::after {
    width: 11px;
    height: 11px;
    border: 2px solid #ffffff5c;
    border-top-color: #fff;
    border-radius: 50%;
    transform: none;
  }
  .purpose { margin-top: 13px; color: var(--litpay-muted); text-align: center; }
  .purpose strong { color: var(--litpay-ink); font-weight: 750; }

  .page > .card .stars { font-size: clamp(26px, 6vw, 34px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
  .page > .card .product { margin-top: -7px; }
  .page > .card .status { margin: 17px 0; }
  .page > .card .steps { padding: 7px 14px; border: 1px solid var(--litpay-line); border-radius: 13px; background: #f6f8fd; color: var(--litpay-muted); }
  .steps li.done::before { border-color: var(--litpay-ring); background: var(--litpay-ring); }
  .steps li.active::before { border-color: var(--litpay-ring); animation: none; box-shadow: 0 0 0 4px #836ac723; }
  .page > .card .back { color: var(--litpay-accent); font-weight: 750; }
  .page > .card .bank-qr { padding: 12px; border: 1px solid var(--litpay-line); border-radius: 16px; background: #fff; }
  .page > .card .bank-qr img { width: min(244px, 100%); }
  .page > .invoice-card { position: relative; isolation: isolate; }
  .invoice-card > .brand { margin-bottom: 16px; }
  .payment-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    border: 1px solid #ded9f5;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 25%, #fff 4%, #f2eeff 55%, #e6e5fa);
    color: #5941ac;
    box-shadow: inset 0 0 0 4px #ffffff80, 0 5px 15px #47339419;
  }

  .payment-orbit::before {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid transparent;
    border-radius: inherit;
    border-top-color: #7d67ca;
    border-right-color: #b2a1e6;
  }

  .payment-orbit-symbol {
    position: relative;
    width: 26px;
    height: 22px;
    background:
      linear-gradient(currentColor 0 0) top left / 8px 2px,
      linear-gradient(currentColor 0 0) top left / 2px 7px,
      linear-gradient(currentColor 0 0) top right / 8px 2px,
      linear-gradient(currentColor 0 0) top right / 2px 7px,
      linear-gradient(currentColor 0 0) bottom left / 8px 2px,
      linear-gradient(currentColor 0 0) bottom left / 2px 7px,
      linear-gradient(currentColor 0 0) bottom right / 8px 2px,
      linear-gradient(currentColor 0 0) bottom right / 2px 7px;
    background-repeat: no-repeat;
  }

  .payment-orbit-symbol::after {
    content: '';
    position: absolute;
    inset: 10px 4px auto;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .invoice-card[data-payment-state="ready"] .payment-orbit::before,
  .invoice-card[data-payment-state="unavailable"] .payment-orbit::before,
  .invoice-card[data-payment-kind="crypto"] .payment-orbit { display: none; }
  .invoice-card[data-payment-state="ready"] .payment-orbit-symbol::after { inset: 7px 9px; height: 8px; border-radius: 2px; }
  .invoice-card[data-payment-state="unavailable"] .payment-orbit { background: #f4f5f9; color: #6c7593; border-color: #e4e7f0; box-shadow: none; }
  .invoice-card[data-payment-state="ready"] .steps { display: none; }
  .invoice-card[data-payment-state="ready"] #status {
    width: fit-content;
    margin: 15px auto;
    padding: 6px 12px;
    border: 1px solid #e4def8;
    border-radius: 12px;
    background: #f4f0ff;
    color: #48359b;
    font-size: 12px;
    font-weight: 750;
  }

  .page > .invoice-card[data-payment-kind="hosted-sbp"][data-payment-state="ready"] {
    --invoice-ready-border: #ded8f4;
    border: 1px solid var(--invoice-ready-border);
  }
  .invoice-card[data-payment-kind="hosted-sbp"][data-payment-state="ready"] .invoice-summary {
    margin-top: 20px;
    padding: 14px 12px;
    border: 1px solid var(--invoice-ready-border);
    border-radius: 16px;
    background: #f8f6fd;
  }
  .invoice-card[data-payment-kind="hosted-sbp"][data-payment-state="ready"] .invoice-amount-label {
    display: block;
    margin-bottom: 4px;
    color: var(--litpay-muted);
    font-size: 12px;
    font-weight: 750;
  }
  .invoice-card[data-payment-kind="hosted-sbp"][data-payment-state="ready"] .invoice-summary .stars { margin: 0 0 5px; }
  .invoice-card[data-payment-kind="hosted-sbp"][data-payment-state="ready"] .invoice-summary .catalog-fiat { margin: 0 0 5px; }
  .invoice-card[data-payment-kind="hosted-sbp"] #invoiceDeadline { margin: 10px 0 0; }

  .invoice-card .steps li { position: relative; }
  .invoice-card .steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(50% + 7px);
    left: 4px;
    width: 1px;
    height: calc(100% - 14px);
    background: #dde2f0;
  }

  .invoice-card .steps li.done::after { background: #a596d8; }
  .invoice-card .bank-qr { position: relative; }
  .invoice-card .bank-qr::before, .invoice-card .bank-qr::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid #a292db;
    pointer-events: none;
  }

  .invoice-card .bank-qr::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 7px 0 0; }
  .invoice-card .bank-qr::after { right: 8px; bottom: 8px; border-top: 0; border-left: 0; border-radius: 0 0 7px; }
  .brand-row .brand { margin: 0; }
  .summary { background: linear-gradient(106deg, #262a50, #3e316e); }
  .option { border-color: var(--litpay-line); }
  .option:hover .arrow { background: var(--litpay-accent); }
  .column .card { min-height: 0; padding: 24px var(--litpay-gutter); }
  .pay-box { width: 100%; }
  .pay-box .brand { margin-bottom: 17px; }
  .pay-box :is(.choice-button, .btn-outline) { border: 1px solid var(--litpay-line); border-radius: 12px; color: var(--litpay-ink); box-shadow: none; }
  .pay-box .choice-button:hover { background: var(--litpay-selected); border-color: #b5a7e9; }
  .pay-box .btn-outline { margin-top: 18px; }

  :is(button, a):focus-visible, .gateway-choice:has(:focus-visible) { outline: 2px solid var(--litpay-ring); outline-offset: 3px; }

  @media (min-width: 600px) {
    .page:has(> .card .bank-qr), .page:has(> .column) { align-content: center; align-items: center; }
  }

  @media (max-width: 360px) {
    .method { padding-inline: 8px; gap: 8px; }
    .method-badge { padding-inline: 5px; }
  }

  @media (max-width: 560px) {
    .checkout-tools :is(.currency-toggle, .language-toggle) { min-height: 38px; }
    .checkout-tools .language-toggle { width: 38px; flex-basis: 38px; }
    :is(.field, .promo-row .field, .input) { font-size: 16px; }
  }

  @media (prefers-reduced-motion: reduce) {
    :is(.method, .option, .btn, .pay-button, .field) { transition: none; }
  }

  @media (prefers-reduced-motion: no-preference) {
    &:has(.invoice-card[data-payment-state="pending"]:not([data-payment-kind="crypto"]))::after {
      content: '';
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background: radial-gradient(ellipse at 75% 45%, #c6b6f04d, transparent 48%);
      animation: litpay-ambient-light 3.6s ease-out both;
    }

    .invoice-card { animation: litpay-reveal .34s cubic-bezier(.2,.75,.3,1) both; }
    .invoice-card[data-payment-state="pending"] .payment-orbit::before { animation: litpay-spin 1.7s linear infinite; }
    .invoice-card[data-payment-state="pending"] .payment-orbit-symbol::after { animation: litpay-scan 1.7s ease-in-out infinite alternate; }
    .invoice-card[data-payment-state="ready"] .bank-qr { animation: litpay-reveal .32s cubic-bezier(.2,.75,.3,1) both; }
    .pay-button[aria-busy="true"]::after { animation: litpay-spin .8s linear infinite; }
  }
}

@keyframes litpay-spin { to { transform: rotate(1turn); } }
@keyframes litpay-reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes litpay-scan { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
@keyframes litpay-ambient-light { from { opacity: 0; transform: translateY(20px) scale(.96); } 40% { opacity: 1; } to { opacity: 0; transform: translateY(-25px) scale(1.04); } }
