/**
 * Advanced WC Pricing - Public Styles
 */

/* RTL Support */
.awcp-price-container,
.awcp-source-price,
.awcp-stock-status,
.awcp-hidden-price,
.awcp-login-message {
    direction: rtl;
    text-align: right;
}

/* Hidden Price Message */
.awcp-hidden-price {
    display: inline-block;
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
}

/* Login Message */
.awcp-login-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.awcp-login-message p {
    margin: 0 0 10px;
    color: #856404;
}

.awcp-login-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.awcp-login-btn:hover {
    background: #135e96;
    color: #fff;
}

/* Access Denied */
.awcp-access-denied {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.awcp-access-denied p {
    margin: 0;
    color: #721c24;
}

/* Source Price */
.awcp-source-price {
    display: inline-block;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.awcp-source-price small {
    color: #999;
}

/* Stock Status */
.awcp-stock-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
}

.awcp-stock-instock {
    background: #d4edda;
    color: #155724;
}

.awcp-stock-outofstock {
    background: #f8d7da;
    color: #721c24;
}

.awcp-stock-onbackorder {
    background: #fff3cd;
    color: #856404;
}

/* Price Display */
.awcp-dynamic-price {
    font-weight: bold;
    color: #28a745;
}

.awcp-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 8px;
}

/* Role-based Price Badge */
.awcp-role-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #007bff;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Percentage Badge */
.awcp-percentage-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #28a745;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 5px;
}

/* Variable Product Price Range */
.awcp-price-range {
    font-size: 16px;
    color: #333;
}

.awcp-price-range .awcp-min-price,
.awcp-price-range .awcp-max-price {
    font-weight: bold;
}

.awcp-price-range .awcp-price-separator {
    margin: 0 5px;
    color: #666;
}

/* Last Updated */
.awcp-last-updated {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .awcp-login-message {
        padding: 12px;
    }

    .awcp-login-btn {
        display: block;
        text-align: center;
    }
}
