/* Customer points and coupons workspace. */

.lc-wallet-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: calc(var(--space) * 1.5) var(--space) calc(var(--space) * 4);
    color: var(--color-text-primary);
}

.lc-wallet-back {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space) * 0.5);
    margin-bottom: calc(var(--space) * 1.5);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: color 0.18s ease;
}

.lc-wallet-back:hover {
    color: var(--color-accent);
}

.lc-wallet-head {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: calc(var(--space) * 2);
    text-align: center;
}

.lc-wallet-eyebrow {
    margin: 0 0 calc(var(--space) * 0.5);
    color: var(--color-accent);
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lc-wallet-head h1 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.lc-wallet-section {
    padding: calc(var(--space) * 2) 0;
    border-top: 1px solid var(--color-border-lighter);
}

.lc-wallet-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space);
    margin-bottom: calc(var(--space) * 1.25);
}

.lc-wallet-section-head h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.01em;
}

.lc-wallet-section-head p {
    margin: calc(var(--space) * 0.4) 0 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.lc-wallet-balance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space);
}

.lc-wallet-balance {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space) * 0.75);
    padding: var(--space);
    border: 1px solid var(--color-border-lighter);
    border-radius: 12px;
    background: var(--gradient-content-card);
}

.lc-wallet-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space);
}

.lc-wallet-payment-logo {
    display: block;
    width: auto;
    height: 34px;
    object-fit: contain;
}

.lc-wallet-balance-row > strong {
    color: var(--color-text-primary);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}

.lc-wallet-balance > p {
    margin: var(--space) 0 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}

.lc-wallet-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border-lighter);
    border-radius: 14px;
    background: var(--color-bg-main);
    -webkit-overflow-scrolling: touch;
}

.lc-wallet-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.lc-wallet-table thead tr {
    background: var(--gradient-button);
}

.lc-wallet-table th {
    padding: calc(var(--space) * 0.8) var(--space);
    border-bottom: 1px solid var(--color-border-light);
    background: transparent;
    color: #ffffff;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

[data-theme="dark"] .lc-wallet-table th {
    color: #040404;
}

.lc-wallet-table td {
    padding: var(--space);
    border-bottom: 1px solid var(--color-border-lighter);
    color: var(--color-text-secondary);
    line-height: 1.45;
    vertical-align: middle;
}

.lc-wallet-table tbody tr:last-child td {
    border-bottom: 0;
}

.lc-wallet-table td strong,
.lc-wallet-code {
    color: var(--color-text-primary);
}

.lc-wallet-code {
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.03em;
}

.lc-wallet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--space) * 0.35);
    margin-top: calc(var(--space) * 0.45);
}

.lc-wallet-tags span,
.lc-wallet-type {
    display: inline-flex;
    padding: calc(var(--space) * 0.2) calc(var(--space) * 0.45);
    border: 1px solid var(--color-border-light);
    border-radius: 999px;
    background: var(--color-bg-main);
    color: var(--color-text-secondary);
    font-size: calc(var(--font-size-xs) * 0.9);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
}

.lc-wallet-change {
    font-weight: var(--font-weight-bold);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lc-wallet-change.is-positive {
    color: var(--status-success);
}

.lc-wallet-change.is-negative {
    color: var(--status-danger);
}

.lc-wallet-empty {
    padding: calc(var(--space) * 1.5);
    border: 1px dashed var(--color-border-light);
    border-radius: 14px;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    text-align: center;
}

@media (max-width: 640px) {
    .lc-wallet-page {
        padding-top: var(--space);
        padding-bottom: calc(var(--space) * 3);
    }

    .lc-wallet-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .lc-wallet-balance-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lc-wallet-back {
        transition: none;
    }
}
