.tntb-konto-cashback-box {
    --tntb-konto-accent: #f28c18;
    --tntb-konto-accent-dark: #c96709;
    --tntb-konto-text: #252a31;
    --tntb-konto-muted: #67717d;
    margin: 6px 0 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--tntb-konto-text);
    clear: both;
    box-shadow: none;
}

.tntb-konto-cashback-card {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 0;
}

.tntb-konto-cashback-icon,
.tntb-konto-funds-spend__icon,
.tntb-konto-balance-box__icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    background-color: var(--tntb-konto-accent, #f28c18);
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4.5%207.5h12.8a2.7%202.7%200%200%201%202.7%202.7v6.6a2.7%202.7%200%200%201-2.7%202.7H4.5a2.5%202.5%200%200%201-2.5-2.5v-7A2.5%202.5%200%200%201%204.5%207.5Z%27/%3E%3Cpath%20d%3D%27M5%207.5V6.3A2.3%202.3%200%200%201%207.3%204h8.2a2%202%200%200%201%202%202v1.5%27/%3E%3Cpath%20d%3D%27M16%2012h4v3h-4a1.5%201.5%200%200%201%200-3Z%27/%3E%3Cpath%20d%3D%27M8%2013.5h4%27/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4.5%207.5h12.8a2.7%202.7%200%200%201%202.7%202.7v6.6a2.7%202.7%200%200%201-2.7%202.7H4.5a2.5%202.5%200%200%201-2.5-2.5v-7A2.5%202.5%200%200%201%204.5%207.5Z%27/%3E%3Cpath%20d%3D%27M5%207.5V6.3A2.3%202.3%200%200%201%207.3%204h8.2a2%202%200%200%201%202%202v1.5%27/%3E%3Cpath%20d%3D%27M16%2012h4v3h-4a1.5%201.5%200%200%201%200-3Z%27/%3E%3Cpath%20d%3D%27M8%2013.5h4%27/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.tntb-konto-cashback-title,
.tntb-konto-funds-spend__title {
    margin: 0 0 3px;
    color: var(--tntb-konto-text, #252a31);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.tntb-konto-cashback-line,
.tntb-konto-cashback-note,
.tntb-konto-product-cashback__placeholder {
    margin: 0;
    color: var(--tntb-konto-muted, #67717d);
    font-size: 14px;
    line-height: 1.45;
}

.tntb-konto-cashback-amount {
    color: var(--tntb-konto-accent-dark, #c96709);
    font-size: 1em;
    font-weight: 800;
    white-space: nowrap;
}

.tntb-konto-cashback-link {
    color: var(--tntb-konto-accent-dark, #c96709);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.tntb-konto-cashback-link:focus-visible,
.tntb-konto-funds-spend__button:focus-visible,
.tntb-konto-history-order a:focus-visible,
.tntb-konto-pagination a:focus-visible {
    outline: 2px solid var(--tntb-konto-accent, #f28c18);
    outline-offset: 3px;
}

.tntb-konto-funds-spend {
    --tntb-konto-accent: #f28c18;
    --tntb-konto-accent-dark: #c96709;
    --tntb-konto-bg: #fffaf3;
    --tntb-konto-border: #efd7b7;
    --tntb-konto-text: #252a31;
    --tntb-konto-muted: #67717d;
}

.tntb-konto-funds-spend th,
.tntb-konto-funds-spend td {
    vertical-align: middle;
}

.tntb-konto-funds-spend__panel {
    display: block;
    max-width: 100%;
    min-width: 0;
}

.tntb-konto-funds-spend__balance,
.tntb-konto-funds-spend__state,
.tntb-konto-funds-spend__primary,
.tntb-konto-funds-spend__secondary {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
}

.tntb-konto-funds-spend__balance {
    color: var(--tntb-konto-text);
    font-weight: 600;
}

.tntb-konto-funds-spend__state {
    margin-top: 2px;
    color: var(--tntb-konto-muted);
}

.tntb-konto-funds-spend__primary {
    color: var(--tntb-konto-text);
    font-weight: 700;
}

.tntb-konto-funds-spend__primary .woocommerce-Price-amount {
    color: var(--tntb-konto-accent-dark);
    font-weight: 800;
}

.tntb-konto-funds-spend__secondary {
    margin-top: 3px;
    color: var(--tntb-konto-muted);
}

.tntb-konto-funds-spend__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    font: inherit;
    cursor: pointer;
}

.tntb-konto-funds-spend--cart .tntb-konto-funds-spend__panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tntb-konto-funds-spend--cart .tntb-konto-funds-spend__icon,
.tntb-konto-funds-spend--cart .tntb-konto-funds-spend__title,
.tntb-konto-funds-spend--cart .tntb-konto-funds-spend__state {
    display: none;
}

.tntb-konto-funds-spend--cart .tntb-konto-funds-spend__balance {
    margin: 0 0 10px;
    font-weight: 600;
}

.tntb-konto-funds-spend--cart .tntb-konto-funds-spend__button {
    width: 100%;
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
}

.tntb-konto-funds-spend--checkout .tntb-konto-funds-spend__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 13px;
    border: 1px solid var(--tntb-konto-border);
    border-radius: 8px;
    background: var(--tntb-konto-bg);
}

.tntb-konto-funds-spend--checkout .tntb-konto-funds-spend__icon {
    display: none;
}

.tntb-konto-funds-spend--checkout .tntb-konto-funds-spend__content {
    min-width: 0;
    text-align: center;
}

.tntb-konto-funds-spend--checkout .tntb-konto-funds-spend__balance {
    font-weight: 600;
}

.tntb-konto-funds-spend--checkout .tntb-konto-funds-spend__action {
    grid-column: 1 / -1;
    width: 100%;
}

.tntb-konto-funds-spend--checkout .tntb-konto-funds-spend__button {
    width: 100%;
    min-width: 0;
    margin-top: 2px;
    padding-right: 14px;
    padding-left: 14px;
}

.tntb-konto-cashback-forecast {
    --tntb-konto-accent: #f28c18;
    --tntb-konto-accent-dark: #c96709;
    --tntb-konto-text: #252a31;
    --tntb-konto-muted: #67717d;
}

.tntb-konto-cashback-forecast th,
.tntb-konto-cashback-forecast td {
    vertical-align: middle;
}

.tntb-konto-cashback-forecast__inner {
    max-width: 100%;
    min-width: 0;
}

.tntb-konto-cashback-forecast__text {
    margin: 0;
    line-height: 1.35;
}

.tntb-konto-cashback-forecast__text {
    color: var(--tntb-konto-muted);
    font-size: 13px;
}

.tntb-konto-cashback-forecast__amount {
    color: var(--tntb-konto-accent-dark);
    font-weight: 800;
    white-space: nowrap;
}

.tntb-konto-funds {
    --tntb-konto-accent: #f28c18;
    --tntb-konto-accent-dark: #c96709;
    --tntb-konto-positive: #2f7d32;
    --tntb-konto-negative: #9b2f1f;
    --tntb-konto-bg: #fffaf3;
    --tntb-konto-border: #e7e3dc;
    --tntb-konto-text: #252a31;
    --tntb-konto-muted: #67717d;
}

.tntb-konto-balance-box {
    margin: 0 0 24px;
    padding: 22px;
    border: 1px solid #efd7b7;
    border-radius: 8px;
    background: #fffaf3;
    box-shadow: 0 6px 18px rgba(37, 42, 49, .05);
}

.tntb-konto-balance-box__header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.tntb-konto-balance-box h2,
.tntb-konto-history h2 {
    margin-top: 0;
}

.tntb-konto-balance-box h2 {
    margin-bottom: 0;
    font-size: 20px;
}

.tntb-konto-balance-label {
    margin: 0 0 4px;
    color: var(--tntb-konto-muted);
    font-size: 13px;
}

.tntb-konto-balance-value {
    margin: 0 0 10px;
    color: var(--tntb-konto-text);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
}

.tntb-konto-temporary-notice {
    margin: 0;
    color: var(--tntb-konto-muted);
    font-size: 14px;
}

.tntb-konto-history-table {
    width: 100%;
}

.tntb-konto-history-table th,
.tntb-konto-history-table td {
    vertical-align: middle;
}

.tntb-konto-history-table th:last-child,
.tntb-konto-history-table td:last-child,
.tntb-konto-history-amount {
    text-align: right;
}

.tntb-konto-history-amount {
    white-space: nowrap;
    font-weight: 800;
}

.tntb-konto-history-row--positive .tntb-konto-history-amount {
    color: var(--tntb-konto-positive);
}

.tntb-konto-history-row--negative .tntb-konto-history-amount {
    color: var(--tntb-konto-negative);
}

.tntb-konto-history-order a {
    color: var(--tntb-konto-accent-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.tntb-konto-pagination {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.wd-nav-my-acc > .wd-my-acc-srodki > a .wd-nav-icon::before {
    content: "" !important;
    display: block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    font-family: initial !important;
    font-weight: 400;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4.5%207.5h12.8a2.7%202.7%200%200%201%202.7%202.7v6.6a2.7%202.7%200%200%201-2.7%202.7H4.5a2.5%202.5%200%200%201-2.5-2.5v-7A2.5%202.5%200%200%201%204.5%207.5Z%27/%3E%3Cpath%20d%3D%27M5%207.5V6.3A2.3%202.3%200%200%201%207.3%204h8.2a2%202%200%200%201%202%202v1.5%27/%3E%3Cpath%20d%3D%27M16%2012h4v3h-4a1.5%201.5%200%200%201%200-3Z%27/%3E%3Cpath%20d%3D%27M8%2013.5h4%27/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4.5%207.5h12.8a2.7%202.7%200%200%201%202.7%202.7v6.6a2.7%202.7%200%200%201-2.7%202.7H4.5a2.5%202.5%200%200%201-2.5-2.5v-7A2.5%202.5%200%200%201%204.5%207.5Z%27/%3E%3Cpath%20d%3D%27M5%207.5V6.3A2.3%202.3%200%200%201%207.3%204h8.2a2%202%200%200%201%202%202v1.5%27/%3E%3Cpath%20d%3D%27M16%2012h4v3h-4a1.5%201.5%200%200%201%200-3Z%27/%3E%3Cpath%20d%3D%27M8%2013.5h4%27/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 768px) {
    .tntb-konto-cashback-box {
        margin: 8px 0 14px;
    }

    .tntb-konto-cashback-card {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 8px;
    }

    .tntb-konto-cashback-icon {
        width: 24px;
        height: 24px;
    }

    .tntb-konto-cashback-title {
        font-size: 12px;
    }

    .tntb-konto-cashback-line,
    .tntb-konto-cashback-note,
    .tntb-konto-product-cashback__placeholder {
        font-size: 13px;
    }

    .tntb-konto-cashback-amount {
        display: inline-block;
        font-size: 1.18em;
    }

    tr.tntb-konto-funds-spend {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        box-sizing: border-box;
    }

    tr.tntb-konto-funds-spend > th,
    tr.tntb-konto-funds-spend > td {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        box-sizing: border-box;
        text-align: left !important;
    }

    tr.tntb-konto-funds-spend > th {
        padding-bottom: 10px;
    }

    tr.tntb-konto-funds-spend > td {
        padding-top: 0;
    }

    tr.tntb-konto-funds-spend > td::before {
        content: none;
        display: none;
    }

    tr.tntb-konto-funds-spend .tntb-konto-funds-spend__panel {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    tr.tntb-konto-cashback-forecast {
        display: block;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    tr.tntb-konto-cashback-forecast > th,
    tr.tntb-konto-cashback-forecast > td {
        display: block;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        text-align: left;
    }

    tr.tntb-konto-cashback-forecast > th {
        padding-bottom: 10px;
    }

    tr.tntb-konto-cashback-forecast > td {
        padding-top: 0;
    }

    tr.tntb-konto-cashback-forecast > td::before {
        content: none;
        display: none;
    }

    .tntb-konto-funds-spend__button {
        width: 100%;
        min-height: 44px;
        padding-right: 12px;
        padding-left: 12px;
        white-space: normal;
    }

    .tntb-konto-balance-box {
        margin-bottom: 18px;
        padding: 18px;
    }

    .tntb-konto-balance-value {
        font-size: 1.7rem;
    }

    .tntb-konto-history-table,
    .tntb-konto-history-table tbody,
    .tntb-konto-history-table tr,
    .tntb-konto-history-table td {
        display: block;
    }

    .tntb-konto-history-table thead {
        display: none;
    }

    .tntb-konto-history-table.shop_table_responsive tr td::before {
        content: none;
    }

    .tntb-konto-history-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 3px 12px;
        padding: 12px 0;
        border-bottom: 1px solid var(--tntb-konto-border);
    }

    .tntb-konto-history-table .tntb-konto-history-row td {
        padding: 0;
        border: 0;
        text-align: left;
    }

    .tntb-konto-history-date {
        grid-column: 1;
        grid-row: 1;
        color: var(--tntb-konto-muted);
        font-size: 12px;
        line-height: 1.35;
    }

    .tntb-konto-history-operation {
        grid-column: 1;
        grid-row: 2;
        color: var(--tntb-konto-text);
        font-weight: 700;
        line-height: 1.35;
    }

    .tntb-konto-history-order {
        grid-column: 1;
        grid-row: 3;
        color: var(--tntb-konto-muted);
        font-size: 13px;
        line-height: 1.35;
    }

    .tntb-konto-history-amount {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: center;
        text-align: right;
    }
}
