/*
 * Frontend Styles for WLP
 */

/* FORMULARIO SIMPLE DE PUNTOS - NO INTERFIERE CON PAGO */
.wlp-points-row th {
    font-weight: normal !important;
    color: #666 !important;
    padding: 8px !important;
    text-align: left !important;
}

.wlp-points-row td {
    padding: 8px !important;
    text-align: left !important;
}

#wlp-points-input {
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    width: 100px;
    padding: 5px;
}

#wlp-apply-points, #wlp-remove-points {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    padding: 5px 10px;
    margin-left: 5px;
}

#wlp-apply-points:hover, #wlp-remove-points:hover {
    background: #005a87;
}

#wlp-messages {
    margin-top: 5px;
    font-size: 12px;
}

/* Checkout Points Form */
.wlp-checkout-points-section {
    padding: 1em;
    margin: 1em 0;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #f9f9f9;
}

.wlp-points-form-wrapper .wlp-form-title {
    margin: 0;
    font-size: 1em;
    display: flex;
    align-items: center;
}

.wlp-points-form-wrapper .wlp-form-title .dashicons {
    margin-right: 8px;
    color: #f0b913;
}

.wlp-points-form-wrapper .wlp-show-form-link {
    margin-left: 8px;
    text-decoration: none;
    border-bottom: 1px dashed;
}

.wlp-points-form {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #e0e0e0;
}

.wlp-points-form .form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wlp-points-form .input-text {
    flex-grow: 1;
}

.wlp-points-form .button {
    white-space: nowrap;
}

.wlp-form-hint {
    font-size: 0.85em;
    color: #666;
    margin-top: 0.5em;
}

.wlp-points-applied .wlp-success-message {
    padding: 1em;
    background-color: #e7f5e8;
    border-left: 4px solid #4CAF50;
    margin: 0;
}

.wlp-points-applied .wlp-success-message .dashicons {
    color: #4CAF50;
}

.wlp-points-messages .woocommerce-error,
.wlp-points-messages .woocommerce-message {
    margin: 1em 0 0 0;
}

/* My Account - Points History */
.wlp-points-history-table {
    width: 100%;
    margin-top: 1.5em;
}

.wlp-points-history-table th,
.wlp-points-history-table td {
    text-align: left;
    padding: 12px;
    vertical-align: middle;
}

.wlp-points-history-table .wlp-points-positive {
    color: #34a853;
    font-weight: bold;
}

.wlp-points-history-table .wlp-points-negative {
    color: #ea4335;
    font-weight: bold;
}

.wlp-points-balance-summary {
    padding: 1.5em;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 2em;
}

.wlp-points-balance-summary h3 {
    margin-top: 0;
}

.wlp-points-balance-summary .wlp-points-display {
    font-size: 2.5em;
    font-weight: bold;
    color: #4a4a4a;
    line-height: 1.2;
}

.wlp-points-balance-summary .wlp-points-value {
    font-size: 1.2em;
    color: #666;
}


/* Earning Motivation Message */
.wlp-earning-motivation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wlp-motivation-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
}

.wlp-motivation-icon {
    font-size: 24px;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.wlp-motivation-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Login Notice */
.wlp-checkout-login-notice {
    background: #f0f8ff;
    border: 1px solid #007cba;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.wlp-checkout-login-notice p {
    margin: 8px 0;
}

.wlp-checkout-login-notice a {
    color: #007cba;
    font-weight: 600;
    text-decoration: none;
}

.wlp-checkout-login-notice a:hover {
    text-decoration: underline;
}

/* Points Info Section */
.wlp-checkout-points-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.wlp-checkout-points-info h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.wlp-points-status p {
    margin: 10px 0;
}

.wlp-encouragement {
    color: #28a745;
    font-weight: 500;
}

/* Points Balance Widget */
.wlp-dashboard-points-widget {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-dashboard-points-widget h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.wlp-points-summary-widget {
    margin-bottom: 20px;
}

.wlp-points-balance {
    text-align: center;
    margin-bottom: 20px;
}

.wlp-balance-amount {
    margin-bottom: 10px;
}

.wlp-points-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #007cba;
    display: block;
}

.wlp-points-label {
    font-size: 1.1em;
    color: #6c757d;
}

.wlp-balance-value small {
    color: #28a745;
    font-weight: 500;
}

.wlp-points-actions {
    text-align: center;
}

.wlp-can-use-points {
    color: #28a745;
    font-weight: 500;
}

.wlp-need-more-points {
    color: #ffc107;
    font-weight: 500;
}

.wlp-no-points {
    color: #6c757d;
}

.wlp-shop-button {
    background: #007cba !important;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin: 10px 0;
}

.wlp-view-details {
    color: #007cba;
    text-decoration: none;
    font-size: 0.9em;
}

.wlp-earning-tip {
    background: #e7f3ff;
    border-left: 4px solid #007cba;
    padding: 15px;
    margin-top: 20px;
}

.wlp-earning-tip h4 {
    margin-top: 0;
    color: #495057;
}

/* Checkout Points Form */
.wlp-checkout-points-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-checkout-points-section h3 {
    margin-top: 0;
    color: #495057;
    display: flex;
    align-items: center;
}

.wlp-checkout-points-section h3:before {
    content: "⭐";
    margin-right: 10px;
    font-size: 1.2em;
}

.wlp-points-info {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.wlp-available-points {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.wlp-points-value {
    color: #28a745;
    font-weight: 500;
}

.wlp-max-redeemable {
    color: #fd7e14;
    font-size: 0.9em;
}

.wlp-points-applied {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
}

.wlp-success-message {
    color: #155724;
    margin-bottom: 10px;
}

.wlp-points-form {
    margin-top: 15px;
}

.wlp-points-input-group {
    margin-bottom: 15px;
}

.wlp-points-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.wlp-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wlp-input-container input[type="number"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.wlp-apply-points,
.wlp-remove-points {
    background: #007cba !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.wlp-remove-points {
    background: #dc3545 !important;
}

.wlp-quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.wlp-quick-redeem {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.wlp-quick-redeem:hover {
    background: #5a6268;
}

.wlp-points-preview {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
}

.wlp-discount-preview {
    font-weight: 500;
    color: #856404;
}

/* My Account Points Page */
.wlp-my-account-points {
    max-width: 1000px;
}

.wlp-points-header {
    margin-bottom: 30px;
}

.wlp-points-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wlp-points-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wlp-points-card.wlp-available {
    border-left: 4px solid #28a745;
}

.wlp-points-card.wlp-used {
    border-left: 4px solid #ffc107;
}

.wlp-points-card.wlp-total {
    border-left: 4px solid #007cba;
}

.wlp-points-icon {
    font-size: 2em;
    margin-bottom: 10px;
    color: #6c757d;
}

.wlp-points-info h3 {
    font-size: 2em;
    margin: 10px 0 5px 0;
    color: #495057;
}

.wlp-points-info p {
    margin: 5px 0;
    font-weight: 500;
    color: #6c757d;
}

.wlp-points-info small {
    color: #28a745;
}

.wlp-redemption-info,
.wlp-earning-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-can-redeem {
    color: #28a745;
    font-weight: 500;
}

.wlp-cannot-redeem {
    color: #dc3545;
    font-weight: 500;
}

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

.wlp-earning-rules li {
    padding: 10px;
    margin: 10px 0;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

.wlp-earning-rules .dashicons {
    color: #007cba;
    margin-right: 10px;
}

/* Points History Table */
.wlp-history-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.wlp-history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.wlp-history-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.wlp-points-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}

.wlp-points-badge.wlp-positive {
    background: #d4edda;
    color: #155724;
}

.wlp-points-badge.wlp-negative {
    background: #f8d7da;
    color: #721c24;
}

.wlp-transaction-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.wlp-transaction-type.wlp-type-earned {
    background: #d4edda;
    color: #155724;
}

.wlp-transaction-type.wlp-type-redeemed {
    background: #fff3cd;
    color: #856404;
}

.wlp-transaction-type.wlp-type-manual_add {
    background: #d1ecf1;
    color: #0c5460;
}

.wlp-transaction-type.wlp-type-manual_subtract {
    background: #f8d7da;
    color: #721c24;
}

.wlp-no-transactions {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.wlp-no-order {
    color: #6c757d;
}

/* Order Thank You Page */
.wlp-order-points-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-order-points-summary h3 {
    margin-top: 0;
    color: #495057;
}

.wlp-points-redeemed,
.wlp-points-earned,
.wlp-points-balance {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
}

.wlp-points-redeemed {
    background: #fff3cd;
    color: #856404;
}

.wlp-points-earned {
    background: #d4edda;
    color: #155724;
}

.wlp-points-balance {
    background: #d1ecf1;
    color: #0c5460;
    font-weight: 500;
}

/* Messages */
.wlp-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.wlp-message.wlp-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wlp-message.wlp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wlp-points-summary {
        grid-template-columns: 1fr;
    }
    
    .wlp-input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wlp-quick-actions {
        flex-wrap: wrap;
    }
    
    .wlp-history-table {
        font-size: 0.9em;
    }
    
    .wlp-history-table th,
    .wlp-history-table td {
        padding: 8px;
    }
    
    /* Mobile table layout */
    .wlp-history-table thead {
        display: none;
    }
    
    .wlp-history-table tr {
        display: block;
        border: 1px solid #dee2e6;
        margin-bottom: 10px;
        border-radius: 4px;
    }
    
    .wlp-history-table td {
        display: block;
        text-align: right;
        border-bottom: 1px solid #f8f9fa;
        padding: 8px 10px;
    }
    
    .wlp-history-table td:before {
        content: attr(data-label) ": ";
        float: left;
        font-weight: bold;
        color: #495057;
    }
}

/* Botón principal para usar puntos */
.wlp-use-points-main {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #007cba, #0073aa);
    border-radius: 8px;
    border: 2px solid #0073aa;
}

.wlp-use-points-btn {
    background: white !important;
    color: #007cba !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.wlp-use-points-btn:hover {
    background: #f8f9fa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.wlp-points-help {
    color: white !important;
    margin: 8px 0 0 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Quick actions styling */
.wlp-quick-actions {
    margin: 15px 0;
    text-align: center;
}

.wlp-quick-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Highlight effect for input group */
.wlp-points-input-group.wlp-highlight {
    background: #e7f3ff;
    padding: 10px;
    border-radius: 6px;
    border: 2px solid #007cba;
    transition: all 0.3s ease;
}

/* Message styles */
.wlp-message.wlp-info {
    background: #e7f3ff;
    color: #0073aa;
    border: 1px solid #b3d9ff;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Checkout Section - Contenedor principal */
.wlp-checkout-section {
    background: #fff;
    border: 2px solid #007cba;
    border-radius: 8px;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.wlp-checkout-section h4 {
    margin-top: 0;
    color: #007cba;
    font-size: 18px;
    border-bottom: 1px solid #007cba;
    padding-bottom: 8px;
}

/* Status Success - Usuario puede canjear */
.wlp-points-status-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wlp-points-status-success p {
    margin: 5px 0;
}

/* Status Info - Usuario con pocos puntos */
.wlp-points-status-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wlp-points-status-info p {
    margin: 5px 0;
}

/* Login Notice */
.wlp-checkout-login-notice {
    background: #f0f8ff;
    border: 1px solid #007cba;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.wlp-checkout-login-notice p {
    margin: 8px 0;
}

.wlp-checkout-login-notice a {
    color: #007cba;
    font-weight: 600;
    text-decoration: none;
}

.wlp-checkout-login-notice a:hover {
    text-decoration: underline;
}

/* Points Info Section */
.wlp-checkout-points-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.wlp-checkout-points-info h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.wlp-points-status p {
    margin: 10px 0;
}

.wlp-encouragement {
    color: #28a745;
    font-weight: 500;
}

/* Points Balance Widget */
.wlp-dashboard-points-widget {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-dashboard-points-widget h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.wlp-points-summary-widget {
    margin-bottom: 20px;
}

.wlp-points-balance {
    text-align: center;
    margin-bottom: 20px;
}

.wlp-balance-amount {
    margin-bottom: 10px;
}

.wlp-points-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #007cba;
    display: block;
}

.wlp-points-label {
    font-size: 1.1em;
    color: #6c757d;
}

.wlp-balance-value small {
    color: #28a745;
    font-weight: 500;
}

.wlp-points-actions {
    text-align: center;
}

.wlp-can-use-points {
    color: #28a745;
    font-weight: 500;
}

.wlp-need-more-points {
    color: #ffc107;
    font-weight: 500;
}

.wlp-no-points {
    color: #6c757d;
}

.wlp-shop-button {
    background: #007cba !important;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin: 10px 0;
}

.wlp-view-details {
    color: #007cba;
    text-decoration: none;
    font-size: 0.9em;
}

.wlp-earning-tip {
    background: #e7f3ff;
    border-left: 4px solid #007cba;
    padding: 15px;
    margin-top: 20px;
}

.wlp-earning-tip h4 {
    margin-top: 0;
    color: #495057;
}

/* Checkout Points Form */
.wlp-checkout-points-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-checkout-points-section h3 {
    margin-top: 0;
    color: #495057;
    display: flex;
    align-items: center;
}

.wlp-checkout-points-section h3:before {
    content: "⭐";
    margin-right: 10px;
    font-size: 1.2em;
}

.wlp-points-info {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.wlp-available-points {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.wlp-points-value {
    color: #28a745;
    font-weight: 500;
}

.wlp-max-redeemable {
    color: #fd7e14;
    font-size: 0.9em;
}

.wlp-points-applied {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
}

.wlp-success-message {
    color: #155724;
    margin-bottom: 10px;
}

.wlp-points-form {
    margin-top: 15px;
}

.wlp-points-input-group {
    margin-bottom: 15px;
}

.wlp-points-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.wlp-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wlp-input-container input[type="number"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.wlp-apply-points,
.wlp-remove-points {
    background: #007cba !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.wlp-remove-points {
    background: #dc3545 !important;
}

.wlp-quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.wlp-quick-redeem {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.wlp-quick-redeem:hover {
    background: #5a6268;
}

.wlp-points-preview {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
}

.wlp-discount-preview {
    font-weight: 500;
    color: #856404;
}

/* My Account Points Page */
.wlp-my-account-points {
    max-width: 1000px;
}

.wlp-points-header {
    margin-bottom: 30px;
}

.wlp-points-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wlp-points-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wlp-points-card.wlp-available {
    border-left: 4px solid #28a745;
}

.wlp-points-card.wlp-used {
    border-left: 4px solid #ffc107;
}

.wlp-points-card.wlp-total {
    border-left: 4px solid #007cba;
}

.wlp-points-icon {
    font-size: 2em;
    margin-bottom: 10px;
    color: #6c757d;
}

.wlp-points-info h3 {
    font-size: 2em;
    margin: 10px 0 5px 0;
    color: #495057;
}

.wlp-points-info p {
    margin: 5px 0;
    font-weight: 500;
    color: #6c757d;
}

.wlp-points-info small {
    color: #28a745;
}

.wlp-redemption-info,
.wlp-earning-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-can-redeem {
    color: #28a745;
    font-weight: 500;
}

.wlp-cannot-redeem {
    color: #dc3545;
    font-weight: 500;
}

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

.wlp-earning-rules li {
    padding: 10px;
    margin: 10px 0;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

.wlp-earning-rules .dashicons {
    color: #007cba;
    margin-right: 10px;
}

/* Points History Table */
.wlp-history-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.wlp-history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.wlp-history-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.wlp-points-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}

.wlp-points-badge.wlp-positive {
    background: #d4edda;
    color: #155724;
}

.wlp-points-badge.wlp-negative {
    background: #f8d7da;
    color: #721c24;
}

.wlp-transaction-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.wlp-transaction-type.wlp-type-earned {
    background: #d4edda;
    color: #155724;
}

.wlp-transaction-type.wlp-type-redeemed {
    background: #fff3cd;
    color: #856404;
}

.wlp-transaction-type.wlp-type-manual_add {
    background: #d1ecf1;
    color: #0c5460;
}

.wlp-transaction-type.wlp-type-manual_subtract {
    background: #f8d7da;
    color: #721c24;
}

.wlp-no-transactions {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.wlp-no-order {
    color: #6c757d;
}

/* Order Thank You Page */
.wlp-order-points-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-order-points-summary h3 {
    margin-top: 0;
    color: #495057;
}

.wlp-points-redeemed,
.wlp-points-earned,
.wlp-points-balance {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
}

.wlp-points-redeemed {
    background: #fff3cd;
    color: #856404;
}

.wlp-points-earned {
    background: #d4edda;
    color: #155724;
}

.wlp-points-balance {
    background: #d1ecf1;
    color: #0c5460;
    font-weight: 500;
}

/* Messages */
.wlp-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.wlp-message.wlp-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wlp-message.wlp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wlp-points-summary {
        grid-template-columns: 1fr;
    }
    
    .wlp-input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wlp-quick-actions {
        flex-wrap: wrap;
    }
    
    .wlp-history-table {
        font-size: 0.9em;
    }
    
    .wlp-history-table th,
    .wlp-history-table td {
        padding: 8px;
    }
    
    /* Mobile table layout */
    .wlp-history-table thead {
        display: none;
    }
    
    .wlp-history-table tr {
        display: block;
        border: 1px solid #dee2e6;
        margin-bottom: 10px;
        border-radius: 4px;
    }
    
    .wlp-history-table td {
        display: block;
        text-align: right;
        border-bottom: 1px solid #f8f9fa;
        padding: 8px 10px;
    }
    
    .wlp-history-table td:before {
        content: attr(data-label) ": ";
        float: left;
        font-weight: bold;
        color: #495057;
    }
}

/* Botón principal para usar puntos */
.wlp-use-points-main {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #007cba, #0073aa);
    border-radius: 8px;
    border: 2px solid #0073aa;
}

.wlp-use-points-btn {
    background: white !important;
    color: #007cba !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.wlp-use-points-btn:hover {
    background: #f8f9fa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.wlp-points-help {
    color: white !important;
    margin: 8px 0 0 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Quick actions styling */
.wlp-quick-actions {
    margin: 15px 0;
    text-align: center;
}

.wlp-quick-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Highlight effect for input group */
.wlp-points-input-group.wlp-highlight {
    background: #e7f3ff;
    padding: 10px;
    border-radius: 6px;
    border: 2px solid #007cba;
    transition: all 0.3s ease;
}

/* Message styles */
.wlp-message.wlp-info {
    background: #e7f3ff;
    color: #0073aa;
    border: 1px solid #b3d9ff;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Checkout Section - Contenedor principal */
.wlp-checkout-section {
    background: #fff;
    border: 2px solid #007cba;
    border-radius: 8px;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.wlp-checkout-section h4 {
    margin-top: 0;
    color: #007cba;
    font-size: 18px;
    border-bottom: 1px solid #007cba;
    padding-bottom: 8px;
}

/* Status Success - Usuario puede canjear */
.wlp-points-status-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wlp-points-status-success p {
    margin: 5px 0;
}

/* Status Info - Usuario con pocos puntos */
.wlp-points-status-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wlp-points-status-info p {
    margin: 5px 0;
}

/* Login Notice */
.wlp-checkout-login-notice {
    background: #f0f8ff;
    border: 1px solid #007cba;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.wlp-checkout-login-notice p {
    margin: 8px 0;
}

.wlp-checkout-login-notice a {
    color: #007cba;
    font-weight: 600;
    text-decoration: none;
}

.wlp-checkout-login-notice a:hover {
    text-decoration: underline;
}

/* Points Info Section */
.wlp-checkout-points-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.wlp-checkout-points-info h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.wlp-points-status p {
    margin: 10px 0;
}

.wlp-encouragement {
    color: #28a745;
    font-weight: 500;
}

/* Points Balance Widget */
.wlp-dashboard-points-widget {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-dashboard-points-widget h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.wlp-points-summary-widget {
    margin-bottom: 20px;
}

.wlp-points-balance {
    text-align: center;
    margin-bottom: 20px;
}

.wlp-balance-amount {
    margin-bottom: 10px;
}

.wlp-points-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #007cba;
    display: block;
}

.wlp-points-label {
    font-size: 1.1em;
    color: #6c757d;
}

.wlp-balance-value small {
    color: #28a745;
    font-weight: 500;
}

.wlp-points-actions {
    text-align: center;
}

.wlp-can-use-points {
    color: #28a745;
    font-weight: 500;
}

.wlp-need-more-points {
    color: #ffc107;
    font-weight: 500;
}

.wlp-no-points {
    color: #6c757d;
}

.wlp-shop-button {
    background: #007cba !important;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin: 10px 0;
}

.wlp-view-details {
    color: #007cba;
    text-decoration: none;
    font-size: 0.9em;
}

.wlp-earning-tip {
    background: #e7f3ff;
    border-left: 4px solid #007cba;
    padding: 15px;
    margin-top: 20px;
}

.wlp-earning-tip h4 {
    margin-top: 0;
    color: #495057;
}

/* Checkout Points Form */
.wlp-checkout-points-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-checkout-points-section h3 {
    margin-top: 0;
    color: #495057;
    display: flex;
    align-items: center;
}

.wlp-checkout-points-section h3:before {
    content: "⭐";
    margin-right: 10px;
    font-size: 1.2em;
}

.wlp-points-info {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.wlp-available-points {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.wlp-points-value {
    color: #28a745;
    font-weight: 500;
}

.wlp-max-redeemable {
    color: #fd7e14;
    font-size: 0.9em;
}

.wlp-points-applied {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
}

.wlp-success-message {
    color: #155724;
    margin-bottom: 10px;
}

.wlp-points-form {
    margin-top: 15px;
}

.wlp-points-input-group {
    margin-bottom: 15px;
}

.wlp-points-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.wlp-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wlp-input-container input[type="number"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.wlp-apply-points,
.wlp-remove-points {
    background: #007cba !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.wlp-remove-points {
    background: #dc3545 !important;
}

.wlp-quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.wlp-quick-redeem {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.wlp-quick-redeem:hover {
    background: #5a6268;
}

.wlp-points-preview {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
}

.wlp-discount-preview {
    font-weight: 500;
    color: #856404;
}

/* My Account Points Page */
.wlp-my-account-points {
    max-width: 1000px;
}

.wlp-points-header {
    margin-bottom: 30px;
}

.wlp-points-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wlp-points-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wlp-points-card.wlp-available {
    border-left: 4px solid #28a745;
}

.wlp-points-card.wlp-used {
    border-left: 4px solid #ffc107;
}

.wlp-points-card.wlp-total {
    border-left: 4px solid #007cba;
}

.wlp-points-icon {
    font-size: 2em;
    margin-bottom: 10px;
    color: #6c757d;
}

.wlp-points-info h3 {
    font-size: 2em;
    margin: 10px 0 5px 0;
    color: #495057;
}

.wlp-points-info p {
    margin: 5px 0;
    font-weight: 500;
    color: #6c757d;
}

.wlp-points-info small {
    color: #28a745;
}

.wlp-redemption-info,
.wlp-earning-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-can-redeem {
    color: #28a745;
    font-weight: 500;
}

.wlp-cannot-redeem {
    color: #dc3545;
    font-weight: 500;
}

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

.wlp-earning-rules li {
    padding: 10px;
    margin: 10px 0;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

.wlp-earning-rules .dashicons {
    color: #007cba;
    margin-right: 10px;
}

/* Points History Table */
.wlp-history-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.wlp-history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.wlp-history-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.wlp-points-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}

.wlp-points-badge.wlp-positive {
    background: #d4edda;
    color: #155724;
}

.wlp-points-badge.wlp-negative {
    background: #f8d7da;
    color: #721c24;
}

.wlp-transaction-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.wlp-transaction-type.wlp-type-earned {
    background: #d4edda;
    color: #155724;
}

.wlp-transaction-type.wlp-type-redeemed {
    background: #fff3cd;
    color: #856404;
}

.wlp-transaction-type.wlp-type-manual_add {
    background: #d1ecf1;
    color: #0c5460;
}

.wlp-transaction-type.wlp-type-manual_subtract {
    background: #f8d7da;
    color: #721c24;
}

.wlp-no-transactions {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.wlp-no-order {
    color: #6c757d;
}

/* Order Thank You Page */
.wlp-order-points-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-order-points-summary h3 {
    margin-top: 0;
    color: #495057;
}

.wlp-points-redeemed,
.wlp-points-earned,
.wlp-points-balance {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
}

.wlp-points-redeemed {
    background: #fff3cd;
    color: #856404;
}

.wlp-points-earned {
    background: #d4edda;
    color: #155724;
}

.wlp-points-balance {
    background: #d1ecf1;
    color: #0c5460;
    font-weight: 500;
}

/* Messages */
.wlp-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.wlp-message.wlp-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wlp-message.wlp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wlp-points-summary {
        grid-template-columns: 1fr;
    }
    
    .wlp-input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wlp-quick-actions {
        flex-wrap: wrap;
    }
    
    .wlp-history-table {
        font-size: 0.9em;
    }
    
    .wlp-history-table th,
    .wlp-history-table td {
        padding: 8px;
    }
    
    /* Mobile table layout */
    .wlp-history-table thead {
        display: none;
    }
    
    .wlp-history-table tr {
        display: block;
        border: 1px solid #dee2e6;
        margin-bottom: 10px;
        border-radius: 4px;
    }
    
    .wlp-history-table td {
        display: block;
        text-align: right;
        border-bottom: 1px solid #f8f9fa;
        padding: 8px 10px;
    }
    
    .wlp-history-table td:before {
        content: attr(data-label) ": ";
        float: left;
        font-weight: bold;
        color: #495057;
    }
}

/* Botón principal para usar puntos */
.wlp-use-points-main {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #007cba, #0073aa);
    border-radius: 8px;
    border: 2px solid #0073aa;
}

.wlp-use-points-btn {
    background: white !important;
    color: #007cba !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.wlp-use-points-btn:hover {
    background: #f8f9fa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.wlp-points-help {
    color: white !important;
    margin: 8px 0 0 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Quick actions styling */
.wlp-quick-actions {
    margin: 15px 0;
    text-align: center;
}

.wlp-quick-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Highlight effect for input group */
.wlp-points-input-group.wlp-highlight {
    background: #e7f3ff;
    padding: 10px;
    border-radius: 6px;
    border: 2px solid #007cba;
    transition: all 0.3s ease;
}

/* Message styles */
.wlp-message.wlp-info {
    background: #e7f3ff;
    color: #0073aa;
    border: 1px solid #b3d9ff;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Checkout Section - Contenedor principal */
.wlp-checkout-section {
    background: #fff;
    border: 2px solid #007cba;
    border-radius: 8px;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.wlp-checkout-section h4 {
    margin-top: 0;
    color: #007cba;
    font-size: 18px;
    border-bottom: 1px solid #007cba;
    padding-bottom: 8px;
}

/* Status Success - Usuario puede canjear */
.wlp-points-status-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wlp-points-status-success p {
    margin: 5px 0;
}

/* Status Info - Usuario con pocos puntos */
.wlp-points-status-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wlp-points-status-info p {
    margin: 5px 0;
}

/* Login Notice */
.wlp-checkout-login-notice {
    background: #f0f8ff;
    border: 1px solid #007cba;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.wlp-checkout-login-notice p {
    margin: 8px 0;
}

.wlp-checkout-login-notice a {
    color: #007cba;
    font-weight: 600;
    text-decoration: none;
}

.wlp-checkout-login-notice a:hover {
    text-decoration: underline;
}

/* Points Info Section */
.wlp-checkout-points-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.wlp-checkout-points-info h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.wlp-points-status p {
    margin: 10px 0;
}

.wlp-encouragement {
    color: #28a745;
    font-weight: 500;
}

/* Points Balance Widget */
.wlp-dashboard-points-widget {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-dashboard-points-widget h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.wlp-points-summary-widget {
    margin-bottom: 20px;
}

.wlp-points-balance {
    text-align: center;
    margin-bottom: 20px;
}

.wlp-balance-amount {
    margin-bottom: 10px;
}

.wlp-points-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #007cba;
    display: block;
}

.wlp-points-label {
    font-size: 1.1em;
    color: #6c757d;
}

.wlp-balance-value small {
    color: #28a745;
    font-weight: 500;
}

.wlp-points-actions {
    text-align: center;
}

.wlp-can-use-points {
    color: #28a745;
    font-weight: 500;
}

.wlp-need-more-points {
    color: #ffc107;
    font-weight: 500;
}

.wlp-no-points {
    color: #6c757d;
}

.wlp-shop-button {
    background: #007cba !important;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin: 10px 0;
}

.wlp-view-details {
    color: #007cba;
    text-decoration: none;
    font-size: 0.9em;
}

.wlp-earning-tip {
    background: #e7f3ff;
    border-left: 4px solid #007cba;
    padding: 15px;
    margin-top: 20px;
}

.wlp-earning-tip h4 {
    margin-top: 0;
    color: #495057;
}

/* Checkout Points Form */
.wlp-checkout-points-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-checkout-points-section h3 {
    margin-top: 0;
    color: #495057;
    display: flex;
    align-items: center;
}

.wlp-checkout-points-section h3:before {
    content: "⭐";
    margin-right: 10px;
    font-size: 1.2em;
}

.wlp-points-info {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.wlp-available-points {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.wlp-points-value {
    color: #28a745;
    font-weight: 500;
}

.wlp-max-redeemable {
    color: #fd7e14;
    font-size: 0.9em;
}

.wlp-points-applied {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
}

.wlp-success-message {
    color: #155724;
    margin-bottom: 10px;
}

.wlp-points-form {
    margin-top: 15px;
}

.wlp-points-input-group {
    margin-bottom: 15px;
}

.wlp-points-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.wlp-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wlp-input-container input[type="number"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.wlp-apply-points,
.wlp-remove-points {
    background: #007cba !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.wlp-remove-points {
    background: #dc3545 !important;
}

.wlp-quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.wlp-quick-redeem {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.wlp-quick-redeem:hover {
    background: #5a6268;
}

.wlp-points-preview {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
}

.wlp-discount-preview {
    font-weight: 500;
    color: #856404;
}

/* My Account Points Page */
.wlp-my-account-points {
    max-width: 1000px;
}

.wlp-points-header {
    margin-bottom: 30px;
}

.wlp-points-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wlp-points-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wlp-points-card.wlp-available {
    border-left: 4px solid #28a745;
}

.wlp-points-card.wlp-used {
    border-left: 4px solid #ffc107;
}

.wlp-points-card.wlp-total {
    border-left: 4px solid #007cba;
}

.wlp-points-icon {
    font-size: 2em;
    margin-bottom: 10px;
    color: #6c757d;
}

.wlp-points-info h3 {
    font-size: 2em;
    margin: 10px 0 5px 0;
    color: #495057;
}

.wlp-points-info p {
    margin: 5px 0;
    font-weight: 500;
    color: #6c757d;
}

.wlp-points-info small {
    color: #28a745;
}

.wlp-redemption-info,
.wlp-earning-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-can-redeem {
    color: #28a745;
    font-weight: 500;
}

.wlp-cannot-redeem {
    color: #dc3545;
    font-weight: 500;
}

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

.wlp-earning-rules li {
    padding: 10px;
    margin: 10px 0;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

.wlp-earning-rules .dashicons {
    color: #007cba;
    margin-right: 10px;
}

/* Points History Table */
.wlp-history-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.wlp-history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.wlp-history-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.wlp-points-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}

.wlp-points-badge.wlp-positive {
    background: #d4edda;
    color: #155724;
}

.wlp-points-badge.wlp-negative {
    background: #f8d7da;
    color: #721c24;
}

.wlp-transaction-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.wlp-transaction-type.wlp-type-earned {
    background: #d4edda;
    color: #155724;
}

.wlp-transaction-type.wlp-type-redeemed {
    background: #fff3cd;
    color: #856404;
}

.wlp-transaction-type.wlp-type-manual_add {
    background: #d1ecf1;
    color: #0c5460;
}

.wlp-transaction-type.wlp-type-manual_subtract {
    background: #f8d7da;
    color: #721c24;
}

.wlp-no-transactions {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.wlp-no-order {
    color: #6c757d;
}

/* Order Thank You Page */
.wlp-order-points-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-order-points-summary h3 {
    margin-top: 0;
    color: #495057;
}

.wlp-points-redeemed,
.wlp-points-earned,
.wlp-points-balance {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
}

.wlp-points-redeemed {
    background: #fff3cd;
    color: #856404;
}

.wlp-points-earned {
    background: #d4edda;
    color: #155724;
}

.wlp-points-balance {
    background: #d1ecf1;
    color: #0c5460;
    font-weight: 500;
}

/* Messages */
.wlp-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.wlp-message.wlp-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wlp-message.wlp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wlp-points-summary {
        grid-template-columns: 1fr;
    }
    
    .wlp-input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wlp-quick-actions {
        flex-wrap: wrap;
    }
    
    .wlp-history-table {
        font-size: 0.9em;
    }
    
    .wlp-history-table th,
    .wlp-history-table td {
        padding: 8px;
    }
    
    /* Mobile table layout */
    .wlp-history-table thead {
        display: none;
    }
    
    .wlp-history-table tr {
        display: block;
        border: 1px solid #dee2e6;
        margin-bottom: 10px;
        border-radius: 4px;
    }
    
    .wlp-history-table td {
        display: block;
        text-align: right;
        border-bottom: 1px solid #f8f9fa;
        padding: 8px 10px;
    }
    
    .wlp-history-table td:before {
        content: attr(data-label) ": ";
        float: left;
        font-weight: bold;
        color: #495057;
    }
}

/* Botón principal para usar puntos */
.wlp-use-points-main {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #007cba, #0073aa);
    border-radius: 8px;
    border: 2px solid #0073aa;
}

.wlp-use-points-btn {
    background: white !important;
    color: #007cba !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.wlp-use-points-btn:hover {
    background: #f8f9fa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.wlp-points-help {
    color: white !important;
    margin: 8px 0 0 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Quick actions styling */
.wlp-quick-actions {
    margin: 15px 0;
    text-align: center;
}

.wlp-quick-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Highlight effect for input group */
.wlp-points-input-group.wlp-highlight {
    background: #e7f3ff;
    padding: 10px;
    border-radius: 6px;
    border: 2px solid #007cba;
    transition: all 0.3s ease;
}

/* Message styles */
.wlp-message.wlp-info {
    background: #e7f3ff;
    color: #0073aa;
    border: 1px solid #b3d9ff;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Checkout Section - Contenedor principal */
.wlp-checkout-section {
    background: #fff;
    border: 2px solid #007cba;
    border-radius: 8px;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.wlp-checkout-section h4 {
    margin-top: 0;
    color: #007cba;
    font-size: 18px;
    border-bottom: 1px solid #007cba;
    padding-bottom: 8px;
}

/* Status Success - Usuario puede canjear */
.wlp-points-status-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wlp-points-status-success p {
    margin: 5px 0;
}

/* Status Info - Usuario con pocos puntos */
.wlp-points-status-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wlp-points-status-info p {
    margin: 5px 0;
}

/* Login Notice */
.wlp-checkout-login-notice {
    background: #f0f8ff;
    border: 1px solid #007cba;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.wlp-checkout-login-notice p {
    margin: 8px 0;
}

.wlp-checkout-login-notice a {
    color: #007cba;
    font-weight: 600;
    text-decoration: none;
}

.wlp-checkout-login-notice a:hover {
    text-decoration: underline;
}

/* Points Info Section */
.wlp-checkout-points-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.wlp-checkout-points-info h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.wlp-points-status p {
    margin: 10px 0;
}

.wlp-encouragement {
    color: #28a745;
    font-weight: 500;
}

/* Points Balance Widget */
.wlp-dashboard-points-widget {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlp-dashboard-points-widget h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.wlp-points-summary-widget {
    margin-bottom: 20px;
}

.wlp-points-balance {
    text-align: center;
    margin-bottom: 20px;
}

.wlp-balance-amount {
    margin-bottom: 10px;
}

.wlp-points-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #007cba;
    display: block;
}

.wlp-points-label {
    font-size: 1.1em;
    color: #6c757d;
}

.wlp-balance-value small {
    color: #28a745;
    font-weight: 500;
}

.wlp-points-actions {
    text-align: center;
}

.wlp-can-use-points {
    color: #28a745; }
