.amitraflex-order-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.amitraflex-order-view__hero {
    background: linear-gradient(130deg, rgba(var(--amitraflex-primary-rgb), 0.12), rgba(255, 203, 168, 0.18));
    border: 1px solid rgba(var(--amitraflex-primary-rgb), 0.2);
    border-radius: 28px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.amitraflex-order-view__summary {
    max-width: 540px;
}

.amitraflex-order-view__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.55);
    margin: 0 0 0.35rem;
}

.amitraflex-order-view__title {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2.4rem);
    color: var(--amitraflex-heading);
}

.amitraflex-order-view__meta {
    margin: 0.4rem 0 0;
    color: rgba(15, 23, 42, 0.7);
    font-size: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.amitraflex-order-view__pill {
    min-width: 220px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.85);
    padding: 1.2rem 1.5rem;
    text-align: center;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.amitraflex-order-view__pill-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.amitraflex-order-view__pill-value {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.6rem;
    color: var(--amitraflex-heading);
}

.amitraflex-order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: capitalize;
    background: rgba(var(--amitraflex-primary-rgb), 0.12);
    color: var(--amitraflex-primary);
}

.amitraflex-order-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(var(--amitraflex-primary-rgb), 0.25);
}

.amitraflex-order-status-badge.status-completed {
    background: rgba(32, 201, 151, 0.18);
    color: #0f9d7a;
}

.amitraflex-order-status-badge.status-processing,
.amitraflex-order-status-badge.status-on-hold {
    background: rgba(255, 205, 110, 0.27);
    color: #b57400;
}

.amitraflex-order-status-badge.status-cancelled,
.amitraflex-order-status-badge.status-refunded,
.amitraflex-order-status-badge.status-failed {
    background: rgba(255, 77, 64, 0.18);
    color: #ff4d40;
}

.woocommerce-account .et-l--header,
.woocommerce-account .site-header,
.woocommerce-account #main-header {
    position: relative;
    z-index: 40;
}

.woocommerce-account .amitraflex-account-shell,
.woocommerce-account .amitraflex-account-shell__hero,
.woocommerce-account .amitraflex-account-shell__panel {
    position: relative;
    z-index: 1;
}

.woocommerce-account .site-main,
.woocommerce-account #main-content {
    position: relative;
    z-index: 2;
    padding-top: clamp(1rem, 2vw, 2.5rem);
}

/* ============================================================================
   ADDRESS SECTION - Billing & Shipping
   ============================================================================ */

/* Main Address Container - Target all possible structures */
.woocommerce-account .col2-set,
.woocommerce-account .woocommerce-Addresses,
.woocommerce-Addresses,
.woocommerce-Addresses .u-columns {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
    align-items: start !important;
    width: 100% !important;
}

/* Clear floats from WooCommerce default */
.woocommerce-account .col2-set::after,
.woocommerce-account .woocommerce-Addresses::after {
    content: '' !important;
    display: table !important;
    clear: both !important;
}

/* Address Cards - All possible selectors */
.woocommerce-account .col2-set .col-1,
.woocommerce-account .col2-set .col-2,
.woocommerce-account .woocommerce-Addresses > .woocommerce-Address,
.woocommerce-Addresses > .woocommerce-Address,
.woocommerce-Addresses .u-columns > .woocommerce-Address {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    background: var(--amitraflex-surface);
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px;
}

/* Fix grid column order - Billing (col-1/u-column1) should be first */
.woocommerce-account .col-1,
.woocommerce-account .u-column1 {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.woocommerce-account .col-2,
.woocommerce-account .u-column2 {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

/* Hover Effects */
.woocommerce-account .col2-set .col-1:hover,
.woocommerce-account .col2-set .col-2:hover,
.woocommerce-Addresses > .woocommerce-Address:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

/* Card Top Border Accent */
.woocommerce-account .col2-set .col-1::before,
.woocommerce-account .col2-set .col-2::before,
.woocommerce-Addresses > .woocommerce-Address::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--amitraflex-primary), rgba(var(--amitraflex-primary-rgb), 0.6));
    border-radius: 20px 20px 0 0;
}

/* Billing Address - Orange accent (first card) */
.woocommerce-account .col2-set .col-1::before,
.woocommerce-Addresses > .woocommerce-Address:first-child::before {
    background: linear-gradient(90deg, #ff8057, #ffb347);
}

/* Shipping Address - Blue accent (second card) */
.woocommerce-account .col2-set .col-2::before,
.woocommerce-Addresses > .woocommerce-Address:nth-child(2)::before,
.woocommerce-Addresses > .woocommerce-Address:last-child::before {
    background: linear-gradient(90deg, #4f8cff, #7eb8ff);
}

/* Hover Glow Effect */
.woocommerce-account .col2-set .col-1::after,
.woocommerce-account .col2-set .col-2::after,
.woocommerce-Addresses .woocommerce-Address::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(var(--amitraflex-primary-rgb), 0.03), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.woocommerce-account .col2-set .col-1:hover::after,
.woocommerce-account .col2-set .col-2:hover::after,
.woocommerce-Addresses .woocommerce-Address:hover::after {
    opacity: 1;
}

/* Content z-index */
.woocommerce-account .col2-set .col-1 > *,
.woocommerce-account .col2-set .col-2 > *,
.woocommerce-Addresses .woocommerce-Address > * {
    position: relative;
    z-index: 1;
}

/* Address Title */
.woocommerce-account .col2-set h2,
.woocommerce-account .col2-set h3,
.woocommerce-account .col2-set .woocommerce-column__title,
.woocommerce-Addresses .woocommerce-column__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--amitraflex-heading);
}

/* Title Icon */
.woocommerce-account .col2-set h2::before,
.woocommerce-account .col2-set h3::before,
.woocommerce-account .col2-set .woocommerce-column__title::before,
.woocommerce-Addresses .woocommerce-column__title::before {
    content: '';
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(var(--amitraflex-primary-rgb), 0.12), rgba(var(--amitraflex-primary-rgb), 0.06));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff8057' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 10.5a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z'/%3E%3C/svg%3E");
    background-size: 22px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Shipping icon - different icon (second card) */
.woocommerce-account .col2-set .col-2 h2::before,
.woocommerce-account .col2-set .col-2 h3::before,
.woocommerce-account .col2-set .col-2 .woocommerce-column__title::before,
.woocommerce-Addresses > .woocommerce-Address:nth-child(2) .woocommerce-column__title::before,
.woocommerce-Addresses > .woocommerce-Address:last-child .woocommerce-column__title::before {
    background-color: rgba(79, 140, 255, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234f8cff' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.25 18.75a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m3 0h6m-9 0H3.375a1.125 1.125 0 01-1.125-1.125V14.25m17.25 4.5a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m3 0h1.125c.621 0 1.129-.504 1.09-1.124a17.902 17.902 0 00-3.213-9.193 2.056 2.056 0 00-1.58-.86H14.25M16.5 18.75h-2.25m0-11.177v-.958c0-.568-.422-1.048-.987-1.106a48.554 48.554 0 00-10.026 0 1.106 1.106 0 00-.987 1.106v7.635m12-6.677v6.677m0 4.5v-4.5m0 0h-12'/%3E%3C/svg%3E");
}

/* Address Content */
.woocommerce-account .col2-set address,
.woocommerce-Addresses address {
    font-style: normal;
    color: var(--amitraflex-text, #475569);
    line-height: 1.8;
    font-size: 0.95rem;
    flex-grow: 1;
}

.woocommerce-account .col2-set address p,
.woocommerce-Addresses address p {
    margin: 0.4rem 0;
}

.woocommerce-account .col2-set address strong,
.woocommerce-account .col2-set address b,
.woocommerce-Addresses address strong,
.woocommerce-Addresses address b {
    color: var(--amitraflex-heading);
    font-weight: 600;
}

/* Edit Link */
.woocommerce-account .col2-set a.edit,
.woocommerce-Addresses a.edit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--amitraflex-primary);
    transition: all 0.2s ease;
}

.woocommerce-account .col2-set a.edit::after,
.woocommerce-Addresses a.edit::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff8057' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

.woocommerce-account .col2-set a.edit:hover,
.woocommerce-Addresses a.edit:hover {
    color: var(--amitraflex-primary-hover, #e86a3a);
}

.woocommerce-account .col2-set a.edit:hover::after,
.woocommerce-Addresses a.edit:hover::after {
    transform: translateX(3px);
}

/* No Address Message */
.woocommerce-account .col2-set .col-1 > p:first-of-type,
.woocommerce-account .col2-set .col-2 > p:first-of-type {
    color: var(--amitraflex-text, #64748b);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    .woocommerce-account .col2-set,
    .woocommerce-account .woocommerce-Addresses,
    .woocommerce-Addresses,
    .woocommerce-Addresses .u-columns {
        gap: 1.5rem !important;
    }
    
    .woocommerce-account .col2-set .col-1,
    .woocommerce-account .col2-set .col-2,
    .woocommerce-Addresses > .woocommerce-Address {
        padding: 1.5rem;
        min-height: 200px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .woocommerce-account .col2-set,
    .woocommerce-account .woocommerce-Addresses,
    .woocommerce-Addresses,
    .woocommerce-Addresses .u-columns {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    /* Reset grid column/row positioning on mobile - allow natural stacking */
    .woocommerce-account .col-1,
    .woocommerce-account .u-column1,
    .woocommerce-account .col-2,
    .woocommerce-account .u-column2 {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    
    .woocommerce-account .col2-set .col-1,
    .woocommerce-account .col2-set .col-2,
    .woocommerce-Addresses > .woocommerce-Address {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .woocommerce-account .col2-set h2,
    .woocommerce-account .col2-set h3,
    .woocommerce-Addresses .woocommerce-column__title {
        font-size: 1rem;
    }
    
    .woocommerce-account .col2-set h2::before,
    .woocommerce-account .col2-set h3::before,
    .woocommerce-Addresses .woocommerce-column__title::before {
        width: 36px;
        height: 36px;
        background-size: 18px;
    }
}

/* Address styles merged into unified ADDRESS SECTION above */

/* Orders Table - Match Dashboard Style */
.woocommerce-orders-table,
.woocommerce-MyAccount-orders table.shop_table,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders,
.woocommerce-account .account-orders-table,
.woocommerce-account .orders table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
    border: none;
}

.woocommerce-orders-table thead,
.woocommerce-MyAccount-orders table.shop_table thead,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders thead,
.woocommerce-account .account-orders-table thead,
.woocommerce-account .orders table thead {
    display: none;
}

.woocommerce-orders-table__row,
.woocommerce-MyAccount-orders table.shop_table tbody tr,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody tr,
.woocommerce-account .account-orders-table tbody tr,
.woocommerce-account .orders table tbody tr {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--amitraflex-surface);
    border: 1px solid var(--amitraflex-border-soft);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}

.woocommerce-orders-table__row:hover,
.woocommerce-MyAccount-orders table.shop_table tbody tr:hover,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody tr:hover,
.woocommerce-account .account-orders-table tbody tr:hover,
.woocommerce-account .orders table tbody tr:hover {
    border-color: rgba(var(--amitraflex-primary-rgb), 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.woocommerce-orders-table__row::after,
.woocommerce-MyAccount-orders table.shop_table tbody tr::after,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody tr::after,
.woocommerce-account .account-orders-table tbody tr::after,
.woocommerce-account .orders table tbody tr::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 128, 87, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.woocommerce-orders-table__row:hover::after,
.woocommerce-MyAccount-orders table.shop_table tbody tr:hover::after,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody tr:hover::after,
.woocommerce-account .account-orders-table tbody tr:hover::after,
.woocommerce-account .orders table tbody tr:hover::after {
    opacity: 1;
}

.woocommerce-orders-table__cell,
.woocommerce-MyAccount-orders table.shop_table tbody td,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td,
.woocommerce-account .account-orders-table tbody td,
.woocommerce-account .orders table tbody td {
    padding: 0;
    border: none;
    vertical-align: middle;
    position: relative;
    z-index: 1;
}

/* Order Number */
.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-number,
.woocommerce-MyAccount-orders table.shop_table tbody td.order-number,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-number,
.woocommerce-account .account-orders-table tbody td.order-number,
.woocommerce-account .orders table tbody td.order-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--amitraflex-heading);
    min-width: 80px;
}

.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-number a,
.woocommerce-MyAccount-orders table.shop_table tbody td.order-number a,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-number a,
.woocommerce-account .account-orders-table tbody td.order-number a,
.woocommerce-account .orders table tbody td.order-number a {
    color: var(--amitraflex-heading);
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-number a:hover,
.woocommerce-MyAccount-orders table.shop_table tbody td.order-number a:hover,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-number a:hover,
.woocommerce-account .account-orders-table tbody td.order-number a:hover,
.woocommerce-account .orders table tbody td.order-number a:hover {
    color: var(--amitraflex-primary);
}

/* Order Date */
.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-date,
.woocommerce-MyAccount-orders table.shop_table tbody td.order-date,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-date,
.woocommerce-account .account-orders-table tbody td.order-date,
.woocommerce-account .orders table tbody td.order-date {
    font-size: 0.85rem;
    color: var(--amitraflex-text-muted);
    min-width: 120px;
}

.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-date time,
.woocommerce-MyAccount-orders table.shop_table tbody td.order-date time,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-date time,
.woocommerce-account .account-orders-table tbody td.order-date time,
.woocommerce-account .orders table tbody td.order-date time {
    font-weight: 500;
}

/* Order Status */
.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-status,
.woocommerce-MyAccount-orders table.shop_table tbody td.order-status,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-status,
.woocommerce-account .account-orders-table tbody td.order-status,
.woocommerce-account .orders table tbody td.order-status {
    min-width: fit-content;
}

.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-status .amitraflex-order-status-badge,
.woocommerce-MyAccount-orders table.shop_table tbody td.order-status .amitraflex-order-status-badge,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-status .amitraflex-order-status-badge,
.woocommerce-account .account-orders-table tbody td.order-status .amitraflex-order-status-badge,
.woocommerce-account .orders table tbody td.order-status .amitraflex-order-status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
}

/* Order Total */
.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-total,
.woocommerce-MyAccount-orders table.shop_table tbody td.order-total,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-total,
.woocommerce-account .account-orders-table tbody td.order-total,
.woocommerce-account .orders table tbody td.order-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--amitraflex-heading);
    margin-left: auto;
    min-width: 80px;
    text-align: right;
}

.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-total strong,
.woocommerce-MyAccount-orders table.shop_table tbody td.order-total strong,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-total strong,
.woocommerce-account .account-orders-table tbody td.order-total strong,
.woocommerce-account .orders table tbody td.order-total strong {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Order Actions */
.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions,
.woocommerce-MyAccount-orders table.shop_table tbody td.order-actions,
.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-actions,
.woocommerce-account .account-orders-table tbody td.order-actions,
.woocommerce-account .orders table tbody td.order-actions {
    min-width: fit-content;
    margin-left: auto;
}

.woocommerce-address-fields {
    margin-top: 2rem;
    background: var(--amitraflex-surface);
    border-radius: 26px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.woocommerce-address-fields::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(var(--amitraflex-primary-rgb), 0.08), transparent 55%);
    z-index: 0;
}

.woocommerce-address-fields > * {
    position: relative;
    z-index: 1;
}

.woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem 1.5rem;
}

.woocommerce-address-fields__field-wrapper .form-row {
    margin: 0;
}

.woocommerce-address-fields__field-wrapper label {
    font-weight: 600;
    color: var(--amitraflex-heading);
    margin-bottom: 0.35rem;
}

.woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper input,
.woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper select,
.woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.85rem 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-address-fields__field-wrapper input:focus,
.woocommerce-address-fields__field-wrapper select:focus,
.woocommerce-address-fields__field-wrapper textarea:focus {
    outline: none;
    border-color: rgba(var(--amitraflex-primary-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--amitraflex-primary-rgb), 0.15);
}

.woocommerce-address-fields .button {
    margin-top: 1.5rem;
    border-radius: 999px;
    padding: 0.95rem 2.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(var(--amitraflex-primary-rgb), 1), rgba(255, 173, 129, 1));
    color: #fff;
    border: none;
    box-shadow: 0 18px 32px rgba(var(--amitraflex-primary-rgb), 0.3);
}

.woocommerce-address-fields .button:hover {
    box-shadow: 0 24px 42px rgba(var(--amitraflex-primary-rgb), 0.4);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .woocommerce-address-fields {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
}

.amitraflex-account-edit {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.amitraflex-account-edit__hero {
    background: linear-gradient(120deg, rgba(var(--amitraflex-primary-rgb), 0.1), rgba(255, 203, 168, 0.16));
    border-radius: 24px;
    padding: 1.8rem 2rem;
    border: 1px solid rgba(var(--amitraflex-primary-rgb), 0.15);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.amitraflex-account-edit__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: rgba(15, 23, 42, 0.6);
    margin: 0 0 0.35rem;
}

.amitraflex-account-edit__title {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--amitraflex-heading);
}

.amitraflex-account-edit__meta {
    margin: 0.35rem 0 0;
    color: rgba(15, 23, 42, 0.7);
}

.amitraflex-account-edit__form {
    background: var(--amitraflex-surface);
    border-radius: 24px;
    border: 1px solid var(--amitraflex-border-soft);
    padding: 2rem;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
}

.amitraflex-account-edit__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.amitraflex-account-edit__card {
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    background: #fff;
}

.amitraflex-account-edit__card h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--amitraflex-heading);
}

.amitraflex-account-edit__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.amitraflex-account-edit__field label {
    font-weight: 600;
    color: var(--amitraflex-heading);
}

.amitraflex-account-edit__field small {
    color: rgba(15, 23, 42, 0.6);
}

.amitraflex-account-edit__actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.amitraflex-account-edit__actions .button {
    border-radius: 999px;
    padding: 0.9rem 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(var(--amitraflex-primary-rgb), 1), rgba(255, 173, 129, 1));
    color: #fff;
    border: none;
    box-shadow: 0 18px 32px rgba(var(--amitraflex-primary-rgb), 0.3);
}

.amitraflex-account-edit__actions .button:hover {
    box-shadow: 0 24px 38px rgba(var(--amitraflex-primary-rgb), 0.4);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .amitraflex-account-edit__form {
        padding: 1.5rem;
    }

    .amitraflex-account-edit__actions {
        justify-content: center;
    }
}

.amitraflex-order-view__body {
    border-radius: 24px;
    border: 1px solid var(--amitraflex-border-soft);
    padding: 2rem;
    background: var(--amitraflex-surface);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.amitraflex-order-view__timeline {
    border-radius: 24px;
    border: 1px solid var(--amitraflex-border-soft);
    padding: 2rem;
    background: var(--amitraflex-surface);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.amitraflex-order-view__timeline h2 {
    margin: 0 0 1.25rem;
}

.amitraflex-order-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.amitraflex-order-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(15, 23, 42, 0.08);
}

.amitraflex-order-timeline__item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}

.amitraflex-order-timeline__badge {
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(var(--amitraflex-primary-rgb), 0.8);
    box-shadow: 0 8px 18px rgba(var(--amitraflex-primary-rgb), 0.4);
}

.amitraflex-order-timeline__card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem 1.25rem;
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.amitraflex-order-timeline__meta {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.6);
}

.amitraflex-order-timeline__content {
    color: var(--amitraflex-heading);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .amitraflex-order-view__hero {
        flex-direction: column;
        text-align: center;
    }

    .amitraflex-order-view__summary {
        max-width: none;
    }

    .amitraflex-order-view__body,
    .amitraflex-order-view__timeline {
        padding: 1.5rem;
    }
}
/*
 * Account & Login specific styling loaded on-demand
 */

:root {
    --amitraflex-surface: #ffffff;
    --amitraflex-surface-elevated: rgba(255, 255, 255, 0.95);
    --amitraflex-border-soft: rgba(15, 23, 42, 0.08);
    --amitraflex-text-muted: rgba(15, 23, 42, 0.55);
    --amitraflex-heading: #0b1120;
}

.woocommerce-account .entry-content > .woocommerce {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1.25rem 3rem;
    animation: amitraflex-fade-up 0.45s ease;
}

.amitraflex-account-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.amitraflex-account-shell__hero {
    background: linear-gradient(120deg, rgba(255, 128, 87, 0.16), rgba(255, 176, 150, 0.2));
    border: 1px solid rgba(255, 128, 87, 0.25);
    border-radius: 24px;
    padding: 2rem;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1.75rem;
}

/* Ensure all direct children are vertically centered */
.amitraflex-account-shell__hero > * {
    align-self: center !important;
}

/* Hero info wrapper */
.amitraflex-account-shell__hero-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    align-self: center;
}

.amitraflex-account-shell__hero .avatar,
.amitraflex-account-shell__avatar,
.avatar.avatar-132.photo.avatar-default,
.amitraflex-account-shell__hero img.avatar {
    display: block !important;
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 226, 214, 0.85)) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15) !important;
    border: 3px solid rgba(255, 255, 255, 0.9) !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    margin-top: auto !important;
    margin-bottom: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    /* Reset any position offsets */
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
}

.amitraflex-account-shell__hero .avatar img,
.amitraflex-account-shell__avatar img,
.avatar.avatar-132.photo.avatar-default img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.amitraflex-account-shell__title {
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    color: var(--amitraflex-heading);
    margin: 0 0 0.4rem;
}

.amitraflex-account-shell__meta {
    margin: 0;
    color: var(--amitraflex-text-muted);
}

.button--ghost {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--amitraflex-heading);
    box-shadow: none;
}

.button--ghost:hover {
    border-color: var(--amitraflex-primary);
    color: var(--amitraflex-primary);
}

.amitraflex-account-shell__layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
}

.amitraflex-account-shell__sidebar {
    position: sticky;
    top: 1.5rem;
    align-self: flex-start;
}

.amitraflex-account-shell__panel {
    background: var(--amitraflex-surface);
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 2.5rem;
    box-shadow: 
        0 4px 6px -1px rgba(15, 23, 42, 0.04),
        0 10px 15px -3px rgba(15, 23, 42, 0.06),
        0 20px 40px -5px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.amitraflex-account-shell__panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(var(--amitraflex-primary-rgb), 0.4),
        rgba(255, 203, 168, 0.3),
        rgba(var(--amitraflex-primary-rgb), 0.4)
    );
    opacity: 0.6;
}

.amitraflex-account-shell__panel > * {
    position: relative;
    z-index: 1;
}

.amitraflex-account-nav {
    background: var(--amitraflex-surface);
    border-radius: 20px;
    border: 1px solid var(--amitraflex-border-soft);
    padding: 1.25rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.amitraflex-account-nav__label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    color: var(--amitraflex-text-muted);
    margin-bottom: 0.9rem;
}

.amitraflex-account-nav__toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-weight: 600;
    color: var(--amitraflex-heading);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 24px rgba(15, 23, 42, 0.07);
    cursor: pointer;
}

.amitraflex-account-nav__toggle:focus-visible {
    outline: 3px solid rgba(var(--amitraflex-primary-rgb), 0.4);
    outline-offset: 2px;
}

.amitraflex-account-nav__toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.amitraflex-account-nav__toggle-icon span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.amitraflex-account-nav.is-open .amitraflex-account-nav__toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.amitraflex-account-nav.is-open .amitraflex-account-nav__toggle-icon span:nth-child(2) {
    opacity: 0;
}

.amitraflex-account-nav.is-open .amitraflex-account-nav__toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.amitraflex-account-nav__toggle-text {
    flex: 1;
    text-align: left;
    font-size: 0.95rem;
}

.amitraflex-account-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.amitraflex-account-nav__item {
    list-style: none;
}

.amitraflex-account-nav__item a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: var(--amitraflex-heading);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.amitraflex-account-nav__item a:hover {
    background: rgba(15, 23, 42, 0.05);
    transform: translateX(6px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.amitraflex-account-nav__item.is-active a:hover,
.amitraflex-account-nav__item a[aria-current="page"]:hover {
    background: linear-gradient(120deg, rgba(var(--amitraflex-primary-rgb), 0.22), rgba(255, 203, 168, 0.26));
    transform: translateX(0);
    box-shadow: 
        inset 0 0 0 1px rgba(var(--amitraflex-primary-rgb), 0.6),
        0 6px 16px rgba(var(--amitraflex-primary-rgb), 0.2);
}

.amitraflex-account-nav__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.amitraflex-account-nav__item a:hover .amitraflex-account-nav__icon {
    background: rgba(var(--amitraflex-primary-rgb), 0.12);
    border-color: rgba(var(--amitraflex-primary-rgb), 0.25);
}

.amitraflex-account-nav__item.is-active a,
.amitraflex-account-nav__item a[aria-current="page"] {
    background: linear-gradient(120deg, rgba(var(--amitraflex-primary-rgb), 0.18), rgba(255, 203, 168, 0.22));
    color: var(--amitraflex-primary);
    font-weight: 600;
    box-shadow: 
        inset 0 0 0 1px rgba(var(--amitraflex-primary-rgb), 0.5),
        0 4px 12px rgba(var(--amitraflex-primary-rgb), 0.15);
    position: relative;
    transform: translateX(0);
}

.amitraflex-account-nav__item.is-active a::before,
.amitraflex-account-nav__item a[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--amitraflex-primary), rgba(255, 173, 129, 1));
    box-shadow: 0 0 8px rgba(var(--amitraflex-primary-rgb), 0.5);
}

.amitraflex-account-nav__item.is-active .amitraflex-account-nav__icon svg,
.amitraflex-account-nav__item a[aria-current="page"] .amitraflex-account-nav__icon svg {
    opacity: 1;
    fill: var(--amitraflex-primary);
    transform: scale(1.1);
}

.amitraflex-account-nav__item.is-active .amitraflex-account-nav__icon,
.amitraflex-account-nav__item a[aria-current="page"] .amitraflex-account-nav__icon {
    background: rgba(var(--amitraflex-primary-rgb), 0.18);
    border-color: rgba(var(--amitraflex-primary-rgb), 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 20px rgba(var(--amitraflex-primary-rgb), 0.18);
    transform: translateX(2px);
}

.amitraflex-account-nav__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease, fill 0.2s ease;
}

@media (max-width: 900px) {
    .amitraflex-account-nav {
        position: relative;
        z-index: 30;
        border-radius: 20px;
        padding: 1rem 1.25rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
        --amitraflex-account-nav-offset: 0px;
    }

    .amitraflex-account-nav.is-stuck {
        position: fixed;
        top: var(--amitraflex-account-nav-offset, 0px);
        left: 50%;
        transform: translateX(-50%);
        width: min(640px, calc(100% - 1.25rem));
        margin-top: -50px; /* Fallback */
        margin-top: calc((var(--header-height, 70px) - var(--nav-visible-gap, 20px)) * -1);
        border-radius: 0 0 22px 22px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(18px);
        background: rgba(255, 255, 255, 0.97);
    }

    .amitraflex-account-nav__spacer {
        display: none;
        width: 100%;
        transition: height 0.3s ease;
    }

    .amitraflex-account-nav__label {
        display: none;
    }

    .amitraflex-account-nav__toggle {
        display: inline-flex;
    }

    .amitraflex-account-nav__list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .amitraflex-account-nav.is-collapsible .amitraflex-account-nav__list {
        display: none;
    }

    .amitraflex-account-nav.is-collapsible.is-open .amitraflex-account-nav__list {
        display: flex;
    }
}

.amitraflex-account-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.amitraflex-account-dashboard__intro {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.amitraflex-account-dashboard__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--amitraflex-primary-rgb), 1), rgba(255, 173, 129, 1));
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 18px 35px rgba(var(--amitraflex-primary-rgb), 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amitraflex-account-dashboard__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(var(--amitraflex-primary-rgb), 0.45);
}

.amitraflex-account-dashboard__cta-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    align-items: center;
    justify-content: center;
    color: #fff;
}

.amitraflex-account-dashboard__cta svg {
    display: block;
}

.amitraflex-account-dashboard__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: var(--amitraflex-text-muted);
    margin: 0 0 0.3rem;
}

.amitraflex-account-dashboard__stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
}

.amitraflex-account-card {
    background: var(--amitraflex-surface);
    border: 1px solid var(--amitraflex-border-soft);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: 0 22px 35px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.amitraflex-account-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 128, 87, 0.18), transparent 50%);
    opacity: 0.8;
    pointer-events: none;
}

.amitraflex-account-card > * {
    position: relative;
    z-index: 1;
}
.amitraflex-account-card__label {
    color: var(--amitraflex-text-muted);
    font-size: 0.85rem;
}

.amitraflex-account-card__value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--amitraflex-heading);
}

.amitraflex-account-card a {
    color: var(--amitraflex-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Recent Orders Section in Dashboard */
.amitraflex-account-dashboard__recent-orders {
    margin-top: 1rem;
}

.amitraflex-account-dashboard__recent-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.amitraflex-account-dashboard__recent-orders-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--amitraflex-heading);
    margin: 0;
}

.amitraflex-account-dashboard__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--amitraflex-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s ease;
}

.amitraflex-account-dashboard__view-all:hover {
    gap: 0.75rem;
}

.amitraflex-account-dashboard__view-all svg {
    display: block;
    transition: transform 0.2s ease;
}

.amitraflex-account-dashboard__view-all:hover svg {
    transform: translateX(2px);
}

.amitraflex-account-dashboard__orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.amitraflex-account-dashboard__order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--amitraflex-surface);
    border: 1px solid var(--amitraflex-border-soft);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.amitraflex-account-dashboard__order-item:hover {
    border-color: rgba(var(--amitraflex-primary-rgb), 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.amitraflex-account-dashboard__order-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 128, 87, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.amitraflex-account-dashboard__order-item:hover::after {
    opacity: 1;
}

.amitraflex-account-dashboard__order-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--amitraflex-heading);
    min-width: 80px;
    position: relative;
    z-index: 1;
}

.amitraflex-account-dashboard__order-date {
    font-size: 0.85rem;
    color: var(--amitraflex-text-muted);
    min-width: 120px;
    position: relative;
    z-index: 1;
}

.amitraflex-account-dashboard__order-date time {
    font-weight: 500;
}

.amitraflex-account-dashboard__order-item .amitraflex-order-status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    min-width: fit-content;
    position: relative;
    z-index: 1;
}

.amitraflex-account-dashboard__order-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--amitraflex-heading);
    margin-left: auto;
    min-width: 80px;
    text-align: right;
    position: relative;
    z-index: 1;
}

.amitraflex-account-dashboard__order-items {
    font-size: 0.8rem;
    color: var(--amitraflex-text-muted);
    min-width: 60px;
    text-align: right;
    position: relative;
    z-index: 1;
}

.amitraflex-account-dashboard__no-orders {
    background: var(--amitraflex-surface);
    border: 1px solid var(--amitraflex-border-soft);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.amitraflex-account-dashboard__no-orders p {
    font-size: 1rem;
    color: var(--amitraflex-text-muted);
    margin: 0 0 1.5rem;
}

.amitraflex-account-dashboard__shop-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background: var(--amitraflex-primary);
    color: var(--amitraflex-white);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(var(--amitraflex-primary-rgb), 0.3);
}

.amitraflex-account-dashboard__shop-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--amitraflex-primary-rgb), 0.4);
}

@media (max-width: 768px) {
    .amitraflex-account-dashboard__order-item {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }

    .amitraflex-account-dashboard__order-number,
    .amitraflex-account-dashboard__order-date,
    .amitraflex-account-dashboard__order-total,
    .amitraflex-account-dashboard__order-items {
        min-width: auto;
    }

    .amitraflex-account-dashboard__order-total {
        margin-left: 0;
        text-align: left;
    }

    .amitraflex-account-dashboard__order-items {
        text-align: left;
    }
}

/* Legacy shop_table styles - now using dashboard style above */
.woocommerce-account table.shop_table:not(.variations) {
    border: none;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.woocommerce-account table.shop_table:not(.variations) thead {
    display: none;
}

.woocommerce-account table.shop_table:not(.variations) tbody tr {
    align-items: center;
    gap: 1rem;
    background: var(--amitraflex-surface);
    border: 1px solid var(--amitraflex-border-soft);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.woocommerce-account table.shop_table:not(.variations) tbody tr:hover {
    border-color: rgba(var(--amitraflex-primary-rgb), 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.woocommerce-account table.shop_table:not(.variations) tbody tr::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 128, 87, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.woocommerce-account table.shop_table:not(.variations) tbody tr:hover::after {
    opacity: 1;
}

.woocommerce-account table.shop_table:not(.variations) td,
.woocommerce-account table.shop_table:not(.variations) th {
    border: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.woocommerce-account table.shop_table:not(.variations) td.order-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--amitraflex-heading);
    min-width: 80px;
}

.woocommerce-account table.shop_table:not(.variations) td.order-number a {
    color: var(--amitraflex-heading);
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-account table.shop_table:not(.variations) td.order-number a:hover {
    color: var(--amitraflex-primary);
}

.woocommerce-account table.shop_table:not(.variations) td.order-date {
    font-size: 0.85rem;
    color: var(--amitraflex-text-muted);
    min-width: 120px;
}

.woocommerce-account table.shop_table:not(.variations) td.order-date time {
    font-weight: 500;
}

.woocommerce-account table.shop_table:not(.variations) td.order-status {
    min-width: fit-content;
}

.woocommerce-account table.shop_table:not(.variations) td.order-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--amitraflex-heading);
    margin-left: auto;
    min-width: 80px;
    text-align: right;
}

.woocommerce-account table.shop_table:not(.variations) td.order-actions {
    min-width: fit-content;
    margin-left: auto;
}

.woocommerce-account mark {
    background: rgba(var(--amitraflex-primary-rgb), 0.15);
    color: var(--amitraflex-heading);
    border-radius: 6px;
    padding: 2px 6px;
}

.woocommerce-MyAccount-orders .woocommerce-button.button {
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* WooCommerce Button Styles - Order Actions */
a.woocommerce-button {
    font-size: 14px;
    margin-right: 4px;
    border-radius: 999px;
}

a.woocommerce-button.cancel {
    margin-left: 4px;
}

/* WC Cancel Order Button Styling - Enhanced Visual Design */
.woocommerce-button.button.wc-cancel-order,
a.woocommerce-button.button.wc-cancel-order,
.woocommerce-button.button.wc-cancel-order.order-actions-button,
a.woocommerce-button.button.wc-cancel-order.order-actions-button {
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(255, 77, 64, 0.4);
    background: linear-gradient(135deg, rgba(255, 77, 64, 0.12), rgba(255, 77, 64, 0.08));
    color: #ff4d40;
    white-space: nowrap;
    min-height: auto;
    line-height: 1.4;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    text-transform: none;
}

/* Add subtle shine effect */
.woocommerce-button.button.wc-cancel-order::before,
a.woocommerce-button.button.wc-cancel-order::before,
.woocommerce-button.button.wc-cancel-order.order-actions-button::before,
a.woocommerce-button.button.wc-cancel-order.order-actions-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.woocommerce-button.button.wc-cancel-order:hover::before,
a.woocommerce-button.button.wc-cancel-order:hover::before,
.woocommerce-button.button.wc-cancel-order.order-actions-button:hover::before,
a.woocommerce-button.button.wc-cancel-order.order-actions-button:hover::before {
    left: 100%;
}

.woocommerce-button.button.wc-cancel-order:hover,
a.woocommerce-button.button.wc-cancel-order:hover,
.woocommerce-button.button.wc-cancel-order.order-actions-button:hover,
a.woocommerce-button.button.wc-cancel-order.order-actions-button:hover {
    background: linear-gradient(135deg, rgba(255, 77, 64, 0.2), rgba(255, 77, 64, 0.15));
    border-color: rgba(255, 77, 64, 0.6);
    color: #ff1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 64, 0.35);
    text-decoration: none;
}

.woocommerce-button.button.wc-cancel-order:active,
a.woocommerce-button.button.wc-cancel-order:active,
.woocommerce-button.button.wc-cancel-order.order-actions-button:active,
a.woocommerce-button.button.wc-cancel-order.order-actions-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 77, 64, 0.2);
}

.woocommerce-button.button.wc-cancel-order:focus,
a.woocommerce-button.button.wc-cancel-order:focus,
.woocommerce-button.button.wc-cancel-order.order-actions-button:focus,
a.woocommerce-button.button.wc-cancel-order.order-actions-button:focus {
    outline: 2px solid rgba(255, 77, 64, 0.5);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 77, 64, 0.2);
}

/* Ensure WC Cancel Order buttons work in all WooCommerce contexts */
.woocommerce-account .woocommerce-button.button.wc-cancel-order,
.woocommerce-account a.woocommerce-button.button.wc-cancel-order,
.woocommerce-order-details .woocommerce-button.button.wc-cancel-order,
.woocommerce-order-details a.woocommerce-button.button.wc-cancel-order,
.woocommerce-MyAccount-orders .woocommerce-button.button.wc-cancel-order,
.woocommerce-MyAccount-orders a.woocommerce-button.button.wc-cancel-order,
.woocommerce-orders-table .woocommerce-button.button.wc-cancel-order,
.woocommerce-orders-table a.woocommerce-button.button.wc-cancel-order {
    /* All styles inherited from base .wc-cancel-order selector above */
}



/* Order Action Block Container */
.amitraflex-order-action-block {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Track Order Button - Premium Visual Design */
.amitraflex-order-track {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, rgba(var(--amitraflex-primary-rgb), 1) 0%, rgba(255, 173, 129, 1) 50%, rgba(var(--amitraflex-primary-rgb), 0.95) 100%);
    background-size: 200% 200%;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(var(--amitraflex-primary-rgb), 0.4),
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    text-transform: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1.4;
    min-height: 44px;
}

/* Animated gradient background */
.amitraflex-order-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

/* Inner glow effect */
.amitraflex-order-track::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.amitraflex-order-track:hover {
    background-position: 100% 0;
    box-shadow: 0 10px 32px rgba(var(--amitraflex-primary-rgb), 0.55),
                0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
    color: #fff !important;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.amitraflex-order-track:hover::before {
    left: 100%;
}

.amitraflex-order-track:hover::after {
    opacity: 1;
}

.amitraflex-order-track:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 4px 16px rgba(var(--amitraflex-primary-rgb), 0.4),
                0 2px 6px rgba(0, 0, 0, 0.1);
}

.amitraflex-order-track:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(var(--amitraflex-primary-rgb), 0.25),
                0 6px 20px rgba(var(--amitraflex-primary-rgb), 0.4);
}

/* Icon enhancement */
.amitraflex-order-track .amitraflex-order-action-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.amitraflex-order-track:hover .amitraflex-order-action-icon {
    transform: rotate(15deg) scale(1.1);
}

.amitraflex-order-track .amitraflex-order-action-icon svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Text styling */
.amitraflex-order-track > span:last-child {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


/* Order Action Icons */
.amitraflex-order-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.amitraflex-order-action-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .amitraflex-order-action-block {
        flex-direction: column;
        gap: 0.75rem;
    }

    .amitraflex-order-track {
        width: auto;
        max-width: 220px;
        padding: 0.65rem 1.5rem;
        font-size: 0.875rem;
        gap: 0.5rem;
        min-height: 42px;
    }

    .amitraflex-order-track .amitraflex-order-action-icon {
        width: 18px;
        height: 18px;
    }

    /* Mobile: WC Cancel Order Button - Smaller and Better */
    .woocommerce-button.button.wc-cancel-order,
    a.woocommerce-button.button.wc-cancel-order,
    .woocommerce-button.button.wc-cancel-order.order-actions-button,
    a.woocommerce-button.button.wc-cancel-order.order-actions-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        gap: 0.35rem;
        min-width: auto;
        width: auto;
        max-width: none;
        line-height: 1.3;
    }


    /* Mobile: Order actions container - Better spacing */
    .woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions,
    .woocommerce-MyAccount-orders table.shop_table tbody td.order-actions,
    .woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-actions,
    .woocommerce-account .account-orders-table tbody td.order-actions,
    .woocommerce-account .orders table tbody td.order-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        margin-left: 0;
        min-width: auto;
    }

    .woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions .woocommerce-button,
    .woocommerce-MyAccount-orders table.shop_table tbody td.order-actions .woocommerce-button,
    .woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-actions .woocommerce-button {
        width: auto;
        max-width: 180px;
        min-width: 120px;
    }
}

.woocommerce-account form .form-row label,
.woocommerce-account form label {
    font-weight: 600;
    color: var(--amitraflex-heading);
}

.woocommerce-account form .input-text,
.woocommerce-account form select,
.woocommerce-account form textarea {
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--amitraflex-heading);
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
    caret-color: var(--amitraflex-primary);
}

.woocommerce-account form .input-text::placeholder,
.woocommerce-account form textarea::placeholder {
    color: rgba(15, 23, 42, 0.5);
}

.woocommerce-account form .input-text:hover,
.woocommerce-account form select:hover,
.woocommerce-account form textarea:hover {
    border-color: rgba(15, 23, 42, 0.2);
}

.woocommerce-account form .input-text:focus,
.woocommerce-account form select:focus,
.woocommerce-account form textarea:focus {
    border-color: rgba(var(--amitraflex-primary-rgb), 0.75);
    box-shadow: 0 10px 30px rgba(var(--amitraflex-primary-rgb), 0.18), 0 0 0 3px rgba(var(--amitraflex-primary-rgb), 0.15);
    outline: none;
    transform: translateY(-1px);
}

.woocommerce-account form .input-text[readonly],
.woocommerce-account form .input-text:disabled {
    background: rgba(15, 23, 42, 0.04);
    cursor: not-allowed;
    color: rgba(15, 23, 42, 0.55);
}

.woocommerce-account form .woocommerce-invalid .input-text {
    border-color: rgba(255, 77, 64, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 77, 64, 0.18);
}

.woocommerce-account fieldset legend {
    font-size: 1.1rem;
    text-transform: none;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.amitraflex-auth {
    max-width: 600px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amitraflex-auth__panels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
    max-width: 100%;
    width: 100%;
}

.amitraflex-auth__panels--columns {
    flex-direction: row;
    gap: 1rem;
}

.amitraflex-auth__panel {
    flex: 1;
    background: var(--amitraflex-surface);
    border-radius: 20px;
    border: 1px solid var(--amitraflex-border-soft);
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    display: none;
}

.amitraflex-auth__panel.is-active {
    display: block;
    animation: amitraflex-fade-up 0.4s ease;
}

.amitraflex-auth__panel--accent {
    background: var(--amitraflex-surface);
}

.amitraflex-auth__header h2 {
    margin: 0.25rem 0 0.4rem;
    color: var(--amitraflex-heading);
    font-size: 1.5rem;
}

.amitraflex-auth__header p {
    margin: 0;
    color: var(--amitraflex-text-muted);
}

.amitraflex-auth__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--amitraflex-text-muted);
}

.amitraflex-auth__switcher {
    display: inline-flex;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.35rem;
    margin: 0.5rem auto 1.25rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    gap: 0.35rem;
}

.amitraflex-auth__switcher-button {
    border: none;
    background: transparent;
    color: var(--amitraflex-text-muted);
    padding: 0.75rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.amitraflex-auth__switcher-button.is-active {
    background: linear-gradient(135deg, rgba(255, 128, 87, 1), rgba(255, 173, 129, 1));
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 128, 87, 0.35);
}

.amitraflex-auth__switcher-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 128, 87, 0.35);
}

.amitraflex-auth__social {
    margin: 1.5rem 0 0;
}

.amitraflex-auth__social .nsl-container {
    display: flex;
    justify-content: center;
}

.amitraflex-auth__social .nsl-container-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.amitraflex-auth__social .nsl-container-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--amitraflex-heading);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.amitraflex-auth__social .nsl-container-buttons a:hover {
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.amitraflex-auth__social .nsl-container-buttons a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.amitraflex-auth__divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    text-align: center;
}

.amitraflex-auth__divider::before,
.amitraflex-auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--amitraflex-border-soft);
}

.amitraflex-auth__divider span {
    padding: 0 1rem;
    font-size: 0.85rem;
    color: var(--amitraflex-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.woocommerce-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
}

.woocommerce-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.woocommerce-form__group--password input {
    letter-spacing: 0.08em;
}

.woocommerce-form__footer {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.woocommerce-form__rememberme {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--amitraflex-text-muted);
}

.woocommerce-form__rememberme-input {
    accent-color: var(--amitraflex-primary);
}

.button--full {
    width: 100%;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    text-align: center;
}

.woocommerce-form__hint {
    margin: 0;
    font-size: 0.9rem;
}

.woocommerce-form__hint a {
    color: var(--amitraflex-primary);
    text-decoration: none;
}

@keyframes amitraflex-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
}
}

@media (min-width: 1025px) {
    .amitraflex-auth__switcher {
        padding: 0.5rem;
        gap: 0.5rem;
        margin: 0.75rem auto 1.75rem;
    }

    .amitraflex-auth__switcher-button {
        padding: 0.95rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 1024px) {
    .amitraflex-account-shell__layout {
        grid-template-columns: 1fr;
    }

    .amitraflex-account-shell__sidebar {
        position: static;
    }

    .amitraflex-account-shell__hero {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .amitraflex-account-shell__hero-info {
        align-items: center;
    }

    .amitraflex-account-shell__hero .avatar,
    .amitraflex-account-shell__avatar,
    .amitraflex-account-shell__hero img.avatar,
    .avatar.avatar-132.photo.avatar-default {
        margin: 0 auto 0.5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
        align-self: center !important;
        left: 0 !important;
    }

    .amitraflex-account-shell__hero-actions {
        justify-content: center;
    }

    .amitraflex-account-shell__stat {
        text-align: center;
    }

    .amitraflex-auth__panels--columns {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
	.woocommerce-account .entry-content > .woocommerce {
		padding: 0 0.75rem 2rem;
	}

	.amitraflex-account-shell__hero {
		padding: 1.5rem;
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
	}

	.amitraflex-account-shell__hero .avatar,
	.amitraflex-account-shell__avatar,
	.amitraflex-account-shell__hero img.avatar,
	.avatar.avatar-132.photo.avatar-default {
		margin: 0 auto 0.5rem !important;
		margin-left: auto !important;
		margin-right: auto !important;
		margin-top: 0 !important;
		margin-bottom: 0.5rem !important;
		align-self: center !important;
		left: 0 !important;
		position: relative !important;
	}

	.amitraflex-account-shell__panel {
		padding: 1.75rem;
		border-radius: 24px;
	}

	.amitraflex-auth__panel,
	.amitraflex-account-nav {
		padding: 1.25rem;
	}

	.amitraflex-auth__panels {
		max-width: 100%;
	}

	.amitraflex-account-nav__list {
		max-height: none;
		overflow: visible;
	}

	.amitraflex-account-dashboard__stats-grid {
		grid-template-columns: 1fr;
	}

	.amitraflex-account-dashboard__intro {
		flex-direction: column;
		align-items: flex-start;
	}

	.button--full {
		width: 100%;
		text-align: center;
	}

	.amitraflex-auth__switcher {
		width: 100%;
		justify-content: space-between;
	}

	.amitraflex-auth__switcher-button {
		flex: 1;
	}

	.woocommerce-orders-table__row,
	.woocommerce-MyAccount-orders table.shop_table tbody tr,
	.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody tr,
	.woocommerce-account .account-orders-table tbody tr,
	.woocommerce-account .orders table tbody tr,
	.woocommerce-account table.shop_table:not(.variations) tbody tr {
		flex-wrap: wrap;
		gap: 0.75rem;
		padding: 1rem;
	}

	.woocommerce-orders-table__cell,
	.woocommerce-MyAccount-orders table.shop_table tbody td,
	.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td,
	.woocommerce-account .account-orders-table tbody td,
	.woocommerce-account .orders table tbody td,
	.woocommerce-account table.shop_table:not(.variations) tbody td {
		min-width: auto;
	}

	.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-total,
	.woocommerce-MyAccount-orders table.shop_table tbody td.order-total,
	.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-total,
	.woocommerce-account .account-orders-table tbody td.order-total,
	.woocommerce-account .orders table tbody td.order-total,
	.woocommerce-account table.shop_table:not(.variations) tbody td.order-total {
		margin-left: 0;
		text-align: left;
	}

	.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions,
	.woocommerce-MyAccount-orders table.shop_table tbody td.order-actions,
	.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-actions,
	.woocommerce-account .account-orders-table tbody td.order-actions,
	.woocommerce-account .orders table tbody td.order-actions,
	.woocommerce-account table.shop_table:not(.variations) tbody td.order-actions {
		margin-left: 0;
		width: 100%;
	}

	.woocommerce-account form .form-row {
		width: 100%;
		float: none;
	}

	.amitraflex-auth__social {
		margin: 1.25rem 0 0;
	}

	.amitraflex-auth__divider {
		margin: 1.25rem 0;
	}
}

/* Very Small Screens - Extra Mobile Optimization */
@media (max-width: 480px) {
	/* Track Order Button - More Compact */
	.amitraflex-order-track {
		padding: 0.6rem 1.25rem;
		font-size: 0.825rem;
		gap: 0.45rem;
		max-width: 180px;
		min-width: 110px;
		min-height: 40px;
	}

	.amitraflex-order-track .amitraflex-order-action-icon {
		width: 16px;
		height: 16px;
	}

	/* WC Cancel Order Button - Even More Compact */
	.woocommerce-button.button.wc-cancel-order,
	a.woocommerce-button.button.wc-cancel-order,
	.woocommerce-button.button.wc-cancel-order.order-actions-button,
	a.woocommerce-button.button.wc-cancel-order.order-actions-button {
		padding: 0.45rem 0.85rem;
		font-size: 0.75rem;
		gap: 0.3rem;
		min-width: 90px;
		max-width: 150px;
	}


	.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions .woocommerce-button,
	.woocommerce-MyAccount-orders table.shop_table tbody td.order-actions .woocommerce-button,
	.woocommerce-account table.shop_table.shop_table_responsive.my_account_orders tbody td.order-actions .woocommerce-button {
		max-width: 160px;
		min-width: 100px;
	}
}
