/* Member-area refresh. Scoped so the public site remains unchanged. */
.member-dashboard {
    padding: 42px max(24px, 5vw);
    background: #f4f6f8;
}

.member-dashboard .db-l {
    width: 22%;
}

.member-dashboard .db-2 {
    width: calc(78% - 18px);
    margin: 12px 0 24px 18px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(37, 61, 82, .10);
}

.member-dashboard .db-l-2 {
    margin-top: 12px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(37, 61, 82, .08);
}

.member-dashboard .db-l-2 ul {
    margin: 0;
}

.member-dashboard .db-l-2 ul li,
.member-dashboard .db-l-2 ul li:last-child {
    padding: 3px 0;
    border: 0;
}

.member-dashboard .db-l-2 ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: #44515c;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease, padding .15s ease;
}

.member-dashboard .db-l-2 ul li a:hover,
.member-dashboard .db-l-2 ul li a.active {
    padding-left: 12px;
    color: #fff;
    background: #253d52;
}

.member-dashboard .db-l-2 ul li a i {
    width: 18px;
    text-align: center;
}

.member-dashboard .db-2-com h4 {
    padding: 18px 22px;
    font-size: 18px;
    background: #253d52;
}

.member-dashboard .db-2-main-com {
    padding: 24px;
}

.wallet-dashboard .db-2-main-com {
    padding-top: 12px;
}

.member-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.member-toolbar h3 {
    margin: 0 0 3px;
    color: #253d52;
    font-size: 23px;
}

.member-toolbar p {
    margin: 0;
    color: #77828c;
}

.member-button,
.member-button:focus {
    display: inline-block;
    padding: 10px 17px;
    color: #fff;
    background: #e85b2a;
    border: 0;
    border-radius: 7px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
}

.member-button:hover {
    color: #fff;
    background: #cc481c;
}

.member-button.secondary {
    color: #394956;
    background: #edf1f4;
}

.member-button.danger {
    background: #b93b3b;
}

.member-notice {
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 7px;
    color: #23633e;
    background: #e9f7ef;
}

.member-notice.error {
    color: #8a2f2f;
    background: #fdecec;
}

.guest-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    padding: 17px 18px;
    border: 1px solid #e5eaee;
    border-radius: 9px;
    background: #fff;
}

.guest-card h5 {
    margin: 0 0 7px;
    color: #253d52;
    font-size: 17px;
}

.guest-meta {
    color: #6f7c86;
    font-size: 13px;
    line-height: 1.7;
}

.guest-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guest-actions form {
    margin: 0;
}

.member-form .field-row {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}

.member-form .field {
    flex: 1;
}

.member-form label {
    display: block;
    margin-bottom: 7px;
    color: #253d52;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.member-form input,
.member-form select {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 8px 11px;
    border: 1px solid #ccd5dc;
    border-radius: 6px;
    background: #fff;
}

.member-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.wallet-intro {
    padding: 22px;
    border: 1px solid #e3e9ed;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff 0%, #f7fafb 100%);
}

.wallet-intro h3 {
    margin: 0 0 10px;
    color: #253d52;
}

.wallet-fee {
    display: inline-block;
    margin: 12px 0 20px;
    padding: 9px 14px;
    color: #8d3d1f;
    border-radius: 7px;
    background: #fff0e8;
    font-weight: 700;
}

.wallet-status {
    padding: 28px;
    text-align: center;
    border: 1px solid #e2e8ec;
    border-radius: 10px;
    background: #f9fbfc;
}

.wallet-status i {
    display: block;
    margin-bottom: 12px;
    color: #3e8e61;
    font-size: 40px;
}

.wallet-status h3 {
    margin: 0 0 8px;
    color: #253d52;
}

.wallet-form-wrap {
    display: none;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e4e9ed;
}

.wallet-form-wrap.open {
    display: block;
}

.wallet-help {
    margin-top: 6px;
    color: #7b8790;
    font-size: 12px;
}

.trust-member-field {
    display: none;
}

.wallet-heading,
.wallet-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.wallet-heading h3,
.wallet-heading p,
.wallet-section-title h4 {
    margin: 0;
}

.wallet-heading p {
    margin-top: 5px;
    color: #7b8790;
    font-size: 13px;
}

.wallet-active-badge {
    padding: 7px 11px;
    color: #277448;
    border-radius: 20px;
    background: #e8f7ee;
    font-size: 13px;
    font-weight: 700;
}

.wallet-balance-grid,
.wallet-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.wallet-balance-card,
.wallet-action-card {
    padding: 20px;
    border: 1px solid #e1e7eb;
    border-radius: 10px;
    background: #fff;
}

.wallet-balance-card.primary {
    color: #fff;
    border-color: #253d52;
    background: linear-gradient(135deg, #253d52, #3c6078);
}

.wallet-balance-card.muted {
    background: #f7f9fa;
}

.wallet-balance-card > span,
.wallet-balance-card > strong,
.wallet-balance-card > small {
    display: block;
}

.wallet-balance-card > span {
    margin-bottom: 8px;
    font-size: 13px;
    opacity: .82;
}

.wallet-balance-card > strong {
    font-size: 27px;
    line-height: 1.25;
}

.wallet-balance-card .wallet-balance-type {
    display: inline;
    font-size: 14px;
    font-weight: 700;
    vertical-align: baseline;
}

.wallet-balance-card > small {
    min-height: 18px;
    margin-top: 3px;
}

.wallet-balance-card a {
    display: inline-block;
    margin-top: 15px;
    color: #b34d27;
    font-weight: 600;
}

.wallet-balance-card.primary a {
    color: #fff;
}

.wallet-action-card h4 {
    margin: 0 0 7px;
    color: #fff;
}

.wallet-action-card p {
    min-height: 40px;
    margin-bottom: 15px;
    color: #6f7c86;
    font-size: 13px;
}

.wallet-action-card .field {
    margin-bottom: 12px;
}

.wallet-recent {
    margin-top: 8px;
}

.wallet-table-wrap {
    overflow-x: auto;
    border: 1px solid #e1e7eb;
    border-radius: 8px;
}

.wallet-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.wallet-table th,
.wallet-table td {
    padding: 11px 13px;
    border-bottom: 1px solid #edf0f2;
    text-align: left;
    font-size: 13px;
}

.wallet-table th {
    color: #526371;
    background: #f6f8f9;
    font-weight: 700;
}

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

.wallet-recent .wallet-table tr.payment-success {
    background: #eaf7ef;
}

.wallet-recent .wallet-table tr.payment-failed {
    background: #fdecec;
}

.wallet-table .amount {
    text-align: right;
    white-space: nowrap;
}

.wallet-empty {
    padding: 22px !important;
    color: #7b8790;
    text-align: center !important;
}

.wallet-ledger-filter {
    margin: 18px 0;
}

.wallet-filter-action {
    align-self: flex-end;
}

.wallet-ledger-summary {
    margin-bottom: 12px;
    text-align: right;
}

.donation-payment-method .donation-payment-title {
    margin-bottom: 10px;
    color: #253d52;
    font-size: 15px;
    font-weight: 600;
}

.donation-payment-method select.browser-default {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	padding: 7px 10px;
	color: #394956;
	border: 1px solid #ccd5dc;
	border-radius: 5px;
	background: #fff;
	font-size: 15px;
}

@media screen and (max-width: 766px) {
    .member-dashboard {
        padding: 24px 16px;
    }

    .member-dashboard .db-l,
    .member-dashboard .db-2 {
        width: 100%;
        margin: 12px 0;
    }

    .member-toolbar,
    .guest-card,
    .member-form .field-row {
        align-items: stretch;
        flex-direction: column;
    }

    .guest-actions {
        justify-content: flex-start;
    }

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