/**
 * AlphaWeb Pricing Styles
 * Custom pricing display for individual and business customers
 */

/* Override for custom price display */
.alphaweb-custom-price {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Product page pricing */
.alphaweb-business-price, 
.alphaweb-individual-price {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.alphaweb-business-price {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
}

.alphaweb-individual-price {
    border-color: #007bff;
    background: linear-gradient(135deg, #d1ecf1 0%, #e3f2fd 100%);
}

.alphaweb-business-price .business-price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

.alphaweb-individual-price .individual-price {
    color: #007bff;
    font-weight: bold;
    font-size: 1.2em;
}

.alphaweb-business-price .label, 
.alphaweb-individual-price .label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Shop loop pricing */
.alphaweb-loop-business-price, 
.alphaweb-loop-individual-price {
    margin: 8px 0;
    padding: 5px 10px;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    display: inline-block;
}

.alphaweb-loop-business-price .business-price {
    color: #28a745;
    font-weight: 600;
    font-size: 0.95em;
}

.alphaweb-loop-individual-price .individual-price {
    color: #007bff;
    font-weight: 600;
    font-size: 0.95em;
}

/* Cart pricing */
.woocommerce-cart-form .product-price .alphaweb-price {
    font-weight: bold;
    color: #333;
}

.woocommerce-cart-form .product-subtotal .alphaweb-subtotal {
    font-weight: bold;
    color: #333;
}

/* Checkout pricing info */
.alphaweb-checkout-info {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.alphaweb-checkout-info p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.alphaweb-checkout-info strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.alphaweb-checkout-info.business-pricing {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
}

.alphaweb-checkout-info.business-pricing strong {
    color: #28a745;
}

.alphaweb-checkout-info.individual-pricing {
    border-color: #007bff;
    background: linear-gradient(135deg, #d1ecf1 0%, #e3f2fd 100%);
}

.alphaweb-checkout-info.individual-pricing strong {
    color: #007bff;
}

/* Price badge */
.alphaweb-price-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.alphaweb-price-badge.business {
    background: #28a745;
    color: white;
}

.alphaweb-price-badge.individual {
    background: #007bff;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alphaweb-business-price, 
    .alphaweb-individual-price {
        padding: 10px;
        margin: 10px 0;
    }
    
    .alphaweb-business-price .business-price,
    .alphaweb-individual-price .individual-price {
        font-size: 1.1em;
    }
    
    .alphaweb-checkout-info {
        padding: 12px;
        margin: 12px 0;
    }
}

/* Order details pricing */
.woocommerce-order-details .alphaweb-order-price {
    font-weight: 600;
}

.woocommerce-order-details .alphaweb-customer-type {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

/* Admin order pricing indicator */
.alphaweb-admin-price-indicator {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 5px;
}

.alphaweb-admin-price-indicator.business {
    background: #d4edda;
    color: #28a745;
}

.alphaweb-admin-price-indicator.individual {
    background: #d1ecf1;
    color: #007bff;
}

/* Buy X Get Y Free - Free Items Label */
.alphaweb-free-items-label {
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    border: 2px solid #28a745;
    border-radius: 6px;
    display: inline-block;
    font-size: 0.9em;
    line-height: 1.5;
}

.alphaweb-free-items-label .free-items-info {
    color: #155724;
    font-weight: 600;
    margin-right: 6px;
}

.alphaweb-free-items-label .free-items-badge {
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1em;
    margin: 0 6px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.alphaweb-free-items-label .free-items-offer {
    color: #155724;
    font-size: 0.85em;
    font-style: italic;
    margin-left: 6px;
}

/* Cart table - Free items label styling */
.woocommerce-cart-form .alphaweb-free-items-label,
.cart-table .alphaweb-free-items-label,
.cart-item-luxury .alphaweb-free-items-label {
    display: block;
    margin-top: 10px;
    clear: both;
}

.product-name .alphaweb-free-items-label,
.cart-product-details .alphaweb-free-items-label,
.product-details-luxury .alphaweb-free-items-label {
    display: block;
    margin-top: 10px;
}

/* Mini cart - Free items label */
.woocommerce-mini-cart-item .alphaweb-free-items-label {
    margin-top: 5px;
    font-size: 0.85em;
    padding: 5px 8px;
}

/* Checkout - Free items label */
.woocommerce-checkout-review-order-table .alphaweb-free-items-label {
    margin-top: 5px;
    font-size: 0.85em;
    padding: 5px 8px;
}

/* Buy X Get Y Free - Subtotal Styling */
.alphaweb-subtotal-wrapper {
    display: block;
}

.alphaweb-paid-subtotal {
    display: block;
    font-weight: 700;
    font-size: 1.1em;
    color: #0e2954;
    margin-bottom: 5px;
}

.alphaweb-free-subtotal-label {
    margin-top: 5px;
    font-size: 0.85em;
}

.alphaweb-free-subtotal-label .free-subtotal-badge {
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    margin-right: 5px;
}

.alphaweb-free-subtotal-label .free-subtotal-offer {
    color: #155724;
    font-style: italic;
}

.alphaweb-free-subtotal {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1em;
}

/* Cart totals - Free items message */
.alphaweb-buy-x-get-y-message-row {
    border-top: 2px solid #dee2e6;
}

.alphaweb-buy-x-get-y-message-wrapper {
    padding: 15px 0 !important;
}

.alphaweb-buy-x-get-y-message {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 0;
    color: #155724;
    font-size: 0.95em;
    line-height: 1.6;
}

.alphaweb-buy-x-get-y-message strong {
    color: #0d4723;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.alphaweb-buy-x-get-y-message .message-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 1.2em;
}

/* Tiered business pricing message */
.alphaweb-tiered-pricing-message {
    margin: 15px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    color: #155724;
    font-size: 0.95em;
}

.alphaweb-tiered-pricing-message strong {
    display: block;
    font-size: 1em;
    margin-bottom: 8px;
}

.alphaweb-tiered-pricing-message ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.alphaweb-tiered-pricing-message li {
    margin-bottom: 4px;
    padding-left: 18px;
    position: relative;
}

.alphaweb-tiered-pricing-message li:before {
    content: "✔";
    color: #28a745;
    position: absolute;
    left: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alphaweb-free-items-label {
        font-size: 0.85em;
        padding: 6px 10px;
    }
    
    .alphaweb-free-items-label .free-items-badge {
        padding: 3px 8px;
        font-size: 0.9em;
        margin: 0 4px;
    }
    
    .alphaweb-free-items-label .free-items-offer {
        display: block;
        margin-top: 4px;
        margin-left: 0;
    }
    
    .alphaweb-paid-subtotal {
        font-size: 1em;
    }
    
    .alphaweb-free-subtotal-label {
        font-size: 0.8em;
    }
}

