.ai-wallet-bar {
    direction: rtl;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid rgba(13, 124, 102, .2);
    border-radius: 20px;
    color: #15352f;
    background: linear-gradient(135deg, rgba(224, 246, 240, .96), rgba(255, 255, 255, .98));
    box-shadow: 0 12px 34px rgba(29, 74, 64, .08);
    font-family: inherit;
}

.ai-wallet-bar.is-low {
    border-color: rgba(224, 104, 61, .28);
    background: linear-gradient(135deg, #fff3ec, #fff);
}

.ai-wallet-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #fff;
    background: #0d7c66;
    font-size: 13px;
    font-weight: 800;
}

.ai-wallet-bar.is-low .ai-wallet-icon {
    background: #e0683d;
}

.ai-wallet-copy {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.ai-wallet-copy span {
    color: #68817b;
    font-size: 12px;
}

.ai-wallet-copy strong {
    font-size: 18px;
}

.ai-wallet-copy small {
    flex-basis: 100%;
    overflow: hidden;
    color: #71827e;
    font-size: 11px;
    line-height: 1.8;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-wallet-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 13px;
    color: #fff !important;
    background: #e0683d;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

.ai-wallet-action.secondary {
    color: #0d7c66 !important;
    background: rgba(13, 124, 102, .1);
}

.ai-wallet-compact {
    display: none;
}

.ai-wallet-mobile-source {
    width: 100%;
}

.vs-main > .ai-wallet-bar,
.sm-main > .ai-wallet-bar {
    width: auto;
    margin: 16px 24px 6px;
}

.wallet-custom-charge {
    width: 100%;
    max-width: 760px;
    margin: 22px auto 0;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .ai-wallet-mobile-source {
        display: none !important;
    }

    .ai-wallet-compact {
        direction: rtl;
        min-width: 84px;
        min-height: 40px;
        box-sizing: border-box;
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 6px 8px;
        color: #0d6f5d !important;
        background: #eff9f6;
        border: 1px solid rgba(13, 124, 102, .2);
        border-radius: 13px;
        box-shadow: none;
        font-family: inherit;
        text-decoration: none !important;
        white-space: nowrap;
    }

    .ai-wallet-compact.is-low {
        color: #c9532b !important;
        background: #fff3ed;
        border-color: rgba(224, 104, 61, .28);
    }

    .ai-wallet-compact span {
        font-size: 9px;
        font-weight: 700;
    }

    .ai-wallet-compact strong {
        font-size: 12px;
        font-weight: 900;
    }

    .ai-wallet-compact i {
        width: 19px;
        height: 19px;
        display: grid;
        place-items: center;
        color: #fff;
        background: #0d7c66;
        border-radius: 7px;
        font-size: 15px;
        font-style: normal;
        font-weight: 900;
        line-height: 1;
    }

    .ai-wallet-compact.is-low i {
        background: #e0683d;
    }

    .ai-wallet-bar {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 14px;
        padding: 12px;
        border-radius: 17px;
    }

    .ai-wallet-icon {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .ai-wallet-copy strong {
        font-size: 15px;
    }

    .ai-wallet-copy small {
        white-space: normal;
    }

    .ai-wallet-action {
        grid-column: 1 / -1;
        min-height: 40px;
        width: 100%;
    }

    .vs-main > .ai-wallet-bar,
    .sm-main > .ai-wallet-bar {
        margin: 10px 12px 4px;
    }
}

@media (max-width: 390px) {
    .ai-wallet-compact {
        min-width: 64px;
        padding-inline: 6px;
    }

    .ai-wallet-compact span {
        display: none;
    }
}
