/* WooCommerce Web Customizations - My Account Styles */

/* Profile Form Styles */
.wc-web-customizations-profile-form {
    max-width: 800px;
    margin: 0 auto;
}

.wc-web-customizations-profile-form h3 {
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

.wc-web-customizations-profile-form .form-row {
    margin-bottom: 1.5rem;
}

.wc-web-customizations-profile-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.wc-web-customizations-profile-form .required {
    color: #dc3545;
}

.wc-web-customizations-profile-form input,
.wc-web-customizations-profile-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.wc-web-customizations-profile-form input:focus,
.wc-web-customizations-profile-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.wc-web-customizations-profile-form fieldset {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.wc-web-customizations-profile-form legend {
    font-weight: 600;
    color: #495057;
    padding: 0 1rem;
}

/* Password Form Styles */
.wc-web-customizations-password-form {
    max-width: 600px;
    margin: 0 auto;
}

.wc-web-customizations-password-form h3 {
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

.wc-web-customizations-password-form .form-row {
    margin-bottom: 1.5rem;
}

.wc-web-customizations-password-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.wc-web-customizations-password-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.wc-web-customizations-password-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Rewards Section Styles */
.wc-web-customizations-rewards {
    max-width: 1000px;
    margin: 0 auto;
}

.wc-web-customizations-rewards h3 {
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

/* Loyalty Points Display */
.loyalty-points-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.points-balance-card {
    background: linear-gradient(135deg, #7f1426 0%, #7f1426db 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.points-balance-card h4 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
	color: #fff;
}

.points-balance-card p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.points-history-section {
    padding: 2rem;
}

.points-history-section h5 {
    color: #495057;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease;
}

.history-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-description {
    flex: 1;
    margin-right: 1rem;
}

.history-description .description-text {
    font-weight: 500;
    color: #495057;
}

.history-description .description-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.history-points {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    min-width: 80px;
    text-align: center;
}

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

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

/* Redemption Products */
.redemption-products-section {
    padding: 2rem;
    border-top: 1px solid #e9ecef;
}

.redemption-products-section h5 {
    color: #495057;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.redemption-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-option:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-5px);
}

.product-option h6 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.product-option .points-required {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-option .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.product-option .btn:hover {
    transform: scale(1.05);
}

.product-option.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.product-option.disabled .btn {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Loading States */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.loading-spinner::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

/* Error and Success Messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #dc3545;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #28a745;
}

/* Order Type Field */
.order-type-field {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
}

.order-type-field h3 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.25rem;
    font-weight: 600;
}

.order-type-field select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.order-type-field select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Button Styles */
.woocommerce-Button {
    background: #667eea;
    border-color: #667eea;
    color: white;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.woocommerce-Button:hover {
    background: #5a6fd8;
    border-color: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-web-customizations-profile-form,
    .wc-web-customizations-password-form,
    .wc-web-customizations-rewards {
        padding: 0 1rem;
    }
    
    .points-balance-card {
        padding: 1.5rem;
    }
    
    .points-balance-card h4 {
        font-size: 2rem;
    }
    
    .redemption-products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-option {
        padding: 1.5rem;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .history-points {
        align-self: flex-end;
    }
    
    .order-type-field {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* WooCommerce Integration Enhancements */
.woocommerce-MyAccount-navigation {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: column;
    gap: 0.5rem;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #495057;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation a.is-active {
    background: #7F1426;
    color: white;
}

.woocommerce-MyAccount-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
