/* Loyalty Notice */
body .woocommerce-info.mp-loyalty-notice {
    background: var(--action-ultra-light) !important;
    animation: none !important;
    color: var(--base);
    margin-bottom: 2em;
    padding: var(--space-s)!important;
}

body .woocommerce-info.mp-loyalty-notice::before {
    content: "unset" !important;
    display: none !important;
    
}

body .woocommerce-info.mp-loyalty-notice strong {
    color: var(--action);
}

/* Motivation Notice */
body .mp-loyalty-motivation-notice {
    margin-bottom: 2em;
    padding: var(--space-s)!important;
}

body .mp-loyalty-motivation-notice::before {
    content: "unset" !important;
    display: none !important;
}

body .mp-loyalty-motivation-notice .mp-notice-content {
    display: flex!important;
    flex-direction: column!important;
}

body .mp-notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mp-notice-text {
    display: flex;
    flex-direction: column;
    color: var(--primary);
}

.mp-apply-free-pizza {
    padding: var(--space-xs) var(--space-s)!important;
    border-radius: var(--cart-radius-main)!important;
    background: var(--action)!important;
    font-weight: 600!important;
    font-size: var(--text-m)!important;
    letter-spacing: 0!important;
}

.mp-apply-free-pizza:hover {
    background: var(--action-hover)!important;
}

.mp-apply-free-pizza:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loyalty Dashboard */
.mp-loyalty-dashboard {
    margin: 2em 0;
}

.mp-loyalty-card {
    background: var(--action);
    border-radius: 20px;
    padding: 2em;
    color: white;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.mp-loyalty-title {
    font-size: var(--text-l);
    color: var(--white);
    margin-bottom: 1.5em;
    text-align: center;
    font-weight: 700;

}

.mp-pizza-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8em;
    margin-bottom: 2em;
    padding: 0 1em;
}

.mp-pizza-slot {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mp-pizza-slot.filled {
    background: white;
    transform: scale(1.05);
}

.mp-pizza-slot.filled .mp-pizza-icon {
    color: var(--action);
}

.mp-pizza-slot:not(.filled) .mp-pizza-icon {
    color: rgba(255, 255, 255, 0.4);
}

.mp-pizza-slot.free {
    position: relative;
    animation: pulse-free 2s ease-in-out infinite;
    background: transparent;
}

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

.mp-pizza-icon {
    width: 36px;
    height: 36px;
}

.mp-loyalty-stats {
    text-align: center;
}

.mp-progress-text {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 1.5em;
    background: var(--white-trans-20);
    padding: var(--space-xs);
    border-radius: var(--radius-s);
}

.mp-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    margin-top: 1.5em;
}

.mp-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.mp-stat-number {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
}

.mp-stat-label {
    font-size: calc(var(--text-s) * 1.1);
}

/* Responsive */
@media (max-width: 480px) {
    .mp-pizza-progress {
        gap: 0.5em;
        padding: 0;
    }
    
    .mp-pizza-icon {
        width: 28px;
        height: 28px;
    }
    
    .mp-loyalty-card {
        padding: 1.5em;
    }
    
    .mp-free-badge {
        font-size: 0.7em;
    }
    
    .mp-stats-grid {
        gap: 1.5em;
    }
    
    .mp-stat-number {
        font-size: 2em;
    }
}

/* Free Pizza History Styles */
.mp-loyalty-history {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mp-loyalty-history h3 {
    margin: 0 0 15px 0;
    color: var(--action);
    font-size: var(--text-l);
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 8px;
    font-weight: 700;
}

.mp-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mp-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid var(--action);
    transition: background-color 0.2s ease;
}

.mp-history-item:hover {
    background: #f5f5f5;
}

.mp-history-pizza {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.mp-free-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.mp-pizza-name {
    font-weight: 600;
    color: #333;
    font-size: var(--text-m);
}

.mp-history-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.mp-order-number {
    font-size: var(--text-s);
    color: #666;
    font-weight: 500;
}

.mp-history-date {
    font-size: calc(var(--text-s) * 0.9);
    color: #999;
}

/* Mobile responsiveness for history */
@media (max-width: 768px) {
    .mp-loyalty-history {
        margin-top: 20px;
        padding: 15px;
    }
    
    .mp-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .mp-history-details {
        align-items: flex-start;
        width: 100%;
    }
    
    .mp-history-pizza {
        width: 100%;
    }
    
    .mp-free-icon {
        width: 24px;
        height: 24px;
    }
    
    .mp-pizza-name {
        font-size: var(--text-s);
    }
}

@media (max-width: 480px) {
    .mp-history-item {
        padding: 10px;
        border-left-width: 2px;
    }
    
    .mp-history-pizza {
        gap: 8px;
    }
    
    .mp-free-icon {
        width: 20px;
        height: 20px;
    }
}