.wallet-page {
    background: var(--color-background);
    min-height: 100%;
    margin: 0 -15px;
    padding-bottom: 24px;
}

.wallet-card {
    margin: 16px var(--page-padding) 12px;
    padding: 20px 16px;
    background: linear-gradient(160deg, var(--color-primary) 0%, #163eb0 100%);
    color: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.wallet-card__label,
.wallet-card__pending {
    margin: 0;
    font-size: var(--font-size-sm);
    opacity: 0.85;
}

.wallet-card__balance {
    margin: 8px 0 4px;
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    word-break: break-word;
}

.wallet-card__money {
    margin: 0 0 12px;
    font-size: var(--font-size-md);
}

.wallet-actions {
    margin: 0 var(--page-padding) 16px;
}

.wallet-actions__primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--button-height);
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #fff;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

.wallet-history,
.wallet-buy {
    margin: 0 var(--page-padding) 24px;
    padding: 16px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.wallet-history__title {
    margin: 0 0 12px;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
}

.wallet-empty {
    margin: 0;
    padding: 24px 8px;
    text-align: center;
    color: var(--color-text-secondary);
}

.wallet-tx-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wallet-tx {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.wallet-tx:last-child {
    border-bottom: 0;
}

.wallet-tx__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.wallet-tx__row--meta {
    margin-top: 4px;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.wallet-tx__type,
.wallet-tx__amount {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

.wallet-tx__desc {
    margin: 6px 0 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.wallet-options,
.wallet-gateways {
    border: 0;
    margin: 0 0 16px;
    padding: 0;
}

.wallet-options legend,
.wallet-gateways legend {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 10px;
}

.wallet-option,
.wallet-gateway {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.wallet-option__body,
.wallet-gateway__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wallet-option__name {
    font-weight: var(--font-weight-medium);
}

.wallet-option__meta,
.wallet-gateway__html {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.wallet-gateway img {
    max-height: 24px;
    margin-right: 8px;
}

.wallet-terms {
    display: block;
    margin: 12px 0 16px;
    font-size: var(--font-size-sm);
}

.wallet-checkout-credit {
    list-style: none;
    margin: 8px 0 0;
    padding: 12px 0 0;
}

body.has-app-shell.user-page.is-wallet-shell .bc_topbar,
body.has-app-shell.user-page.is-wallet-shell .bc_header,
body.has-app-shell.user-page.is-wallet-shell .bc_footer {
    display: none !important;
}

body.has-app-shell.user-page.is-wallet-shell .bc_user_profile .col-md-3 {
    display: none !important;
}

body.has-app-shell.user-page.is-wallet-shell .bc_user_profile .col-md-9 {
    flex: 0 0 100%;
    max-width: 100%;
}

body.has-app-shell.user-page.is-wallet-shell .breadcrumb,
body.has-app-shell.user-page.is-wallet-shell .title-bar,
body.has-app-shell.user-page.is-wallet-shell .user-breadcrumb,
body.has-app-shell.user-page.is-wallet-shell .breadcrumb-page-bar {
    display: none !important;
}

body.has-app-shell.user-page.is-wallet-shell .user-form-settings {
    padding: 0;
    background: var(--color-background);
    min-height: calc(100dvh - var(--app-bottom-offset));
}

body.has-app-shell.user-page.is-wallet-shell .bc_user_profile,
body.has-app-shell.user-page.is-wallet-shell .bc_user_profile > .container-fluid > .row-eq-height > .col-md-3 {
    min-height: 0 !important;
}

body.has-app-shell.user-page.is-wallet-shell .alert {
    margin: 12px var(--page-padding) 0;
}
