/* 📌 استایل دسکتاپ (اصلی) */
.cgw-credit-box {
    margin: 10px 0px 20px 0px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cgw-loading-gif {
    width: 24px;
    height: 24px;
}

.cgw-credit-title {
    padding: 12px 18px;
    font-size: 15px;
    font-weight: bold;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cgw-credit-title .cgw-title-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-left: 10px;
}

.cgw-credit-rows {
    display: flex;
    flex-direction: column;
}

.cgw-credit-variation .cgw-acr-icon {
    width: 19px;
    height: 19px;
    object-fit: contain;
    opacity: 0.8;
}

.cgw-credit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid #f5f5f5;
    min-height: 80px;
}

.cgw-credit-row:last-child {
    border-bottom: none;
}

.cgw-credit-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cgw-credit-name {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.cgw-credit-gateway {
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

.cgw-credit-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cgw-credit-price-stock {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    align-items: center;
    gap: 0px;
    min-width: 150px;
}

.cgw-credit-variation {
    font-size: 14px;
    color: #444;
    text-align: center;
    margin-left: 180px;
    font-weight: 600;
    flex: 1;
}

.cgw-credit-price {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin: 0px 0px -5px 0px;
}

.cgw-add-to-cart.cgw-disabled {
    background-color: #555 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.cgw-credit-action button {
    background: #1a3d7c;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cgw-credit-action button:hover {
    background: #0f2c5c;
}

.cgw-credit-stock {
    font-size: 13px;
    color: #d32f2f;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0px;
    font-weight: 600;
}

.cgw-credit-stock .cgw-stock-icon {
    width: 18px;
    height: 18px;
}

.cgw-credit-right button {
    background: #1a3d7c;
    color: #fff;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.cgw-credit-right button:hover {
    background: #0f2c5c;
}

.cgw-credit-status {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 300px;
}

.cgw-credit-status .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.cgw-credit-status .dot.green {
    background-color: #28a745;
}

.cgw-credit-status .dot.gray {
    background-color: #6c757d;
}

.cgw-credit-status,
.cgw-credit-variation,
.cgw-credit-price-stock,
.cgw-credit-action {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 📱 استایل موبایل */
@media (max-width: 768px) {
    .cgw-credit-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }

    .cgw-credit-left {
        width: 100%;
    }

    .cgw-credit-name {
        font-size: 16px;
    }

    .cgw-credit-gateway {
        font-size: 12px;
    }

    .cgw-credit-right {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
    }

    .cgw-credit-status {
        min-width: auto;
        font-size: 12px;
        order: 1;
    }

    .cgw-credit-variation {
        margin-left: 0;
        text-align: left;
        font-size: 13px;
        order: 2;
    }

    .cgw-credit-price-stock {
        align-items: flex-end;
        font-size: 14px;
        order: 3;
    }

    .cgw-credit-price {
        font-size: 18px;
        margin-bottom: 0px;
    }

    .cgw-credit-action {
        width: 100%;
        order: 4;
    }

    .cgw-credit-action button {
        width: 100%;
        font-size: 15px;
        padding: 12px;
    }

    .cgw-credit-title {
        font-size: 14px;
        padding: 10px 12px;
        gap: 6px;
    }

    .cgw-credit-title .cgw-title-icon {
        width: 18px;
        height: 18px;
    }
}