/* Classic Rewards Frontend Styles */

.classic-rewards-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.classic-rewards-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.points-info {
    margin-bottom: 15px;
}

.points-info p {
    margin: 5px 0;
    font-size: 14px;
}

.repeat-customer-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.classic-rewards-points-page {
    max-width: 800px;
    margin: 0 auto;
}

.classic-rewards-points-page h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.conversion-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.conversion-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1976d2;
}

.points-history {
    margin-top: 30px;
}

.points-history h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.points-earned {
    color: #28a745;
    font-weight: bold;
}

.points-deducted {
    color: #dc3545;
    font-weight: bold;
}

/* Points Redemption Form */
.classic-rewards-redemption {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.classic-rewards-redemption h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.classic-rewards-redemption .points-info {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 20px;
}

.classic-rewards-redemption .points-info p {
    margin: 8px 0;
}

/* Cart Page Redemption Form */
.classic-rewards-cart-redemption {
    margin: 0 0 2em;
}

.classic-rewards-cart-totals {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1.5em;
    margin-bottom: 2em;
}

.classic-rewards-cart-totals h3 {
    font-size: 1.25em;
    margin: 0 0 1em;
    color: #2c3e50;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5em;
}

.classic-rewards-cart-totals .points-info {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 1em;
    margin-bottom: 1.5em;
}

.classic-rewards-cart-totals .points-info p {
    margin: 0.5em 0;
    font-size: 0.95em;
}

.classic-rewards-cart-totals .current-redemption {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    padding: 1em;
    margin-bottom: 1em;
}

.classic-rewards-cart-totals .current-redemption p {
    margin: 0 0 0.5em 0;
    color: #155724;
    font-size: 0.95em;
}

/* Checkout Page Redemption Form */
.classic-rewards-checkout-redemption {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1.5em;
    margin: 0 0 2em;
}

.classic-rewards-checkout-redemption h3 {
    font-size: 1.25em;
    margin: 0 0 1em;
    color: #2c3e50;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5em;
}

.classic-rewards-checkout-redemption .points-info {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 1em;
    margin-bottom: 1.5em;
}

.classic-rewards-checkout-redemption .points-info p {
    margin: 0.5em 0;
    font-size: 0.95em;
}

.classic-rewards-checkout-redemption .current-redemption {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    padding: 1em;
    margin-bottom: 1em;
}

.classic-rewards-checkout-redemption .current-redemption p {
    margin: 0 0 0.5em 0;
    color: #155724;
    font-size: 0.95em;
}

.current-redemption {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 15px;
}

.current-redemption p {
    margin: 0 0 10px 0;
    color: #155724;
}

.classic-rewards-form {
    margin-top: 15px;
}

.classic-rewards-form .form-row {
    margin-bottom: 15px;
}

.classic-rewards-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.classic-rewards-form input[type="number"] {
    width: 150px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 14px;
}

.classic-rewards-form .points-value-preview {
    margin-left: 10px;
    color: #6c757d;
    font-size: 14px;
}

.classic-rewards-form .button {
    margin-right: 10px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .classic-rewards-summary,
    .classic-rewards-redemption {
        padding: 15px;
    }

    .classic-rewards-form input[type="number"] {
        width: 100%;
        max-width: 200px;
    }

    .woocommerce-orders-table {
        font-size: 14px;
    }

    .woocommerce-orders-table__cell {
        padding: 10px 8px;
    }

    /* Cart redemption responsive styles */
    .classic-rewards-cart-totals {
        padding: 1em;
        margin-bottom: 1.5em;
    }

    .classic-rewards-cart-totals h3 {
        font-size: 1.1em;
        margin-bottom: 0.8em;
    }

    .classic-rewards-cart-totals .points-info {
        padding: 0.8em;
        margin-bottom: 1em;
    }

    .classic-rewards-cart-totals .points-info p {
        font-size: 0.9em;
    }

    .classic-rewards-cart-totals .current-redemption {
        padding: 0.8em;
        margin-bottom: 0.8em;
    }

    .classic-rewards-cart-totals .current-redemption p {
        font-size: 0.9em;
    }

    /* Checkout redemption responsive styles */
    .classic-rewards-checkout-redemption {
        padding: 1em;
        margin-bottom: 1.5em;
    }

    .classic-rewards-checkout-redemption h3 {
        font-size: 1.1em;
        margin-bottom: 0.8em;
    }

    .classic-rewards-checkout-redemption .points-info {
        padding: 0.8em;
        margin-bottom: 1em;
    }

    .classic-rewards-checkout-redemption .points-info p {
        font-size: 0.9em;
    }

    .classic-rewards-checkout-redemption .current-redemption {
        padding: 0.8em;
        margin-bottom: 0.8em;
    }

    .classic-rewards-checkout-redemption .current-redemption p {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    .classic-rewards-summary,
    .classic-rewards-redemption {
        padding: 12px;
    }

    .woocommerce-orders-table {
        font-size: 12px;
    }

    .woocommerce-orders-table__cell {
        padding: 8px 6px;
    }

    .classic-rewards-form .button {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Cart redemption responsive styles for small screens */
    .classic-rewards-cart-totals {
        padding: 0.8em;
        margin-bottom: 1em;
    }

    .classic-rewards-cart-totals h3 {
        font-size: 1em;
        margin-bottom: 0.6em;
    }

    .classic-rewards-cart-totals .points-info {
        padding: 0.6em;
        margin-bottom: 0.8em;
    }

    .classic-rewards-cart-totals .points-info p {
        font-size: 0.85em;
        line-height: 1.4;
    }

    .classic-rewards-cart-totals .current-redemption {
        padding: 0.6em;
        margin-bottom: 0.6em;
    }

    .classic-rewards-cart-totals .current-redemption p {
        font-size: 0.85em;
        line-height: 1.4;
    }

    .classic-rewards-cart-totals .form-row {
        margin-bottom: 10px;
    }

    .classic-rewards-cart-totals input[type="number"] {
        width: 100%;
        margin-bottom: 5px;
    }

    /* Checkout redemption responsive styles for small screens */
    .classic-rewards-checkout-redemption {
        padding: 0.8em;
        margin-bottom: 1em;
    }

    .classic-rewards-checkout-redemption h3 {
        font-size: 1em;
        margin-bottom: 0.6em;
    }

    .classic-rewards-checkout-redemption .points-info {
        padding: 0.6em;
        margin-bottom: 0.8em;
    }

    .classic-rewards-checkout-redemption .points-info p {
        font-size: 0.85em;
        line-height: 1.4;
    }

    .classic-rewards-checkout-redemption .current-redemption {
        padding: 0.6em;
        margin-bottom: 0.6em;
    }

    .classic-rewards-checkout-redemption .current-redemption p {
        font-size: 0.85em;
        line-height: 1.4;
    }

    .classic-rewards-checkout-redemption .form-row {
        margin-bottom: 10px;
    }

    .classic-rewards-checkout-redemption input[type="number"] {
        width: 100%;
        margin-bottom: 5px;
    }
}