/*
Theme Name: VM Theme
Theme URI: http://www.wpbeaverbuilder.com
Version: 2.25.21
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: http://www.fastlinemedia.com
template: bb-theme
Text Domain: vmtheme
Domain Path: /languages/
*/

/* Add your custom styles here... */

/* WooCommerce Orders Layout */

.woocommerce-MyAccount-content {
    .orders-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid #e1e5e9;
    }

    .orders-title {
        font-size: 24px;
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
    }

    .orders-controls {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .orders-filter-select {
        padding: 8px 12px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        background: #fff;
        color: #495057;
        font-size: 14px;
        min-width: 140px;
    }

    .woocommerce-orders-cards {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0;
    }

    .order-container {
        background: #fff;
        border: 1px solid #e1e5e9;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: box-shadow 0.2s ease;
    }

    .order-container:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    /* Order Summary Header */
    .order-summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: #f8f9fa;
        border-bottom: 1px solid #e1e5e9;
    }

    .order-info-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        flex: 1;
    }

    .order-info-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .order-info-item .label {
        font-size: 12px;
        color: #6c757d;
        font-weight: 500;
    }

    .order-info-item .value {
        font-size: 14px;
        color: #2c3e50;
        font-weight: 600;
    }

    .order-info-item .value.status-completed {
        color: #28a745;
    }

    .order-info-item .value.status-processing {
        color: #ffc107;
    }

    .order-info-item .value.status-pending {
        color: #dc3545;
    }

    .order-info-item .value.status-delivered {
        color: #28a745;
    }

    .order-actions-header {
        display: flex;
        gap: 10px;
        margin-left: 20px;
    }

    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }

  
    .btn-primary {
        background: #6f42c1;
        color: white;
    }

    .btn-primary:hover {
        background: #5a2d91;
        color: white;
        text-decoration: none;
    }

    .btn-secondary {
        background: #fff;
        color: #6c757d;
        border: 1px solid #dee2e6;
    }

    .btn-secondary:hover {
        background: #f8f9fa;
        border-color: #adb5bd;
    }

    /* Delivery Info */
    .delivery-info {
        padding: 12px 20px;
        background: #e3f2fd;
        color: #1976d2;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .delivery-info i {
        font-size: 16px;
    }

    /* Products List */
    .order-products {
        padding: 0;
    }

    .product-item {
        display: flex;
        padding: 20px;
        border-bottom: 1px solid #f1f3f4;
        transition: background-color 0.2s ease;
    }

    .product-item:last-child {
        border-bottom: none;
    }

    .product-item:hover {
        background: #f8f9fa;
    }

    .product-thumbnail {
        flex-shrink: 0;
        width: 100px;
        height: 100px;
        margin-right: 20px;
        border-radius: 8px;
        overflow: hidden;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e1e5e9;
    }

    .product-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

     .product-thumbnail .no-image {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 24px;
    }

    .product-details {
        flex: 1;
        min-width: 0;
    }

    .product-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 8px;
    }

    .product-title {
        font-size: 18px;
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
        line-height: 1.4;
    }

    .product-price {
        font-size: 18px;
        font-weight: 700;
        color: #2c3e50;
        white-space: nowrap;
        margin-left: 15px;
    }

    .product-description {
        font-size: 14px;
        color: #6c757d;
        line-height: 1.5;
        margin: 8px 0;
    }

    .product-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 12px;
    }

    .product-attribute,
    .product-quantity {
        font-size: 13px;
        color: #495057;
    }

    .product-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .btn-link {
        color: #6f42c1;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }

    .btn-link:hover {
        color: #5a2d91;
        text-decoration: underline;
    }

    .separator {
        color: #dee2e6;
        margin: 0 4px;
    }

    /* Responsive design */
    @media (max-width: 768px) {
        .orders-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }
        
        .orders-title {
            font-size: 20px;
        }
        
        .order-summary {
            flex-direction: column;
            gap: 20px;
            align-items: stretch;
        }
        
        .order-info-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }
        
        .order-actions-header {
            margin-left: 0;
            justify-content: center;
        }
        
        .product-item {
            flex-direction: column;
            align-items: flex-start;
            padding: 16px;
        }
        
        .product-thumbnail {
            margin-right: 0;
            margin-bottom: 15px;
            align-self: center;
            width: 80px;
            height: 80px;
        }
        
        .product-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
        
        .product-price {
            margin-left: 0;
            font-size: 16px;
        }
        
        .product-meta {
            flex-direction: column;
            gap: 8px;
        }
        
        .product-actions {
            justify-content: center;
            margin-top: 10px;
        }
    }

    /* WooCommerce Events Layout */
    .events-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid #e1e5e9;
    }

    .events-title {
        font-size: 24px;
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
    }

    .events-tabs {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .tab-link {
        padding: 10px 20px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        color: #6c757d;
        border: 1px solid #dee2e6;
        transition: all 0.2s ease;
    }

    .tab-link:hover {
        color: #495057;
        border-color: #adb5bd;
        text-decoration: none;
    }

    .tab-link.active {
        background: #6f42c1;
        color: white;
        border-color: #6f42c1;
    }

    .woocommerce-events-cards {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0;
    }

    .event-container {
        background: #fff;
        border: 1px solid #e1e5e9;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: box-shadow 0.2s ease;
    }

    .event-container:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    /* Event Summary Header */
    .event-summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: #f8f9fa;
        border-bottom: 1px solid #e1e5e9;
    }

    .event-info-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        flex: 1;
    }

    .event-info-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .event-info-item .label {
        font-size: 12px;
        color: #6c757d;
        font-weight: 500;
    }

    .event-info-item .value {
        font-size: 14px;
        color: #2c3e50;
        font-weight: 600;
    }

    .event-info-item .value.status-registered {
        color: #28a745;
    }

    .event-info-item .value.status-processing {
        color: #ffc107;
    }

    .event-info-item .value.status-pending {
        color: #dc3545;
    }

    .event-info-item .value.status-completed {
        color: #28a745;
    }

    .event-info-item .value.status-cancelled {
        color: #6c757d;
    }

    .event-actions-header {
        display: flex;
        gap: 10px;
        margin-left: 20px;
    }

    /* Event Details Section */
    .event-details-section {
        padding: 20px;
    }

    .event-product-info {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
    }

    .event-thumbnail {
        flex-shrink: 0;
        width: 100px;
        height: 100px;
        border-radius: 8px;
        overflow: hidden;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e1e5e9;
    }

    .event-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .event-thumbnail .no-image {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 24px;
    }

    .event-product-details {
        flex: 1;
        min-width: 0;
    }

    .event-product-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .event-product-title {
        font-size: 18px;
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
        line-height: 1.4;
    }

    .event-product-title a {
        color: inherit;
        text-decoration: none;
    }

    .event-product-title a:hover {
        color: #6f42c1;
        text-decoration: none;
    }

    .event-timezone {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #6c757d;
        font-size: 14px;
        white-space: nowrap;
    }

    .event-duration {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
    }

    .duration-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #495057;
    }

    .duration-item i {
        color: #6c757d;
        width: 16px;
    }

    .event-additional-info {
        margin-top: 15px;
    }

    .toggle-details-btn {
        background: none;
        border: none;
        color: #6f42c1;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0;
        transition: color 0.2s ease;
    }

    .toggle-details-btn:hover {
        color: #5a2d91;
    }

    .toggle-icon {
        transition: transform 0.2s ease;
    }

    .additional-details {
        margin-top: 10px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 6px;
        font-size: 14px;
        line-height: 1.5;
    }

    /* Event Actions */
    .event-actions-section {
        border-top: 1px solid #f1f3f4;
        padding-top: 15px;
    }

    .btn-cancel {
        background: #dc3545;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: background-color 0.2s ease;
    }

    .btn-cancel:hover {
        background: #c82333;
    }

    .btn-cancel i {
        font-size: 12px;
    }
}
/* Events Responsive Design */
@media (max-width: 768px) {
    .events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .events-title {
        font-size: 20px;
    }
    
    .events-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .event-summary {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .event-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .event-actions-header {
        margin-left: 0;
        justify-content: center;
    }
    
    .event-product-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .event-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .event-product-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    
    .event-duration {
        align-items: center;
    }
    
    .duration-item {
        justify-content: center;
    }
}

/* Events History Specific Styles */
.event-history {
    opacity: 0.95;
}

.event-history .event-thumbnail .no-image {
    color: #6c757d;
}

.event-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.event-status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.event-status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.event-status-badge.status-no-show {
    background: #f1f3f4;
    color: #6c757d;
}

.event-status-badge i {
    font-size: 8px;
}

.event-duration-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.event-duration-history .duration-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
}

.event-duration-history .duration-item i {
    color: #6c757d;
    width: 16px;
}

.event-history-actions {
    margin-top: 15px;
}

.history-action-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-action-group .btn-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.history-action-group .btn-link:last-of-type {
    border-bottom: none;
}

.event-feedback {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.feedback-label {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.rating-stars i {
    font-size: 16px;
    color: #dee2e6;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-stars i:hover {
    color: #ffc107;
}

.rating-stars i.fas {
    color: #ffc107;
}

/* Book Again Button */
.btn-primary i {
    margin-right: 6px;
}

/* Events History Responsive */
@media (max-width: 768px) {
    .event-history-actions {
        margin-top: 10px;
    }
    
    .history-action-group {
        gap: 10px;
    }
    
    .event-duration-history {
        padding: 10px;
    }
    
    .event-status-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .rating-stars i {
        font-size: 14px;
    }
}

/* WooCommerce Courses Layout */
.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.courses-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.courses-tabs {
    display: flex;
    gap: 20px;
    align-items: center;
}

.woocommerce-courses-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0;
}

.course-container {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.course-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Course Summary Header */
.course-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.course-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    flex: 1;
}

.course-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-info-item .label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.course-info-item .value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.course-info-item .value.status-registered {
    color: #17a2b8;
}

.course-info-item .value.status-in-progress {
    color: #ffc107;
}

.course-info-item .value.status-completed {
    color: #28a745;
}

.course-info-item .value.status-failed {
    color: #dc3545;
}

.course-info-item .value.status-incomplete {
    color: #fd7e14;
}

.course-actions-header {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

/* Course Progress Section */
.course-progress-section {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #6f42c1;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6f42c1, #8b5cf6);
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
}

/* Course Details Section */
.course-details-section {
    padding: 20px;
}

.course-product-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.course-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e5e9;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-thumbnail .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 24px;
}

.course-product-details {
    flex: 1;
    min-width: 0;
}

.course-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.course-product-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

.course-product-title a {
    color: inherit;
    text-decoration: none;
}

.course-product-title a:hover {
    color: #6f42c1;
    text-decoration: none;
}

.course-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.course-status-badge.status-registered {
    background: #d1ecf1;
    color: #0c5460;
}

.course-status-badge.status-in-progress {
    background: #fff3cd;
    color: #856404;
}

.course-status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.course-status-badge.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.course-status-badge.status-incomplete {
    background: #fdebd0;
    color: #8a2a00;
}

.course-status-badge i {
    font-size: 8px;
}

.course-duration {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.course-duration .duration-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
}

.course-duration .duration-item i {
    color: #6c757d;
    width: 16px;
}

.course-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #495057;
    padding: 6px 12px;
    background: #e9ecef;
    border-radius: 16px;
}

.stat-item i {
    color: #6c757d;
    font-size: 12px;
}

/* Course Actions */
.course-actions-section {
    border-top: 1px solid #f1f3f4;
    padding-top: 15px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-launch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-launch:hover:not(.disabled) {
    background: #218838;
    color: white;
    text-decoration: none;
}

.btn-launch.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-certificate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-certificate:hover {
    background: #138496;
    color: white;
    text-decoration: none;
}

.action-buttons .btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    color: #6f42c1;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.action-buttons .btn-link:hover {
    background: #f8f9fa;
    border-color: #6f42c1;
    text-decoration: none;
}

/* Courses Responsive Design */
@media (max-width: 768px) {
    .courses-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .courses-title {
        font-size: 20px;
    }
    
    .courses-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .course-summary {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .course-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .course-actions-header {
        margin-left: 0;
        justify-content: center;
    }
    
    .course-product-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .course-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .course-product-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    
    .course-duration {
        align-items: center;
    }
    
    .course-duration .duration-item {
        justify-content: center;
    }
    
    .course-stats {
        justify-content: center;
    }
}

/* WooCommerce Credits Layout */
.credits-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.credits-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.credits-tabs {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Credit Balance Section */
.credit-balance-section {
    margin-bottom: 30px;
}

.balance-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.credit-balances {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.credit-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.credit-balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.balance-info h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.balance-icon {
    font-size: 32px;
    opacity: 0.7;
}

/* Credit Filters Section */
.credit-filters-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e1e5e9;
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.date-filters {
    display: flex;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* Credit Transactions Section */
.credit-transactions-section {
    margin-bottom: 30px;
}

.transactions-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.credit-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.credit-transaction-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.credit-transaction-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.transaction-credit {
    border-left: 4px solid #28a745;
}

.transaction-debit {
    border-left: 4px solid #dc3545;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.transaction-main-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.transaction-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
}

.transaction-amount.credit {
    color: #28a745;
}

.transaction-amount.debit {
    color: #dc3545;
}

.transaction-amount i {
    font-size: 20px;
}

.transaction-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.transaction-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.credit-type-badge {
    background: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.transaction-date {
    font-size: 13px;
    color: #6c757d;
}

.transaction-status {
    margin-left: 15px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.status-credit {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-debit {
    background: #f8d7da;
    color: #721c24;
}

.transaction-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-info,
.transaction-notes,
.transaction-reference {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.product-info i,
.transaction-notes i,
.transaction-reference i {
    color: #6c757d;
    width: 16px;
    flex-shrink: 0;
}

.product-label,
.notes-label,
.reference-label {
    font-weight: 500;
    color: #495057;
    min-width: 80px;
}

.product-name,
.notes-content,
.reference-id {
    color: #6c757d;
}

/* Credit Pagination */
.credit-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pagination-info {
    font-size: 14px;
    color: #495057;
}

/* Empty State */
.credit-empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.empty-state-content {
    text-align: center;
    max-width: 400px;
}

.empty-state-icon {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.empty-state-message {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

/* Generic Page Empty State - Same styling as credit-empty-state */
.page-empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

/* Credits Responsive Design */
@media (max-width: 768px) {
    .credits-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .credits-title {
        font-size: 20px;
    }
    
    .credits-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .credit-balances {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .date-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .transaction-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .transaction-main-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .transaction-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .transaction-status {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .credit-pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ========================================
   HORIZONTAL NAVIGATION MENU STYLES
   ======================================== */

/* Override default WooCommerce navigation styles */
.woocommerce-account .woocommerce-MyAccount-navigation.navigation-top-bar {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
    clear: both !important;

    ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 4px 12px;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #dee2e6 transparent;
        scroll-behavior: smooth;
        gap: 16px;
        align-items: center;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    ul::-webkit-scrollbar {
        height: 4px;
    }

    ul::-webkit-scrollbar-track {
        background: transparent;
    }
    
    ul::-webkit-scrollbar-thumb {
        background: #dee2e6;
        border-radius: 2px;
    }
    
    ul::-webkit-scrollbar-thumb:hover {
        background: #adb5bd;
    }
    
}

.woocommerce-account .woocommerce-MyAccount-navigation.navigation-left-side {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
    clear: both !important;

    ul {
        list-style: none;
        margin: 0;
        padding: 4px 12px;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #dee2e6 transparent;
        scroll-behavior: smooth;
        gap: 16px;
        align-items: center;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    ul::-webkit-scrollbar {
        height: 4px;
    }

    ul::-webkit-scrollbar-track {
        background: transparent;
    }
    
    ul::-webkit-scrollbar-thumb {
        background: #dee2e6;
        border-radius: 2px;
    }
    
    ul::-webkit-scrollbar-thumb:hover {
        background: #adb5bd;
    }
    
}


/* Main Navigation Container */
.woocommerce-MyAccount-navigation.horizontal-menu {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
    padding: 0;
    position: relative;
}

.account-horizontal-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 5px;
    position: relative;
}

/* Horizontal account nav menu base */
.horizontal-nav-menu {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 40px;
    margin: 0;
    list-style: none;
}
.horizontal-nav-menu::-webkit-scrollbar { display: none; }

/* Arrow buttons and edge fades */
.nav-scroll-button {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    background: #000;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
    opacity: .85;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}
.nav-scroll-button:focus,
.nav-scroll-button:active { position: absolute !important; outline: none; }
.nav-scroll-button.scroll-left { left: 4px; }
.nav-scroll-button.scroll-right { right: 4px; }
.nav-scroll-button:hover { opacity: 1; }

.nav-gradient { position: absolute; top: 0; bottom: 0; width: 40px; z-index: 1; pointer-events: none; }
.nav-gradient.left { left: 0; background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); }
.nav-gradient.right { right: 0; background: linear-gradient(270deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); }
.hidden { opacity: 0; pointer-events: none; }





/* Scroll buttons for navigation */
.nav-scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    font-size: 14px;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.event-actions-header a {
    line-height: .75;
}
.nav-scroll-button:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-scroll-button.scroll-left {
    left: 8px;
}

.nav-scroll-button.scroll-right {
    right: 8px;
}

.nav-scroll-button.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Navigation Items */
.horizontal-nav-menu .nav-item {
    position: relative;
    flex-shrink: 0;
}

/* Navigation Links */
.horizontal-nav-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 22px 28px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.horizontal-nav-menu .nav-link:hover {
    color: #495057;
    text-decoration: none;
}

/* Active State */
.horizontal-nav-menu .nav-item.is-active .nav-link {
    color: #212529;
    font-weight: 700;
    border-bottom-color: #212529;
}

/* Hide icons for clean text-only appearance */
.horizontal-nav-menu .nav-link i {
    display: none;
}

/* Text */
.horizontal-nav-menu .nav-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}



/* Responsive Design */
@media (max-width: 768px) {
    .account-horizontal-nav {
        padding: 6px 16px;
    }
    
    .horizontal-nav-menu {
        padding: 4px 10px;
        gap: 12px;
    }
    
    .horizontal-nav-menu .nav-link {
        padding: 20px 24px;
        font-size: 14px;
    }
    

    
    .nav-scroll-button {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .horizontal-nav-menu {
        justify-content: flex-start;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        padding: 4px 8px;
        gap: 8px;
    }
    
    .horizontal-nav-menu .nav-link {
        padding: 18px 20px;
        font-size: 13px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 15px;
    }
    
    .nav-scroll-button {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}



/* MyAccount Page Layout Adjustments */
.woocommerce-account .woocommerce {
    display: block;
}

/* Override default content area styles */
.woocommerce-account .woocommerce-MyAccount-content {
    background: #ffffff;
    padding: 30px;
    max-width: 1200px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.woocommerce-account .woocommerce-MyAccount-content.navigation-top-bar {
    width: 100% !important;
    float: none !important;
    background: #ffffff;
    margin: 0 auto !important;
}

.woocommerce-account .woocommerce-MyAccount-content.navigation-left-side {
    margin: 0 auto !important;
}



/* Content spacing adjustments */
.woocommerce-account .woocommerce-MyAccount-content > *:first-child {
    margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content > *:last-child {
    margin-bottom: 0;
}

/* Forms in MyAccount pages */
.woocommerce-account .woocommerce-MyAccount-content form .form-row {
    margin-bottom: 16px;
}

.woocommerce-account .woocommerce-MyAccount-content form input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content form textarea,
.woocommerce-account .woocommerce-MyAccount-content form select {
    border: 1px solid #ced4da;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: border-color 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-content form input:focus,
.woocommerce-account .woocommerce-MyAccount-content form textarea:focus,
.woocommerce-account .woocommerce-MyAccount-content form select:focus {
    border-color: #495057;
    outline: none;
} 

/* WooCommerce Memberships Layout */
.memberships-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.memberships-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.memberships-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.memberships-tabs {
    display: flex;
    gap: 5px;
    align-items: center;
}

.woocommerce-memberships-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0;
}

.membership-container {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.membership-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Membership Summary Header */
.membership-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.membership-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    flex: 1;
}

.membership-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.membership-info-item .label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.membership-info-item .value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.membership-info-item .value.status-active {
    color: #28a745;
}

.membership-info-item .value.status-pending {
    color: #ffc107;
}

.membership-info-item .value.status-expired {
    color: #dc3545;
}

.membership-info-item .value.status-cancelled {
    color: #6c757d;
}

.membership-actions-header {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

/* Membership Details Section */
.membership-details-section {
    padding: 20px;
}

.membership-product-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.membership-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e5e9;
}

.membership-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.membership-thumbnail .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 24px;
}

.membership-product-details {
    flex: 1;
    min-width: 0;
}

.membership-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.membership-product-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

.membership-product-title a {
    color: inherit;
    text-decoration: none;
}

.membership-product-title a:hover {
    color: #6f42c1;
    text-decoration: none;
}

.membership-payment-method {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 14px;
    white-space: nowrap;
}

.membership-dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
}

.date-item i {
    color: #6c757d;
    width: 16px;
}

/* Memberships Responsive Design */
@media (max-width: 768px) {
    .memberships-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .memberships-title {
        font-size: 20px;
    }
    
    .memberships-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .membership-summary {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .membership-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .membership-actions-header {
        margin-left: 0;
        justify-content: center;
    }
    
    .membership-product-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .membership-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .membership-product-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    
    .membership-dates {
        align-items: center;
        text-align: center;
    }
    
    .date-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .membership-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .membership-actions-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .membership-dates {
        gap: 8px;
    }
    
    .date-item {
        justify-content: center;
    }
} 
.woocommerce .woocommerce-MyAccount-navigation ul, .woocommerce-page .woocommerce-MyAccount-navigation ul {
    margin-bottom: 0;
}
.results-count {
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
}

li.nav-icon {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	align-content: center;
}

li.nav-icon .nav-item-icon {
    margin-right: 5px; 
    margin-top: -5px;
}