/* ============================================
   STYLES PUBLICS MODERNES
   ============================================ */

/* Cartes points */
.wls-points-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.wls-points-header {
    text-align: center;
}

.wls-points-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.wls-points-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
}

.wls-next-reward {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.wls-next-reward-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.wls-next-reward-progress {
    margin-top: 8px;
}

/* Barre de progression */
.wls-progress-bar {
    background: #eaeaea;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.wls-progress-fill {
    background: #1a1a1a;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Notification dans le panier */
.wls-cart-notification {
    margin-bottom: 20px;
}

.wls-cart-points-card {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.wls-points-balance, .wls-points-earn {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.wls-points-balance .wls-label,
.wls-points-earn .wls-label {
    font-size: 13px;
    color: #666;
}

.wls-points-balance .wls-value,
.wls-points-earn .wls-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.wls-points-balance .wls-unit,
.wls-points-earn .wls-unit {
    font-size: 13px;
    color: #666;
}

/* Accordéon récompenses */
.wls-rewards-accordion {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    margin: 24px 0;
}

.wls-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eaeaea;
}

.wls-accordion-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.wls-user-points-badge {
    background: #1a1a1a;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.wls-accordion-item {
    border-bottom: 1px solid #eaeaea;
}

.wls-accordion-item:last-child {
    border-bottom: none;
}

.wls-accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.wls-accordion-trigger:hover {
    background: #fafafa;
}

.wls-accordion-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.wls-accordion-meta {
    display: flex;
    gap: 16px;
}

.wls-reward-points {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
}

.wls-reward-type {
    font-size: 13px;
    color: #666;
}

.wls-accordion-progress {
    width: 150px;
}

.wls-progress-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: block;
    text-align: right;
}

.wls-accordion-icon i {
    color: #999;
    transition: transform 0.3s;
}

.wls-accordion-content {
    display: none;
    padding: 0 20px 20px 20px;
    background: #fafafa;
}

.wls-reward-details {
    padding-top: 8px;
}

.wls-reward-details p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #555;
}

.wls-reward-validity {
    font-size: 12px;
    color: #888;
}

.wls-points-missing {
    color: #dc2626;
    font-size: 13px;
}

.wls-btn-primary {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s;
}

.wls-btn-primary:hover {
    opacity: 0.9;
}

.wls-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notifications */
.wls-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    min-width: 280px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wls-notification-success {
    border-left: 4px solid #10b981;
}

.wls-notification-error {
    border-left: 4px solid #dc2626;
}

.wls-notification-icon {
    font-size: 20px;
    font-weight: bold;
}

.wls-notification-success .wls-notification-icon {
    color: #10b981;
}

.wls-notification-error .wls-notification-icon {
    color: #dc2626;
}

.wls-notification-message {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.wls-notification-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    padding: 0;
}

.wls-notification-close:hover {
    color: #333;
}

/* Modal de confirmation */
.wls-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wls-modal-container {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wls-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #1a1a1a;
    color: white;
}

.wls-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.wls-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

.wls-modal-close:hover {
    opacity: 1;
}

.wls-modal-body {
    padding: 24px 20px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.wls-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #eaeaea;
}

.wls-modal-footer button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.wls-modal-cancel {
    background: #f0f0f0;
    border: none;
    color: #333;
}

.wls-modal-cancel:hover {
    background: #e5e5e5;
}

.wls-modal-confirm {
    background: #1a1a1a;
    border: none;
    color: white;
}

.wls-modal-confirm:hover {
    opacity: 0.9;
}

/* Login message */
.wls-login-message, .wls-login-required {
    text-align: center;
    padding: 40px;
    background: #fafafa;
    border-radius: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .wls-cart-points-card {
        flex-direction: column;
        text-align: center;
    }

    .wls-accordion-trigger {
        flex-direction: column;
        gap: 12px;
    }

    .wls-accordion-progress {
        width: 100%;
    }

    .wls-accordion-meta {
        flex-wrap: wrap;
    }

    .wls-notification {
        left: 16px;
        right: 16px;
        width: auto;
    }
}