/* BUNFILE payout page v4 - isolated contract */

.bun-payout-page {
    --bp-accent: #109bb2;
    --bp-accent-dark: #087c91;
    --bp-blue: #2f7df4;
    --bp-green: #18a566;
    --bp-red: #dc3545;
    --bp-navy: #13213a;
    --bp-muted: #708097;
    --bp-line: #e1e8f0;
    width: min(1180px, calc(100% - 40px));
    margin: 32px auto 64px;
    color: var(--bp-navy);
}

.bun-payout-page *,
.bun-payout-page *::before,
.bun-payout-page *::after {
    box-sizing: border-box;
}

.bun-payout-heading {
    display: flex;
    margin-bottom: 22px;
    align-items: flex-end;
    justify-content: space-between;
}

.bun-payout-eyebrow {
    color: var(--bp-accent);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.bun-payout-heading h1 {
    margin: 5px 0 4px;
    color: var(--bp-navy);
    font-size: 30px;
    line-height: 1.15;
}

.bun-payout-heading p,
.bun-payout-history-heading p {
    margin: 0;
    color: var(--bp-muted);
    font-size: 14px;
}

.bun-payout-account-link {
    padding: 9px 14px;
    color: var(--bp-accent-dark);
    background: #fff;
    border: 1px solid #b9dfe5;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.bun-payout-card,
.bun-payout-history {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(23, 43, 77, .06);
}

.bun-payout-card {
    width: min(100%, 760px);
    margin: 0 auto 28px;
}

.bun-payout-balance {
    display: flex;
    padding: 32px 28px 28px;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: linear-gradient(145deg, #f3fbfc, #f7faff);
    border-bottom: 1px solid var(--bp-line);
}

.bun-payout-balance-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    align-items: center;
    justify-content: center;
    color: var(--bp-blue);
    background: #eaf2ff;
    border-radius: 14px;
}

.bun-payout-balance>span:not(.bun-payout-balance-icon) {
    color: var(--bp-muted);
    font-size: 13px;
    font-weight: 600;
}

.bun-payout-balance>strong {
    margin: 3px 0 6px;
    color: var(--bp-navy);
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.bun-payout-balance small {
    color: var(--bp-muted);
    font-size: 13px;
}

.bun-payout-convert,
.bun-payout-request {
    padding: 24px 28px;
}

.bun-payout-convert {
    border-bottom: 1px solid var(--bp-line);
}

.bun-payout-section-title h2,
.bun-payout-history-heading h2 {
    margin: 0 0 4px;
    color: var(--bp-navy);
    font-size: 17px;
}

.bun-payout-section-title p {
    margin: 0;
    color: var(--bp-muted);
    font-size: 13px;
}

.bun-payout-convert-actions {
    display: grid;
    margin-top: 17px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bun-payout-secondary {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    color: #344054;
    text-align: center;
    background: #fff;
    border: 1px solid #d5dee8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: normal;
}

.bun-payout-secondary:not(:disabled):hover {
    color: var(--bp-accent-dark);
    background: #f1fbfc;
    border-color: #8bcfd9;
}

.bun-payout-secondary:disabled,
.bun-payout-primary:disabled {
    cursor: not-allowed;
    opacity: .52;
}

.bun-payout-request {
    text-align: center;
}

.bun-payout-primary {
    display: inline-flex;
    min-width: 330px;
    min-height: 52px;
    padding: 12px 24px;
    gap: 9px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--bp-accent), #18abc3);
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(16, 155, 178, .22);
}

.bun-payout-primary:not(:disabled):hover {
    background: var(--bp-accent-dark);
}

.bun-payout-minimum {
    margin: 15px 0 0;
    color: #8b5e20;
    font-size: 13px;
}

.bun-payout-pending {
    display: flex;
    margin-top: 17px;
    padding: 11px 14px;
    align-items: center;
    justify-content: space-between;
    color: #7c5917;
    background: #fff8e8;
    border: 1px solid #f5dfae;
    border-radius: 9px;
    font-size: 13px;
}

.bun-payout-history-heading {
    padding: 20px 24px;
    border-bottom: 1px solid var(--bp-line);
}

.bun-payout-history .table-responsive {
    overflow-x: auto;
}

.bun-payout-history .table {
    width: 100%;
    margin: 0;
}

.bun-payout-history th,
.bun-payout-history td {
    padding: 14px 18px;
    border-color: #edf1f5;
    font-size: 13px;
    vertical-align: middle;
}

.bun-payout-history th {
    color: #667085;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 650;
}

.bun-payout-amount {
    color: var(--bp-navy);
    font-weight: 700;
}

.bun-payout-status {
    display: inline-flex;
    padding: 5px 9px;
    color: #7c5917;
    background: #fff5db;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.bun-payout-empty {
    padding: 28px;
    color: var(--bp-muted);
    text-align: center;
}

@media (max-width: 767.98px) {
    .bun-payout-page {
        width: min(100% - 20px, 1180px);
        margin-top: 20px;
    }
    .bun-payout-heading {
        gap: 14px;
        align-items: flex-start;
        flex-direction: column;
    }
    .bun-payout-convert-actions {
        grid-template-columns: 1fr;
    }
    .bun-payout-primary {
        width: 100%;
        min-width: 0;
    }
    .bun-payout-convert,
    .bun-payout-request {
        padding: 20px 16px;
    }
}