/* Loyalty Shortcodes Styles */

.loyalty-points-display {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    margin: 20px 0;
}

.loyalty-points-display h3 {
    margin-top: 0;
    color: #007cba;
}

.points-balance {
    font-size: 18px;
    margin: 10px 0;
}

.partner-info {
    margin: 10px 0;
    color: #666;
}

.loyalty-voucher-form {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.loyalty-voucher-form input[type="text"] {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.loyalty-voucher-form button {
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.loyalty-voucher-form button:hover {
    background: #005a87;
}

#voucher-result .success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

#voucher-result .error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.loyalty-partner-info {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.loyalty-partner-info h3 {
    margin-top: 0;
    color: #0073aa;
}

.partner-name, .partner-code, .partner-discount {
    margin: 10px 0;
}

.partner-discount.valid {
    color: #28a745;
    font-weight: bold;
}

.partner-discount.invalid {
    color: #dc3545;
    font-weight: bold;
}

.discount-limit, .min-order, .discount-period {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.discount-message {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #ffeaa7;
}

.loyalty-rules-list {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.loyalty-rules-list h3 {
    margin-top: 0;
    color: #333;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rule-item {
    background: #f8f9fa;
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    border-left: 3px solid #007cba;
}

.loyalty-shipping-voucher-form {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.loyalty-shipping-voucher-form h3 {
    margin-top: 0;
    color: #333;
}

.loyalty-shipping-voucher-form input[type="text"] {
    width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

#shipping-result .success {
    background: #d1ecf1;
    color: #0c5460;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

#shipping-result .error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.loyalty-points-history {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.loyalty-points-history h3 {
    margin-top: 0;
    color: #333;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.history-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.history-table .positive {
    color: #28a745;
    font-weight: bold;
}

.history-table .negative {
    color: #dc3545;
    font-weight: bold;
}

.loyalty-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .loyalty-voucher-form input[type="text"],
    .loyalty-shipping-voucher-form input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .history-table {
        font-size: 14px;
    }
    
    .history-table th,
    .history-table td {
        padding: 8px;
    }
}
