.loyalty-page, .checkout-loyalty, .loyalty-shortcut { --loyalty-ink: #202024; --loyalty-muted: #69676f; --loyalty-line: #e1dfe4; --loyalty-accent: #8050c8; color: var(--loyalty-ink); letter-spacing: 0; }
.loyalty-page { min-width: 0; --loyalty-value-size: 40px; }
.loyalty-page [hidden], .checkout-loyalty [hidden], .loyalty-shortcut [hidden], .checkout-breakdown[hidden], .checkout-breakdown [hidden] { display: none !important; }
.loyalty-page h1, .loyalty-page h2, .loyalty-page p { margin: 0; }
.loyalty-heading, .loyalty-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.loyalty-heading { margin-bottom: 28px; }
.loyalty-heading h1 { font-size: 36px; line-height: 1.2; font-weight: 700; }
.loyalty-page h2 { font-size: 24px; line-height: 1.3; font-weight: 700; }
.loyalty-back, .loyalty-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--loyalty-ink); font-size: 13px; font-weight: 600; min-height: 40px; }
.loyalty-back:hover, .loyalty-text-link:hover { color: var(--loyalty-accent); }
.loyalty-caption { color: var(--loyalty-muted); font-size: 13px; line-height: 1.5; }
.loyalty-page .loyalty-status { font-size: 14px; line-height: 1.5; margin: 16px 0; }
.loyalty-status:empty { display: none; }
.loyalty-loading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.loyalty-loading span { height: 192px; border-radius: 20px; background: #e7e4eb; animation: loyalty-loading 1.4s ease-in-out infinite alternate; }
.loyalty-overview { display: grid; grid-template-columns: 1.1fr .85fr 1fr; gap: 16px; align-items: stretch; }
.loyalty-metric { min-width: 0; min-height: 192px; border-radius: 20px; padding: 22px; display: grid; grid-template-rows: minmax(32px, auto) minmax(44px, 1fr) minmax(32px, auto); gap: 18px; align-items: center; }
.loyalty-wallet { background: #e2c9ff; }
.loyalty-cashback { background: #fff; box-shadow: 0 4px 12px #00000005; }
.loyalty-metric-top, .loyalty-metric-bottom, .loyalty-progress-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 1.5; }
.loyalty-metric-top { font-weight: 600; }
.loyalty-metric-top > img { filter: brightness(.32); }
.loyalty-badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 100px; background: #efedf2; color: #55515e; font-size: 11px; font-weight: 600; line-height: 1.5; }
.loyalty-page .loyalty-badge { max-width: 100%; overflow-wrap: anywhere; }
.loyalty-value { display: block; min-width: 0; font-size: var(--loyalty-value-size); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.loyalty-cashback .loyalty-value { color: #287665; }
.loyalty-metric-bottom { font-size: 12px; }
.loyalty-metric-bottom a { display: inline-flex; align-items: center; gap: 6px; color: #202024; font-weight: 600; min-height: 32px; }
.loyalty-metric-bottom a:hover { text-decoration: underline !important; }
.loyalty-progress { min-width: 0; padding: 22px 8px 22px 16px; align-self: center; }
.loyalty-progress > strong { display: block; font-size: 20px; font-weight: 700; line-height: 1.4; margin: 10px 0 18px; }
.loyalty-progress progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 8px; background: #e3dfe8; accent-color: #a781ff; overflow: hidden; }
.loyalty-progress progress::-webkit-progress-bar { background: #e3dfe8; }
.loyalty-progress progress::-webkit-progress-value { background: #a781ff; border-radius: 8px; transition: width .4s; }
.loyalty-progress progress::-moz-progress-bar { background: #a781ff; border-radius: 8px; }
.loyalty-progress-total { font-size: 12px; color: var(--loyalty-muted); margin-top: 12px; }
.loyalty-progress-total span:last-child { font-weight: 600; color: var(--loyalty-ink); }
.loyalty-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; gap: 20px; }
.loyalty-tier { padding: 14px 0 18px; border-top: 3px solid #dedbe2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; font-size: 13px; min-width: 0; }
.loyalty-tier > strong, .loyalty-tier > span { max-width: 100%; overflow-wrap: anywhere; }
.loyalty-tier > span { color: var(--loyalty-muted); font-size: 12px; }
.loyalty-tier > b { grid-column: 2; grid-row: 1 / 3; font-size: 24px; font-weight: 700; }
.loyalty-tier[data-reached="true"] { border-color: #c6b1e7; }
.loyalty-tier[aria-current="true"] { border-color: #a781ff; }
.loyalty-tier[aria-current="true"] > strong { color: #7448b1; }
.loyalty-tier small { display: inline-block; margin-left: 6px; color: var(--loyalty-muted); font-size: 10px; font-weight: 500; }
.loyalty-wheel-section { border-block: 1px solid var(--loyalty-line); margin-top: 12px; padding: 28px 0; }
.loyalty-wheel-section .loyalty-badge { background: #dcefe6; color: #246653; }
.loyalty-wheel-layout { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 1fr); align-items: center; gap: 40px; margin-top: 24px; }
.loyalty-wheel { position: relative; width: min(100%, 370px); aspect-ratio: 1; margin: 8px auto; filter: drop-shadow(0 12px 12px #20202412); }
.loyalty-wheel canvas { display: block; width: 100%; height: 100%; }
.loyalty-pointer { position: absolute; top: 0; left: calc(50% - 12px); border-inline: 12px solid transparent; border-top: 29px solid #202024; z-index: 1; filter: drop-shadow(0 3px 2px #0002); }
.loyalty-wheel-details { min-width: 0; }
.loyalty-offer-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.loyalty-offer-top strong { font-size: 34px; font-weight: 700; line-height: 1.2; }
.loyalty-offer-top > span { color: var(--loyalty-muted); font-size: 12px; max-width: 100px; }
.loyalty-wheel-details .loyalty-offer { font-size: 19px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.loyalty-wheel-details .loyalty-expiry { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--loyalty-muted); }
.loyalty-wheel-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.loyalty-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #202024; border-radius: 100px; min-height: 46px; padding: 12px 22px; background: #202024; color: #fff; font: 600 14px/1.4 "Manrope", sans-serif; cursor: pointer; transition: background .18s, box-shadow .18s; }
.loyalty-button img { flex-shrink: 0; filter: invert(1); }
.loyalty-button:hover { background: #3b3544; color: #fff; box-shadow: 0 4px 12px #20202415; }
.loyalty-button:disabled { background: #e8e5eb; border-color: #e8e5eb; color: #68636e; cursor: default; box-shadow: none; }
.loyalty-page :is(a, button, summary):focus-visible, .checkout-loyalty :is(input, button):focus-visible, .loyalty-shortcut:focus-visible { outline: 3px solid #a781ff; outline-offset: 4px; }
.loyalty-page .loyalty-spin-status { min-height: 18px; margin: 10px 0 16px; font-size: 12px; line-height: 1.5; color: var(--loyalty-muted); }
.loyalty-wheel-section[data-active="true"] .loyalty-offer-top strong { color: #26745e; }
.loyalty-sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.loyalty-sectors li { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.4; min-width: 0; }
.loyalty-sectors b { display: grid; place-items: center; flex: 0 0 38px; height: 34px; border-radius: 8px; font-size: 12px; color: #202024; }
.loyalty-sectors span { overflow-wrap: anywhere; }
.loyalty-sectors [data-selected="true"] span { font-weight: 700; }
.loyalty-sectors [data-selected="true"] b { outline: 2px solid #202024; outline-offset: 2px; }
.loyalty-history { padding: 28px 0; }
.loyalty-history .loyalty-section-heading { margin-bottom: 18px; }
.loyalty-table-wrap { overflow-x: auto; }
.loyalty-history table { width: 100%; border-collapse: collapse; font-size: 13px; }
.loyalty-history th, .loyalty-history td { padding: 16px 10px; border-bottom: 1px solid var(--loyalty-line); text-align: left; line-height: 1.5; }
.loyalty-history th { color: var(--loyalty-muted); font-size: 12px; font-weight: 500; padding-top: 0; padding-bottom: 12px; }
.loyalty-history th:first-child, .loyalty-history td:first-child { padding-left: 0; }
.loyalty-history th:last-child, .loyalty-history td:last-child { text-align: right; padding-right: 0; }
.loyalty-history td:nth-child(3) { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.loyalty-history td:nth-child(2), .loyalty-history td:last-child { color: var(--loyalty-muted); font-size: 12px; }
.loyalty-operation { display: inline-flex; align-items: center; gap: 10px; }
.loyalty-operation-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: #e9e4f0; font-size: 19px; }
.loyalty-operation-mark[data-positive="true"] { background: #dcefe6; color: #26745e; }
.loyalty-positive { color: #26745e; }
.loyalty-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 36px 16px; }
.loyalty-empty strong { font-size: 16px; }
.loyalty-empty p { font-size: 13px; color: var(--loyalty-muted); }
.loyalty-rules { border-top: 1px solid var(--loyalty-line); padding-top: 18px; font-size: 13px; line-height: 1.7; }
.loyalty-rules summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 600; min-height: 32px; list-style: none; }
.loyalty-rules summary::-webkit-details-marker { display: none; }
.loyalty-rules[open] summary img { transform: rotate(180deg); }
.loyalty-rules p { margin: 12px 0; color: var(--loyalty-muted); }
.loyalty-page .loyalty-note { border-left: 3px solid #bf5763; padding: 12px; margin-top: 16px; color: #943641; font-size: 13px; line-height: 1.6; }
.checkout-loyalty { border: 0; border-block: 1px solid #e1dfe4; padding: 16px 0; margin: 0 0 16px; min-width: 0; }
.checkout-loyalty-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.checkout-loyalty-toggle input { appearance: auto; width: 18px; height: 18px; flex-shrink: 0; accent-color: #8050c8; }
.checkout-loyalty-toggle img { margin-left: auto; }
.checkout-loyalty .checkout-loyalty-available { font-size: 12px; color: #69676f; margin: 6px 0 0 28px; }
.checkout-loyalty-entry { margin-top: 16px; }
.checkout-loyalty-entry > label { font-size: 12px; color: #69676f; margin-bottom: 6px; }
.checkout-loyalty-input { display: flex; align-items: center; border: 1px solid #cfc5dd; border-radius: 8px; background: #fff; padding-right: 4px; }
.checkout-loyalty-input:focus-within { outline: 2px solid #a781ff; outline-offset: 1px; }
.checkout-loyalty-input input { min-width: 0; width: 100%; border: 0; border-radius: 8px; box-shadow: none; padding: 12px; font: 600 15px/1.4 "Manrope", sans-serif; background: transparent; }
.checkout-loyalty-input input:focus-visible { outline: none; }
.checkout-loyalty-input button { border: 0; background: #efe7fc; color: #6940a3; padding: 9px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.checkout-loyalty-input button:hover { background: #e2d4f4; }
.checkout-loyalty:disabled { opacity: .65; }
.checkout-breakdown { display: grid; gap: 8px; padding: 0; margin: 0 0 16px; font-size: 12px; line-height: 1.5; }
.checkout-breakdown > div { display: flex; justify-content: space-between; gap: 16px; }
.checkout-breakdown dt { color: #69676f; font-weight: 400; }
.checkout-breakdown dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.checkout-breakdown .checkout-cashback { border-top: 1px solid #e1dfe4; padding-top: 10px; }
.checkout-cashback dd { color: #26745e; }
#checkoutLoyaltyDetails { font-size: 12px; line-height: 1.5; color: #943641; }
#checkoutLoyaltyDetails:empty { display: none; }
#checkoutLoyaltyDetails[data-loading="true"] { color: #69676f; }
.loyalty-shortcut { display: flex; align-items: center; gap: 14px; border-block: 1px solid #dfdbe6; padding: 16px 0; margin: 0 0 24px; }
.loyalty-shortcut > img:first-child { width: 28px; height: 28px; }
.loyalty-shortcut-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; flex: 1; font-size: 13px; }
.loyalty-shortcut-copy strong { font-size: 14px; }
.loyalty-shortcut-copy span { color: var(--loyalty-muted); }
.loyalty-shortcut:hover strong { color: var(--loyalty-accent); }
.cabinet_block .about_block .sidebar .menu a .loyalty-menu-icon { width: 32px; height: 32px; padding: 6px; }
@keyframes loyalty-loading { to { opacity: .45; } }
@media (max-width: 1199px) {
    .loyalty-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .loyalty-progress { grid-column: 1 / -1; padding: 8px 0 0; }
    .loyalty-progress > strong { margin: 4px 0 14px; font-size: 18px; }
    .loyalty-wheel-layout { gap: 24px; }
}
@media (max-width: 767px) {
    .loyalty-page { --loyalty-value-size: 28px; }
    .loyalty-heading { margin-bottom: 20px; gap: 8px; }
    .loyalty-heading h1 { font-size: 28px; }
    .loyalty-back { font-size: 12px; gap: 4px; }
    .loyalty-page h2 { font-size: 21px; }
    .loyalty-loading { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .loyalty-loading span:last-child { display: none; }
    .loyalty-overview { gap: 12px; }
    .loyalty-metric { padding: 16px; min-height: 184px; gap: 14px; border-radius: 16px; grid-template-rows: 48px minmax(32px, 1fr) 48px; }
    .loyalty-metric-top { align-items: flex-start; font-size: 12px; min-height: 42px; }
    .loyalty-metric-top > img { display: none; }
    .loyalty-caption { font-size: 12px; }
    .loyalty-tiers { gap: 12px; margin-top: 20px; }
    .loyalty-tier { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; font-size: 12px; }
    .loyalty-tier > b { font-size: 22px; order: -1; }
    .loyalty-tier > span { font-size: 10px; }
    .loyalty-tier small { display: block; margin: 0; }
    .loyalty-wheel-section { padding: 24px 0; margin-top: 4px; }
    .loyalty-wheel-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; }
    .loyalty-wheel { max-width: 300px; margin: 0 auto; }
    .loyalty-wheel-details { text-align: center; }
    .loyalty-offer-top, .loyalty-wheel-actions { justify-content: center; }
    .loyalty-offer-top > span { text-align: left; }
    .loyalty-offer-top strong { font-size: 30px; }
    .loyalty-wheel-actions .loyalty-button { width: 100%; }
    .loyalty-sectors { text-align: left; gap: 14px 12px; }
    .loyalty-history th, .loyalty-history td { padding: 12px 6px; font-size: 12px; }
    .loyalty-history th:last-child, .loyalty-history td:last-child { display: none; }
    .loyalty-history td:nth-child(3), .loyalty-history th:nth-child(3) { text-align: right; padding-right: 0; }
    .loyalty-operation { gap: 8px; }
    .loyalty-operation-mark { width: 28px; height: 28px; }
    .loyalty-operation time { display: block; font-size: 10px; color: var(--loyalty-muted); margin-top: 4px; }
    .loyalty-shortcut { gap: 10px; }
    .loyalty-shortcut > .loyalty-badge { display: none; }
}
@media (min-width: 768px) { .loyalty-operation time { display: none; } }
@media (prefers-reduced-motion: reduce) { .loyalty-loading span { animation: none; } .loyalty-button { transition: none; } }
