/* NatGard bonuses block: account section "Бонусы" and the "Bonuses" page.
   The block also stands outside the account (the "Bonuses" page), so the account's colours are repeated here. */
.ng-rewards{--ngr-green:var(--ng-primary,#458500);--ngr-ink:#1b2416;--ngr-text:var(--ng-text-body,#333);--ngr-muted:#66705f;--ngr-line:#e4e9dd;--ngr-tint:#f5f8f0;--ngr-tint-line:#dfe8d2;--ngr-forest:#0d3f24;
  --ngr-shadow:0 1px 2px rgb(22 40 12 / 4%),0 10px 28px -16px rgb(22 40 12 / 14%);color:var(--ngr-text);font-variant-numeric:tabular-nums}
.ng-rewards{container-type:inline-size;container-name:ngr}
.ng-rewards *{box-sizing:border-box}
.ng-rewards h2{margin:0 0 16px;font-size:24px;line-height:32px;font-weight:700;color:var(--ngr-ink)}
.ng-rewards h3{margin:0 0 16px;font-size:20px;line-height:26px;font-weight:700;color:var(--ngr-ink)}
.ng-rewards-status{margin:0;color:var(--ngr-muted)}
/* The balance is the one strong thing of the screen: the dark "forest" card with the big number. */
.ng-rewards-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:0 0 24px}
.ng-rewards-summary>div{display:flex;flex-direction:column;gap:4px;min-width:0;padding:24px;border:1px solid var(--ngr-line);border-radius:16px;background:#fff;box-shadow:var(--ngr-shadow)}
.ng-rewards-summary .ng-rewards-balance{border-color:var(--ngr-forest);background:var(--ngr-forest);box-shadow:0 1px 2px rgb(13 63 36 / 10%),0 14px 28px -16px rgb(13 63 36 / 45%)}
.ng-rewards-summary span{font-size:13px;line-height:18px;font-weight:600;color:var(--ngr-muted)}
.ng-rewards-summary strong{font-size:32px;line-height:36px;font-weight:700;color:var(--ngr-ink);overflow-wrap:anywhere}
.ng-rewards-summary small{margin-top:2px;font-size:14px;line-height:20px;color:var(--ngr-muted)}
.ng-rewards-balance span,.ng-rewards-balance small{color:#cfe3c4}
.ng-rewards-balance strong{color:#fff}
.ng-rewards-balance strong.is-negative{color:#ffc2b8}
.ng-rewards-debt{margin:0 0 24px;padding:12px 16px;border:1px solid #f0d7b3;border-radius:10px;background:#fffaf2;color:var(--ngr-ink);font-size:15px;line-height:22px}
.ng-rewards-summary+.ng-rewards-debt{margin-top:-8px}
/* History: a table inside a card. */
.ng-rewards-history{margin:0 0 24px;padding:24px;border:1px solid var(--ngr-line);border-radius:16px;background:#fff;box-shadow:var(--ngr-shadow)}
.ng-rewards-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.ng-rewards-filters button{min-height:36px;padding:7px 14px;border:1px solid var(--ngr-line);border-radius:18px;background:#fff;color:var(--ngr-text);font:inherit;font-size:14px;line-height:20px;cursor:pointer;transition:border-color .15s,background-color .15s}
.ng-rewards-filters button:hover{border-color:#9db487}
.ng-rewards-filters button[aria-pressed=true]{border-color:var(--ngr-green);background:#e7f1da;color:#2f5c00;font-weight:700}
.ng-rewards-filters button:focus-visible{outline:2px solid var(--ngr-green);outline-offset:2px}
.ng-rewards-list-head,.ng-rewards-list li{display:grid;grid-template-columns:112px minmax(0,1fr) minmax(88px,auto);gap:16px;align-items:center}
.ng-rewards-list-head{padding:9px 16px;border-radius:10px;background:var(--ngr-tint);font-size:13px;line-height:18px;font-weight:600;color:var(--ngr-muted)}
.ng-rewards-list-head[hidden]{display:none}
.ng-rewards-list-head span:last-child{text-align:right}
.ng-rewards-list{list-style:none;margin:0;padding:0}
.ng-rewards-list li{min-height:56px;padding:10px 16px;border-bottom:1px solid var(--ngr-line);font-size:15px;line-height:22px;transition:background-color .15s}
.ng-rewards-list li:last-child{border-bottom:0}
.ng-rewards-list li:hover{background:#fafcf7}
.ng-rewards-list li[hidden]{display:none}
.ng-rewards-date{color:var(--ngr-muted);font-size:14px}
.ng-rewards-label{min-width:0;color:var(--ngr-ink);overflow-wrap:anywhere}
.ng-rewards-label small{display:block;font-size:13px;line-height:18px;color:var(--ngr-muted)}
.ng-rewards-amount{font-size:16px;white-space:nowrap;text-align:right}
.ng-rewards-amount.is-plus{color:#2f5c00}
.ng-rewards-amount.is-minus{color:#a12b23}
.ng-rewards-empty{margin:0;padding:16px 20px;border-radius:10px;background:var(--ngr-tint);color:var(--ngr-muted)}
.ng-rewards-empty[hidden]{display:none}
/* Rules: a quiet tinted card with short lines. */
.ng-rewards-rules{padding:24px;border:1px solid var(--ngr-tint-line);border-radius:16px;background:var(--ngr-tint)}
.ng-rewards-rules ul{display:grid;gap:10px;margin:0 0 16px;padding:0;list-style:none;max-width:680px;line-height:24px}
.ng-rewards-rules li{position:relative;padding-left:22px}
.ng-rewards-rules li::before{content:"";position:absolute;left:2px;top:9px;width:6px;height:6px;border-radius:50%;background:var(--ngr-green)}
.ng-rewards-more{color:var(--ngr-green);font-weight:700;text-decoration:none}
.ng-rewards-more:hover{text-decoration:underline;text-underline-offset:3px}
.ng-rewards-more:focus-visible{outline:2px solid var(--ngr-green);outline-offset:2px}
/* Compact layout: by the width of the block itself (a phone, or the narrow side column of the "Bonuses" page);
   the same rules by the screen width are the fallback for a browser without container queries. */
@container ngr (max-width:600px){
  .ng-rewards-summary{grid-template-columns:1fr;gap:16px;margin-bottom:16px}
  .ng-rewards-summary>div{padding:16px}
  .ng-rewards-summary strong{font-size:28px;line-height:32px}
  .ng-rewards-history,.ng-rewards-rules{padding:16px;margin-bottom:16px}
  .ng-rewards h3{font-size:18px;line-height:24px}
  .ng-rewards-list-head{display:none}
  .ng-rewards-list li{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label amount" "date date";gap:2px 12px;min-height:0;padding:12px 0;align-items:start}
  .ng-rewards-list li:hover{background:none}
  .ng-rewards-label{grid-area:label}.ng-rewards-amount{grid-area:amount}.ng-rewards-date{grid-area:date;font-size:13px;line-height:18px}
  .ng-rewards-filters{flex-wrap:nowrap;overflow-x:auto;margin-inline:-16px;padding-inline:16px;scrollbar-width:none}
  .ng-rewards-filters::-webkit-scrollbar{display:none}
  .ng-rewards-filters button{flex:none}
}
@supports not (container-type:inline-size){@media (max-width:640px){
  .ng-rewards-summary{grid-template-columns:1fr;gap:16px;margin-bottom:16px}
  .ng-rewards-summary>div{padding:16px}
  .ng-rewards-summary strong{font-size:28px;line-height:32px}
  .ng-rewards-history,.ng-rewards-rules{padding:16px;margin-bottom:16px}
  .ng-rewards h3{font-size:18px;line-height:24px}
  .ng-rewards-list-head{display:none}
  .ng-rewards-list li{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label amount" "date date";gap:2px 12px;min-height:0;padding:12px 0;align-items:start}
  .ng-rewards-list li:hover{background:none}
  .ng-rewards-label{grid-area:label}.ng-rewards-amount{grid-area:amount}.ng-rewards-date{grid-area:date;font-size:13px;line-height:18px}
  .ng-rewards-filters{flex-wrap:nowrap;overflow-x:auto;margin-inline:-16px;padding-inline:16px;scrollbar-width:none}
  .ng-rewards-filters::-webkit-scrollbar{display:none}
  .ng-rewards-filters button{flex:none}
}}
@media (prefers-reduced-motion:reduce){.ng-rewards *{transition:none!important}}
html[data-a11y-motion] .ng-rewards *{transition:none!important}
