/* Vanguard Buy Now - Styles */

/* Purchase Options Container */
.vanguard-purchase-options {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}

/* Vendor Info */
.vanguard-vendor-info {
    margin-bottom: 12px;
    font-size: 14px;
}

.vanguard-vendor-info .vendor-label {
    color: #666;
    margin-right: 5px;
}

.vanguard-vendor-info .vendor-name {
    font-weight: 600;
    color: #333;
}

/* Listing Type Badge and Description */
.vanguard-listing-type-badge {
    margin-bottom: 15px;
}

.vanguard-listing-type-badge .listing-type-desc {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #666;
}

/* Action Buttons Container */
.vanguard-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Buy Now Button */
.vanguard-buy-now-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background: #4CAF50;
    color: white !important;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: background 0.2s ease;
}

.vanguard-buy-now-btn:hover {
    background: #43A047;
    color: white !important;
}

.vanguard-buy-now-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.vanguard-buy-now-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Trade Button */
.vanguard-trade-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid #2196F3;
    border-radius: 4px;
    background: transparent;
    color: #2196F3 !important;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.vanguard-trade-btn:hover {
    background: #2196F3;
    color: white !important;
    text-decoration: none;
}

/* Listing Type Badges */
.vanguard-listing-type-badge .badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vanguard-listing-type-badge .badge.trade-only {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}

.vanguard-listing-type-badge .badge.sale-only {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.vanguard-listing-type-badge .badge.trade-and-sell {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFCC80;
}

/* Own Product Notice */
.vanguard-own-product {
    color: #666;
    font-style: italic;
    padding: 10px 0;
}

/* Out of Stock Notice */
.vanguard-out-of-stock {
    color: #c62828;
    font-weight: 500;
    padding: 10px 0;
}

/* Cart Labels */
.vanguard-cart-label {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.vanguard-cart-label.purchase {
    background: #4CAF50;
    color: white;
}

.vanguard-cart-label.trade {
    background: #2196F3;
    color: white;
}

/* Dokan Form Styling */
.dokan-form-group #vanguard_listing_type {
    width: 100%;
    max-width: 300px;
}

.dokan-form-group .dokan-form-help {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* Vendor Product List Column */
.listing-type-trade_only {
    color: #1565C0;
}

.listing-type-sale_only {
    color: #2E7D32;
}

.listing-type-trade_and_sell {
    color: #E65100;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .vanguard-purchase-options {
        text-align: center;
    }
    
    .vanguard-buy-now-btn,
    .vanguard-trade-btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

/* Success/Error Messages */
.vanguard-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 10px;
}

.vanguard-message.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.vanguard-message.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}
