/*
 * Public-facing CSS for the WooRewards plugin.
 *
 * This file is used to style the public-facing side of the plugin.
 */

.woorewards-loyalty-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.woorewards-loyalty-card {
    flex: 1 1 auto;
    min-width: 280px;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.woorewards-loyalty-card h4 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

.woorewards-loyalty-card .points {
    font-size: 2em;
    font-weight: bold;
    color: #007bff; /* Primary color */
    margin-bottom: 5px;
}

.woorewards-loyalty-card .value {
    font-size: 1em;
    color: #666;
}

.woorewards-loyalty-card .tier {
    font-size: 1.5em;
    font-weight: bold;
    color: #28a745; /* Success color */
    margin-bottom: 5px;
}

.woorewards-loyalty-card .spending {
    font-size: 0.9em;
    color: #777;
}

.woorewards-progress-bar {
    background-color: #e9ecef;
    border-radius: 5px;
    height: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.woorewards-progress-bar .woorewards-progress {
    background-color: #007bff; /* Primary color */
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

/* Checkout Page Styling */
.woorewards-redemption-form-wrapper {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.woorewards-redemption-form-wrapper h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: #333;
}

.woorewards-redemption-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.woorewards-redemption-form .form-row {
    flex: 1;
    margin-bottom: 0; /* Override WooCommerce default */
}

.woorewards-redemption-form .form-row input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.woorewards-redemption-form .button {
    white-space: nowrap;
    line-height: 1;
    padding: 10px 15px;
    height: auto;
}

#woorewards-redemption-message {
    margin-top: 10px;
    font-weight: bold;
}

.woorewards-potential-points {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 1em;
}

.woorewards-potential-points strong {
    font-weight: bold;
}
