
/* Downloads Table Customization */
.gevents-downloads-table-wrapper .shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.gevents-downloads-table-wrapper .shop_table thead th {
    background: #f9fafb;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    color: var(--text-light);
    border-bottom: 1px solid #e5e7eb;
}

.gevents-downloads-table-wrapper .shop_table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.gevents-downloads-table-wrapper .shop_table tbody tr:last-child td {
    border-bottom: none;
}

.gevents-downloads-table-wrapper .woocommerce-MyAccount-downloads-file {
    font-weight: 600;
    color: var(--primary-color);
}

.gevents-downloads-table-wrapper .woocommerce-MyAccount-downloads-file a {
    text-decoration: none;
    color: inherit;
}

.gevents-downloads-table-wrapper .download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s;
}

.gevents-downloads-table-wrapper .download-btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .gevents-downloads-table-wrapper .shop_table {
        display: block;
    }
    
    .gevents-downloads-table-wrapper .shop_table thead {
        display: none;
    }
    
    .gevents-downloads-table-wrapper .shop_table tbody {
        display: block;
    }
    
    .gevents-downloads-table-wrapper .shop_table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 1rem;
    }
    
    .gevents-downloads-table-wrapper .shop_table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
    }
    
    .gevents-downloads-table-wrapper .shop_table td::before {
        content: attr(data-title);
        font-weight: 600;
        font-size: 0.875rem;
        color: var(--text-light);
        margin-right: 1rem;
    }
}

/* ============================
   MY ACCOUNT PAGE STYLES
   ============================ */

/* Account Wrapper */
.gevents-account-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    overflow: visible;
    /* Override body overflow-x: hidden to prevent sidebar clipping */
}

/* Fix body overflow for account pages only */
body.woocommerce-account {
    overflow-x: visible;
}

body.woocommerce-account html {
    overflow-x: visible;
}

/* Account Header */
.gevents-account-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.account-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.account-avatar {
    flex-shrink: 0;
}

.account-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.account-user-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: white;
}

.account-user-email {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Account Stats */
.account-header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.account-stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Account Grid Layout */
.gevents-account-grid {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    min-height: 100%;
}

/* Sidebar Navigation */
.gevents-account-sidebar {
    flex: 0 0 260px;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    height: auto;
    /* Remove sticky positioning that can cause cut-off */
}

.woocommerce-MyAccount-navigation {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid #f3f4f6;
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: visible;
}

.woocommerce-MyAccount-navigation a svg {
    flex-shrink: 0;
    flex-basis: 20px;
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.woocommerce-MyAccount-navigation a span {
    flex: 1;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.woocommerce-MyAccount-navigation a:hover {
    background: #f9fafb;
    color: var(--primary-color);
}

.woocommerce-MyAccount-navigation a:hover svg {
    opacity: 1;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: #eff6ff;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.woocommerce-MyAccount-navigation li.is-active a svg {
    opacity: 1;
}

/* Main Content */
.gevents-account-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    height: auto;
    min-height: 100%;
}

/* Orders Table Styling */
.woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-MyAccount-content .shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
    table-layout: auto;
    /* Prevent table from causing horizontal overflow */
}

.woocommerce-MyAccount-content .woocommerce-orders-table thead th,
.woocommerce-MyAccount-content .shop_table thead th {
    background: #f9fafb;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
}

.woocommerce-MyAccount-content .woocommerce-orders-table tbody td,
.woocommerce-MyAccount-content .shop_table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #374151;
}

.woocommerce-MyAccount-content .woocommerce-orders-table tbody tr:last-child td,
.woocommerce-MyAccount-content .shop_table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-MyAccount-content .woocommerce-orders-table tbody tr:hover,
.woocommerce-MyAccount-content .shop_table tbody tr:hover {
    background: #f9fafb;
}

/* Order Number Link */
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a,
.woocommerce-MyAccount-content .order-number a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a:hover,
.woocommerce-MyAccount-content .order-number a:hover {
    text-decoration: underline;
}

/* Order Status */
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status mark,
.woocommerce-MyAccount-content .order-status mark {
    background: none;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
}

.woocommerce-MyAccount-content mark.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.woocommerce-MyAccount-content mark.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.woocommerce-MyAccount-content mark.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.woocommerce-MyAccount-content mark.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.woocommerce-MyAccount-content mark.status-on-hold {
    background: #e5e7eb;
    color: #374151;
}

/* View Button */
.woocommerce-MyAccount-content .woocommerce-button,
.woocommerce-MyAccount-content .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.woocommerce-MyAccount-content .woocommerce-button:hover,
.woocommerce-MyAccount-content .button:hover {
    background: var(--secondary-color);
    color: white;
}

/* Pagination */
.woocommerce-pagination {
    margin-top: 2rem;
    text-align: center;
}

/* ============================
   ORDER VIEW PAGE STYLES
   ============================ */

.gevents-order-view {
    max-width: 100%;
    overflow: visible;
    /* Ensure order view content is not clipped */
}

/* Force visibility of order details section */
.gevents-order-view .woocommerce-order-details,
.gevents-order-view section.woocommerce-order-details {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 2rem 0;
}

.gevents-order-view .woocommerce-order-details__title {
    display: block !important;
    visibility: visible !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.gevents-order-view .woocommerce-table--order-details {
    display: table !important;
    visibility: visible !important;
    width: 100%;
}

/* Order Header */
.order-view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.order-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-status-badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-weight: 600;
}

.order-status-badge.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.order-status-badge.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.order-status-badge.status-cancelled,
.order-status-badge.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.order-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Order Summary Cards */
.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.order-summary-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-card-content {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

/* Sections */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title svg {
    color: var(--primary-color);
}

/* Order Downloads Section */
.order-downloads-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.download-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.download-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.download-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.download-expires {
    font-size: 0.875rem;
    color: #6b7280;
}

.download-arrow {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Order Items Section */
.order-items-section {
    margin-bottom: 2rem;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-item-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.order-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.order-item-total {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.item-total-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.item-total-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.btn-download-item-ticket {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.btn-download-item-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white !important;
}

/* Order Tickets Download Button */
.order-tickets-download-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.btn-download-tickets {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.btn-download-tickets:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tickets-download-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.95;
    margin: 0;
}

/* Order Totals */
.order-totals-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* ============================
   FOOEVENTS INTEGRATION STYLES
   ============================ */

/* Force visibility of all FooEvents elements */
.gevents-order-view .fooevents_download_tickets,
.gevents-order-view .WooCommerceEventsMyTicketsTable,
.gevents-order-view .fooevents-ticket-download-section,
.woocommerce-MyAccount-content .fooevents_download_tickets,
.woocommerce-MyAccount-content .WooCommerceEventsMyTicketsTable,
.woocommerce-order-details .fooevents_download_tickets,
.woocommerce-order-details .WooCommerceEventsMyTicketsTable {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* FooEvents ticket download buttons injected via hooks */
.gevents-order-view .fooevents_download_tickets,
.gevents-order-view .WooCommerceEventsMyTicketsTable,
.gevents-order-view .fooevents-ticket-download-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
}

.gevents-order-view .fooevents_download_tickets h2,
.gevents-order-view .WooCommerceEventsMyTicketsTable h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* FooEvents download button styling */
.gevents-order-view .fooevents_download_tickets a,
.gevents-order-view .WooCommerceEventsMyTicketsTable a,
.gevents-order-view a[href*="TicketDownload"],
.gevents-order-view a[href*="fooevents"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem !important;
    background: white !important;
    color: var(--primary-color) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin: 0.5rem 0.5rem 0.5rem 0 !important;
    border: none !important;
}

.gevents-order-view .fooevents_download_tickets a:hover,
.gevents-order-view .WooCommerceEventsMyTicketsTable a:hover,
.gevents-order-view a[href*="TicketDownload"]:hover,
.gevents-order-view a[href*="fooevents"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    background: white !important;
}

/* FooEvents ticket table styling */
.gevents-order-view .WooCommerceEventsMyTicketsTable table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.gevents-order-view .WooCommerceEventsMyTicketsTable th {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
}

.gevents-order-view .WooCommerceEventsMyTicketsTable td {
    padding: 1rem;
    color: #374151;
    background: white;
}

/* FooEvents buttons in item meta */
.order-item-meta .fooevents_download_tickets,
.order-item-meta a[href*="TicketDownload"] {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
    background: #2563eb !important;
    color: white !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    margin-top: 0.75rem !important;
    border: none !important;
}

.order-item-meta .fooevents_download_tickets:hover,
.order-item-meta a[href*="TicketDownload"]:hover {
    background: #1d4ed8 !important;
}

/* FooEvents QR code section */
.gevents-order-view .fooevents-qr-code-section {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
}

/* Hide only Order Again button */
.woocommerce-order-details .order-again,
.woocommerce-order-details .woocommerce-order-again,
.woocommerce-MyAccount-content .order-again,
.woocommerce-MyAccount-content .woocommerce-order-again {
    display: none !important;
}

/* Order Totals */
.order-totals-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.order-totals-table {
    width: 100%;
    border-collapse: collapse;
}

.order-totals-table th,
.order-totals-table td {
    padding: 0.75rem;
    text-align: left;
}

.order-totals-table th {
    font-weight: 600;
    color: #6b7280;
}

.order-totals-table td {
    text-align: right;
    font-weight: 600;
}

.order-totals-table .order-total td,
.order-totals-table .order-total th {
    font-size: 1.25rem;
    color: var(--primary-color);
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
}

/* Order Details Grid */
.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.order-details-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
}

.card-title svg {
    color: var(--primary-color);
}

.order-details-card address {
    font-style: normal;
    line-height: 1.8;
    color: #6b7280;
}

/* ============================
   RESPONSIVE STYLES
   ============================ */

@media (max-width: 1024px) {
    .gevents-account-grid {
        flex-direction: column;
    }
    
    .gevents-account-sidebar {
        position: static;
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
    }
    
    .gevents-account-main {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .gevents-account-wrapper {
        padding: 1rem;
        overflow: visible;
    }
    
    .gevents-account-grid {
        overflow: visible;
    }
    
    .gevents-account-header {
        padding: 1.5rem;
    }
    
    .account-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .account-user-name {
        font-size: 1.5rem;
    }
    
    .account-header-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gevents-account-sidebar {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
    }
    
    .woocommerce-MyAccount-navigation {
        overflow: visible;
        height: auto;
    }
    
    .order-view-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .order-title {
        font-size: 1.5rem;
    }
    
    .order-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .order-item-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .order-item-image {
        margin: 0 auto;
    }
    
    .order-item-total {
        text-align: center;
    }
    
    .woocommerce-MyAccount-navigation a {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .gevents-account-main {
        padding: 1rem;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .account-header-stats {
        grid-template-columns: 1fr;
    }
    
    .order-item-card {
        padding: 0.875rem;
    }
    
    .btn-download-tickets {
        width: 100%;
    }
}
