/*
 * ============================================================
 * MATRIXPRO WALLET
 * ============================================================
 */

.matrixpro-wallet-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ------------------------------------------------------------
   Header
------------------------------------------------------------ */

.matrixpro-wallet-header {
    margin-bottom: 30px;
}

.matrixpro-wallet-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.matrixpro-wallet-header p {
    margin: 0;
    opacity: 0.7;
    font-size: 15px;
}


/* ------------------------------------------------------------
   Balance Cards
------------------------------------------------------------ */

.matrixpro-wallet-balances {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.matrixpro-wallet-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}

.matrixpro-wallet-card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: #f3f6f8;
}

.matrixpro-wallet-card-icon i {
    font-size: 26px;
    width: 26px;
    height: 26px;
}

.matrixpro-wallet-card-content {
    display: flex;
    flex-direction: column;
}

.matrixpro-wallet-card-label {
    font-size: 13px;
    margin-bottom: 6px;
    opacity: 0.65;
}

.matrixpro-wallet-card-amount {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 5px;
}

.matrixpro-wallet-card-content small {
    font-size: 12px;
    opacity: 0.55;
}


/* ------------------------------------------------------------
   Actions
------------------------------------------------------------ */

.matrixpro-wallet-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.matrixpro-wallet-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 48px;
    padding: 0 25px;

    border: 0;
    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}

.matrixpro-wallet-action i {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

.matrixpro-wallet-deposit {
    background: #82b440;
    color: #ffffff;
}

.matrixpro-wallet-deposit:hover {
    background: #5a99f3;
    color: #ffffff;
}

.matrixpro-wallet-withdraw {
    background: #f1f1f1;
    color: #222222;
}

.matrixpro-wallet-withdraw:hover {
    background: #5a99f3;
    color:#fff;
}


/* ------------------------------------------------------------
   Disabled Buttons
------------------------------------------------------------ */

.matrixpro-wallet-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}


/* ------------------------------------------------------------
   Notice
------------------------------------------------------------ */

.matrixpro-wallet-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 20px;

    border-radius: 10px;
    background: #f7f9fa;
    border: 1px solid #e5e9eb;
}

.matrixpro-wallet-notice > .dashicons {
    margin-top: 2px;
    font-size: 21px;
}

.matrixpro-wallet-notice strong {
    display: block;
    margin-bottom: 5px;
}

.matrixpro-wallet-notice p {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
}


/*
 * ============================================================
 * DEPOSIT PANEL
 * ============================================================
 */

.matrixpro-wallet-panel {
    margin-top: 25px;
    padding: 30px;

    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 12px;

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}

.matrixpro-wallet-panel-header {
    margin-bottom: 25px;
}

.matrixpro-wallet-panel-header h3 {
    margin: 0 0 7px;
    font-size: 21px;
}

.matrixpro-wallet-panel-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.65;
}


/*
 * Form
 */

.matrixpro-wallet-form-row {
    margin-bottom: 25px;
}

.matrixpro-wallet-form-row > label {
    display: block;
    margin-bottom: 9px;

    font-size: 14px;
    font-weight: 600;
}

.matrixpro-wallet-form-row input[type="number"] {
    width: 100%;
    max-width: 450px;

    height: 48px;
    padding: 0 15px;

    border: 1px solid #dcdcdc;
    border-radius: 7px;

    font-size: 15px;

    box-sizing: border-box;
}


/*
 * Payment Methods
 */

.matrixpro-wallet-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.matrixpro-wallet-payment-option {
    position: relative;

    display: block;

    cursor: pointer;
}

.matrixpro-wallet-payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.matrixpro-wallet-payment-option-content {
    display: flex;
    flex-direction: column;

    min-height: 120px;
    padding: 22px;

    border: 2px solid #e4e4e4;
    border-radius: 10px;

    transition: all 0.2s ease;
}

.matrixpro-wallet-payment-option-content i {
    margin-bottom: 14px;

    font-size: 24px;
}

.matrixpro-wallet-payment-option-content strong {
    margin-bottom: 6px;

    font-size: 15px;
}

.matrixpro-wallet-payment-option-content small {
    font-size: 12px;
    line-height: 1.5;

    opacity: 0.65;
}


/*
 * Selected payment method
 */

.matrixpro-wallet-payment-option input:checked
+ .matrixpro-wallet-payment-option-content {
    border-color: #006198;
    background: #f5faff;
}


/*
 * Form Buttons
 */

.matrixpro-wallet-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.matrixpro-wallet-submit,
.matrixpro-wallet-cancel {
    min-height: 46px;
    padding: 0 24px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.matrixpro-wallet-submit {
    border: 0;
    background: #006198;
    color: #ffffff;
}

.matrixpro-wallet-submit:hover {
    background: #004e7a;
    color: #ffffff;
}

.matrixpro-wallet-cancel {
    border: 1px solid #ddd;
    background: #ffffff;
    color: #333333;
}

.matrixpro-wallet-cancel:hover {
    background: #f5f5f5;
}

/*
 * ============================================================
 * WITHDRAWAL FORM
 * ============================================================
 */

.matrixpro-wallet-withdraw-panel {
    margin-top: 25px;
}


/*
 * Available balance text
 */

.matrixpro-wallet-panel-header p {
    margin-top: 5px;
}


/*
 * Field help
 */

.matrixpro-wallet-field-help {
    display: block;
    margin-top: 7px;

    font-size: 12px;
    opacity: 0.6;
}


/*
 * Bank details
 */

.matrixpro-wallet-bank-details {
    margin-top: 30px;
    padding-top: 25px;

    border-top: 1px solid #e7e7e7;
}

.matrixpro-wallet-bank-details h4 {
    margin: 0 0 20px;

    font-size: 17px;
}


/*
 * Form grid
 */

.matrixpro-wallet-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
}


/*
 * Inputs
 */

.matrixpro-wallet-withdraw-form input[type="text"],
.matrixpro-wallet-withdraw-form input[type="number"],
.matrixpro-wallet-withdraw-form select {

    width: 100%;
    height: 48px;

    padding: 0 15px;

    box-sizing: border-box;

    border: 1px solid #dcdcdc;
    border-radius: 7px;

    background: #ffffff;

    font-size: 14px;
}

/*
 * ============================================================
 * TRANSACTION HISTORY
 * ============================================================
 */

.matrixpro-wallet-transactions {
    margin-top: 30px;
    background: #ffffff;
    border: 1px solid #e8ebee;
    border-radius: 14px;
    overflow: hidden;
}


/*
 * Header
 */

.matrixpro-wallet-transactions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 24px 28px;

    border-bottom: 1px solid #edf0f2;
}

.matrixpro-wallet-transactions-header h3 {
    margin: 0 0 5px;

    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.matrixpro-wallet-transactions-header p {
    margin: 0;

    color: #7a858d;
    font-size: 13px;
}


/*
 * Table wrapper
 */

.matrixpro-wallet-table-wrapper {
    width: 100%;
    overflow-x: auto;
}


/*
 * Table
 */

.matrixpro-wallet-transactions-table {
    width: 100%;
    min-width: 850px;

    margin: 0;

    border: 0;
    border-collapse: collapse;
    border-spacing: 0;

    table-layout: fixed;
}

/*
 * Header row
 */

.matrixpro-wallet-transactions-table thead {
    background: #f7f9fa;
}

.matrixpro-wallet-transactions-table th {
    padding: 13px 22px;

    border: 0;
    border-bottom: 1px solid #edf0f2;

    color: #30383e;
    background: #f7f9fa;
    
    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    text-align: left;

    white-space: nowrap;
}


/*
 * Body cells
 */
 
 .matrixpro-wallet-transactions-table th:nth-child(1),
.matrixpro-wallet-transactions-table td:nth-child(1) {
    width: 13%;
}

.matrixpro-wallet-transactions-table th:nth-child(2),
.matrixpro-wallet-transactions-table td:nth-child(2) {
    width: 18%;
}

.matrixpro-wallet-transactions-table th:nth-child(3),
.matrixpro-wallet-transactions-table td:nth-child(3) {
    width: 12%;
}

.matrixpro-wallet-transactions-table th:nth-child(4),
.matrixpro-wallet-transactions-table td:nth-child(4) {
    width: 13%;
}

.matrixpro-wallet-transactions-table th:nth-child(5),
.matrixpro-wallet-transactions-table td:nth-child(5) {
    width: 16%;
}

.matrixpro-wallet-transactions-table th:nth-child(6),
.matrixpro-wallet-transactions-table td:nth-child(6) {
    width: 28%;
}

.matrixpro-wallet-transactions-table td {
    padding: 17px 22px;

    border: 0;
    border-bottom: 1px solid #f0f2f4;

    color: #30383e;

    font-size: 13px;

    vertical-align: middle;
}

.matrixpro-wallet-transactions-table tbody tr:last-child td {
    border-bottom: 0;
}


/*
 * Row hover
 */

.matrixpro-wallet-transactions-table tbody tr {
    transition: background 0.15s ease;
    background:#fff;
}

.matrixpro-wallet-transactions-table tbody tr:hover {
    background: #fafcfd;
}


/*
 * Date
 */

.matrixpro-wallet-transactions-table td:first-child {
    color: #3e474e;
    font-weight: 500;
    white-space: nowrap;
}

.matrixpro-wallet-transactions-table td:first-child small {
    display: block;

    margin-top: 3px;

    color: #9aa2a8;

    font-size: 11px;
    font-weight: 400;
}


/*
 * Description
 */

.matrixpro-wallet-transactions-table td:nth-child(2) {
    min-width: 190px;

    color: #30383e;
    font-weight: 500;
}


/*
 * Transaction type
 */

.matrixpro-wallet-type {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    border: 1px solid #e6eaed;
    border-radius: 20px;

    background: #f8f9fa;

    color: #68737b;

    font-size: 11px;
    font-weight: 500;

    white-space: nowrap;
}


/*
 * Amount
 */

.matrixpro-wallet-credit,
.matrixpro-wallet-debit {
    font-size: 14px !important;
    font-weight: 600 !important;

    white-space: nowrap;
}

.matrixpro-wallet-credit {
    color: #16804b !important;
}

.matrixpro-wallet-debit {
    color: #c64a42 !important;
}


/*
 * Status
 */

.matrixpro-wallet-status {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 600;

    line-height: 1;
}


/*
 * Pending
 */

.matrixpro-wallet-status-pending {
    background: #fff7df;
    color: #9a7100;
}


/*
 * Completed
 */

.matrixpro-wallet-status-completed {
    background: #eaf7ef;
    color: #217a48;
}


/*
 * Rejected
 */

.matrixpro-wallet-status-rejected {
    background: #fcedec;
    color: #b33d36;
}


/*
 * Reference
 */

.matrixpro-wallet-reference {
    color: #8b959c !important;

    font-family: monospace;
    font-size: 11px !important;

    white-space: normal !important;

    overflow-wrap: anywhere;
    word-break: break-word;

    max-width: 150px;
}

/*
 * Empty state
 */

.matrixpro-wallet-empty {
    padding: 65px 25px;

    text-align: center;
}

.matrixpro-wallet-empty > .fa {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin-bottom: 15px;

    border-radius: 50%;

    background: #f4f7f9;

    color: #7d8991;

    font-size: 20px;
}

.matrixpro-wallet-empty h4 {
    margin: 0 0 7px;

    color: #30383e;

    font-size: 17px;
    font-weight: 600;
}

.matrixpro-wallet-empty p {
    max-width: 500px;

    margin: 0 auto;

    color: #89939a;

    font-size: 13px;
    line-height: 1.6;
}


/*
 * Pagination
 */

.matrixpro-wallet-pagination {
    padding: 18px 25px;

    border-top: 1px solid #edf0f2;
}

.matrixpro-wallet-pagination ul {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 5px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.matrixpro-wallet-pagination li {
    margin: 0;
}

.matrixpro-wallet-pagination a,
.matrixpro-wallet-pagination span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 32px;
    height: 32px;

    padding: 0 9px;

    border: 1px solid #e1e5e8;
    border-radius: 6px;

    background: #ffffff;

    color: #66727a;

    font-size: 11px;

    text-decoration: none;

    transition: all 0.15s ease;
}

.matrixpro-wallet-pagination a:hover {
    border-color: #006198;

    color: #006198;

    background: #f7fbfd;
}

.matrixpro-wallet-pagination .current {
    border-color: #006198;

    background: #006198;

    color: #ffffff;
}

/* wallet eft deposit instructions */
.matrixpro-wallet-eft-confirmation{
    padding: 25px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
    margin-bottom:25px;
}

.matrixpro-wallet-eft-icon i {
    color:#82b440;
    font-size:18px;
}

.matrixpro-wallet-eft-notice i{
    color:#5a99f3;
    font-size:18px;
}

.matrixpro-wallet-eft-actions {
    margin-top: 20px;
    text-align: right;
}

.matrixpro-wallet-cancel-deposit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 0;
    border-radius: 5px;
    background: #dc3545;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.matrixpro-wallet-cancel-deposit i {
    color: #fff;
}

.matrixpro-wallet-cancel-deposit:hover {
    background: #b02a37;
    color: #fff;
}

.matrixpro-wallet-cancel-deposit:hover i {
    color: #fff;
}

.matrixpro-wallet-status-cancelled {
    background: #6c757d;
    color: #fff;
}


/* ------------------------------------------------------------
   Mobile
------------------------------------------------------------ */

@media (max-width: 900px) {

    .matrixpro-wallet-balances {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .matrixpro-wallet-page {
        width: 100%;
    }

    .matrixpro-wallet-actions {
        flex-direction: column;
    }

    .matrixpro-wallet-action {
        width: 100%;
    }

    .matrixpro-wallet-card {
        padding: 20px;
    }

    .matrixpro-wallet-card-amount {
        font-size: 22px;
    }

}

@media (max-width: 700px) {

    .matrixpro-wallet-payment-methods {
        grid-template-columns: 1fr;
    }

    .matrixpro-wallet-panel {
        padding: 20px;
    }

    .matrixpro-wallet-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .matrixpro-wallet-submit,
    .matrixpro-wallet-cancel {
        width: 100%;
    }

}

@media (max-width: 700px) {

    .matrixpro-wallet-form-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .matrixpro-wallet-transactions-header {
        padding: 20px;
    }

    .matrixpro-wallet-table-wrapper {
        overflow: visible;
    }

    .matrixpro-wallet-transactions-table {
        min-width: 0;
    }

    .matrixpro-wallet-transactions-table thead {
        display: none;
    }

    .matrixpro-wallet-transactions-table,
    .matrixpro-wallet-transactions-table tbody,
    .matrixpro-wallet-transactions-table tr,
    .matrixpro-wallet-transactions-table td {
        display: block;

        width: 100%;

        box-sizing: border-box;
    }

    .matrixpro-wallet-transactions-table tr {
        padding: 18px 20px;

        border-bottom: 1px solid #edf0f2;
    }

    .matrixpro-wallet-transactions-table tr:last-child {
        border-bottom: 0;
    }

    .matrixpro-wallet-transactions-table td {
        display: flex;

        align-items: center;
        justify-content: space-between;

        gap: 20px;

        padding: 7px 0;

        border: 0;

        font-size: 13px;

        text-align: right;
    }

    .matrixpro-wallet-transactions-table td::before {
        content: attr(data-label);

        flex-shrink: 0;

        color: #929ba1;

        font-size: 10px;
        font-weight: 600;

        letter-spacing: 0.04em;
        text-transform: uppercase;

        text-align: left;
    }

    .matrixpro-wallet-transactions-table td:first-child {
        padding-top: 0;
    }

    .matrixpro-wallet-transactions-table td:last-child {
        padding-bottom: 0;
    }

    .matrixpro-wallet-transactions-table td:first-child small {
        text-align: right;
    }

    .matrixpro-wallet-pagination {
        padding: 18px 15px;
    }

    .matrixpro-wallet-pagination ul {
        justify-content: center;
    }

}
