/* WooCommerce Membership Referral - Product Flow Styles */

.wc-mr-product-flow {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    padding: 0px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.wc-mr-step {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.wc-mr-step.active {
    display: block;
    animation: slideIn 0.4s ease;
    border-color: #667eea;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc-mr-step-header {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.wc-mr-step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    min-width: 60px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    line-height: 1 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-mr-step-title {
    margin: 0 !important;
    font-size: 26px !important;
    color: #2c3e50 !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

.wc-mr-step-content {
    padding: 20px 0;
}

/* Membership Info */
.wc-mr-membership-info {
    max-width: 100%;
}

.wc-mr-price-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.wc-mr-price-label {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.95;
}

.wc-mr-price-amount {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

.wc-mr-price-amount .woocommerce-Price-amount {
    color: white !important;
}

.wc-mr-price-note {
    font-size: 13px;
    opacity: 0.85;
    font-style: italic;
    display: block;
    width: 100%;
    margin-top: 8px;
}

.wc-mr-membership-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.wc-mr-membership-description p {
    margin-bottom: 15px;
}

.wc-mr-membership-description p:last-child {
    margin-bottom: 0;
}

/* Grocery Info */
.wc-mr-grocery-info {
    margin-bottom: 30px;
}

.wc-mr-grocery-details {
    width: 100%;
}

.wc-mr-grocery-details h4 {
    font-size: 24px;
    margin: 0 0 25px;
    color: #2c3e50;
    font-weight: 700;
}

.wc-mr-grocery-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 25px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.wc-mr-grocery-description p {
    margin-bottom: 15px;
}

.wc-mr-grocery-description p:last-child {
    margin-bottom: 0;
}

.wc-mr-benefits-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #d4e9f7 100%);
    border-left: 5px solid #667eea;
    padding: 25px 30px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.wc-mr-benefits-box h5 {
    font-size: 20px;
    margin: 0 0 20px !important;
    color: #2c3e50;
    font-weight: 700;
}

.wc-mr-benefits-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-mr-benefits-list li {
    padding: 12px 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px;
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.6;
}

.wc-mr-benefits-list li::before {
    display: none !important;
}

.wc-mr-benefits-list li strong {
    color: #667eea;
    font-weight: 700;
}

.wc-mr-benefits-list .dashicons {
    color: #28a745 !important;
    font-size: 24px !important;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Buttons */
.wc-mr-next-step,
.wc-mr-prev-step,
.wc-mr-add-both-to-cart {
    padding: 16px 40px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 10px;
    text-transform: none !important;
    letter-spacing: 0.3px;
    text-decoration: none !important;
}

.wc-mr-next-step {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.wc-mr-next-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.wc-mr-add-both-to-cart {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.wc-mr-add-both-to-cart:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea57f 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.5);
}

.wc-mr-add-both-to-cart.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.wc-mr-prev-step {
    background: #6c757d !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.wc-mr-prev-step:hover {
    background: #5a6268 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.wc-mr-step-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

/* Total Summary */
.wc-mr-total-summary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    padding: 30px 40px;
    border-radius: 12px;
    margin-top: 25px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    text-align: center;
}

.wc-mr-summary-highlight {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px;
    line-height: 1.6;
    color: white !important;
}

.wc-mr-summary-highlight .dashicons {
    color: #ffd700 !important;
    font-size: 32px !important;
    width: 32px !important;
    height: 32px !important;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Error */
.wc-mr-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #dc3545;
    font-size: 15px;
}

/* Loading */
.wc-mr-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .wc-mr-product-flow {
        padding: 25px 20px;
    }
    
    .wc-mr-step {
        padding: 25px 20px;
    }
    
    .wc-mr-step-header {
        gap: 15px;
    }
    
    .wc-mr-step-number {
        min-width: 50px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 13px !important;
    }
    
    .wc-mr-step-title {
        font-size: 20px !important;
    }
    
    .wc-mr-price-tag {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px;
    }
    
    .wc-mr-price-amount {
        font-size: 28px;
    }
    
    .wc-mr-price-label {
        font-size: 16px;
    }
    
    .wc-mr-summary-highlight {
        flex-direction: column !important;
        font-size: 18px !important;
        gap: 10px;
    }
    
    .wc-mr-step-actions {
        flex-direction: column-reverse;
    }
    
    .wc-mr-next-step,
    .wc-mr-prev-step,
    .wc-mr-add-both-to-cart {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 30px !important;
    }
    
    .wc-mr-membership-description,
    .wc-mr-grocery-description {
        padding: 15px;
        font-size: 15px;
    }
    
    .wc-mr-benefits-box {
        padding: 20px;
    }
}

/* Referral count badge in admin */
.wc-mr-referral-count {
    font-weight: 600;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    display: inline-block;
}
