.woocommerce-account .entry-content {
    max-width: 1600px;
    margin: 0 auto;
}

.woocommerce-account main .woocommerce {
    max-width: 100%;
}

.custom-account-wrapper {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 20px;
}

.custom-account-sidebar,
.custom-account-content {
    background: #ffffff;
    border: 1px solid #e9e9ef;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.custom-account-sidebar {
    padding: 24px;
    align-self: start;
    position: sticky;
    top: 24px;
}

.custom-account-content {
    padding: 32px;
    min-width: 0;
}

.custom-account-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #eeeeF4;
}

.custom-account-avatar img {
    border-radius: 50%;
    display: block;
    width: 60px;
}

.custom-account-user-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.25;
    color: #792441;
    text-transform: capitalize;
    font-style: italic;
}

.custom-account-user-info p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    word-break: break-word;
    font-weight: bold;
    font-style: italic;
}

.custom-account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-account-nav li {
    margin-bottom: 8px;
}

.custom-account-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 16px;
}

.custom-account-nav a:hover,
.custom-account-nav .is-active a {
    background: #792441;
    color: #ffffff;
    transform: translateX(3px);
}

.custom-account-nav-icon {
    width: 22px;
    text-align: center;
}

.custom-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border-radius: 22px;
    background: linear-gradient(180deg, #792441, #792441a8);
    color: #ffffff;
    margin-bottom: 28px;
}

.custom-dashboard-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.custom-dashboard-hero h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.15;
}

.custom-dashboard-hero p {
    margin: 0;
    color: #e5e7eb;
    max-width: 620px;
    font-size: 16px;
}

a.shopping {
    background: linear-gradient(90deg, #792441, #374151);
    color: #fff;
}

.custom-dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 15px 30px;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.custom-dashboard-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.custom-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.custom-dashboard-card {
    display: block;
    padding: 20px 30px;
    border: 1px solid #ececf2;
    border-radius: 20px;
    background: #ffffff;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s ease;
}

.custom-dashboard-card:hover {
    transform: translateY(-4px);
    border-color: #d1d5db;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.custom-card-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f3f4f6;
    margin-bottom: 16px;
}

.custom-dashboard-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #111827;
}

.custom-dashboard-card p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
}

.custom-recent-orders {
    border: 1px solid #ececf2;
    border-radius: 22px;
    padding: 24px;
}

.custom-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.custom-section-header h3 {
    margin: 0;
    font-size: 20px;
}

.custom-section-header a {
    font-weight: 500;
    text-decoration: none;
    font-size: 20px;
}

.custom-orders-list {
    display: grid;
    gap: 12px;
}

.custom-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border-radius: 16px;
    background: #f9fafb;
}

.custom-order-item strong,
.custom-order-item span {
    display: block;
}

.custom-order-item span {
    color: #6b7280;
    font-size: 14px;
}

.custom-order-status {
    font-weight: 700;
    color: #111827 !important;
    text-align: right;
}

.custom-order-total {
    text-align: right;
}

.custom-empty-state {
    padding: 26px;
    border-radius: 18px;
    background: #f9fafb;
    text-align: center;
}

.custom-empty-state p {
    margin: 0 0 16px;
    color: #6b7280;
}


.custom-account-content table.shop_table {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #792441;
}

.custom-account-content .button,
.custom-account-content button,
.custom-account-content input[type="submit"] {
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 16px;
    margin-top: 20px;
    background: #000;
    border: 1px solid #000;
    transition: all 0.7s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.custom-account-content input.input-text,
.custom-account-content textarea,
.custom-account-content select {
    border-radius: 12px;
    border: 1px solid #d1d5db;
    min-height: 44px;
    padding: 10px 12px;
}


@media (max-width: 1024px) {
    .custom-account-wrapper {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 22px;
    }

    .custom-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .custom-account-wrapper {
        grid-template-columns: 1fr;
        margin: 24px auto;
    }

    .custom-account-content {
        padding: 22px;
    }

    .custom-dashboard-hero {
        display: block;
    }

    .custom-dashboard-hero .custom-dashboard-button {
        margin-top: 18px;
    }

    .custom-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .custom-order-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .custom-order-status,
    .custom-order-total {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .custom-account-wrapper {
        padding: 0 14px;
    }

    .custom-account-content,
    .custom-account-sidebar {
        border-radius: 18px;
    }

    .custom-dashboard-hero {
        padding: 22px;
        border-radius: 18px;
    }

    .custom-dashboard-hero h2 {
        font-size: 24px;
    }
}

.woocommerce-account .wc-block-components-notice-banner {
    background: linear-gradient(90deg, #792441, #374151);
    border-color: #792441;
    color: #fff;
    border-radius: 14px;
}

a.woocommerce-button.pay,
a.woocommerce-button.view,
a.woocommerce-button.cancel {
    padding: 12px 25px !important;
}

.woocommerce-orders-table__cell-order-actions {
    display: flex;
    gap: 12px;
    padding: 0 !important;
}

.woocommerce-account .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward {
    color: #ffffff !important;
    border: none;
}

.woocommerce-account .u-columns {
    margin-top: 30px;
}

.woocommerce-account .addresses .title .edit {
    border: 1px solid #792441;
    padding: 12px 24px;
    border-radius: 14px;
}

.woocommerce-account .addresses .title .edit:hover {
    background: #792441;
    color: #fff;
    transition: all 0.6s ease-in-out;
}

header.woocommerce-Address-title h2 {
    font-weight: bold;
    font-size: 25px;
}

.custom-account-content h2 {
    font-weight: bold;
    font-size: 30px;
}

.woocommerce-account .woocommerce form .form-row label,
.woocommerce-page form .form-row label {
    font-size: 20px;
    margin: 0;
}

legend {
    font-size: 25px;
    margin-bottom: 20px;
}

.woocommerce-account .woocommerce form .form-row {
    padding: 3px;
    margin: 0 0 20px;
}

.woocommerce-account span#account_display_name_description {
    font-size: 14px;
}

.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row select,
.woocommerce-page form .form-row textarea.input-text {
    color: #000;
    background: #f7f7f7;
    font-weight: 500;
    letter-spacing: 0.8px;
    border-radius: 12px;
    padding: 14px 20px;
    border: 1px solid #f7f7f7;
    font-size: 17px;
}

.woocommerce-account :where(.woocommerce) .select2-container .select2-dropdown,
:where(.woocommerce) .select2-container .select2-selection {
    color: #000 !important;
    background: #f7f7f7;
    font-weight: 600;
    letter-spacing: 0.8px;
    border-radius: 12px;
    border: 1px solid #f7f7f7;
}

.woocommerce-account :where(.woocommerce) .select2-container .select2-selection--single .select2-selection__rendered {
    color: #000 !important;
}

.woocommerce-account :where(.woocommerce) .select2-container .select2-selection--single .select2-selection__placeholder {
    color: #000 !important;
    font-size: 17px;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border: 1px solid #b8b4b4;
}

.custom-account-content .button:hover {
    background: transparent;
    color: #792441;
    border: 1px solid #792441;
}

.u-columns address {
    background: #005EA6;
    color: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0px 3px 20px 0px #000000a8;
}

.custom-account-content h2.woocommerce-order-details__title {
    margin: 20px 0px;
}

.woocommerce table.shop_table th {
    padding: 12px 20px !important;
}

.woocommerce table.shop_table td {
    padding: 12px 20px !important;
    border-top: 1px solid #792441;
}

.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
    border-top: 1px solid #792441;
    padding: 20px !important;
}

.woocommerce .woocommerce-customer-details address {
    border-radius: 14px;
    padding: 30px;
    margin-top: 20px;
    line-height: 2em;
}

.custom-order-total span.woocommerce-Price-amount.amount {
    display: flex;
    font-weight: bold;
    color: #792441;
    justify-content: end;
}

@media(max-width:600px) {
    .custom-order-total span.woocommerce-Price-amount.amount {
        justify-content: start;
    }
}

/* Order Tracking css */

.custom-order-tracking-box {
    max-width: 100%;
}

.custom-order-tracking-box .woocommerce {
    max-width: 100% !important;
}

.custom-order-tracking-box h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #111827;
}

.custom-order-tracking-box>p {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

.custom-order-tracking-box form.track_order {
    padding: 28px;
    border: 1px solid #ececf2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.custom-order-tracking-box form.track_order p {
    margin-bottom: 18px;
}

.custom-order-tracking-box form.track_order label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #111827;
}

.custom-order-tracking-box form.track_order input.input-text {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    padding: 10px 14px;
}

.custom-order-tracking-box form.track_order button {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
}

.woocommerce-orders-table__cell-order-number,
.woocommerce-orders-table__cell-order-date,
.woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__cell-order-total {
    border-right: 1px solid;
}

/* SVG Icons css*/

.custom-account-nav-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-account-nav-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.custom-account-nav a {
    color: #111827;
}

.custom-account-nav a:hover,
.custom-account-nav .is-active a {
    background: #111827;
    color: #ffffff;
}

.custom-card-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f3f4f6;
    color: #111827;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.custom-card-icon svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.custom-dashboard-card:hover .custom-card-icon {
    background: #111827;
    color: #ffffff;
}

/* My Account order action buttons */
.woocommerce-orders-table__cell-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.woocommerce-orders-table__cell-order-actions .woocommerce-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 9px 15px !important;
    border-radius: 999px !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.woocommerce-orders-table__cell-order-actions .woocommerce-button::before {
    content: "";
    width: 15px;
    height: 15px;
    display: inline-block;
    background-color: currentColor;
    flex-shrink: 0;
}

/* Pay button - Green */
.woocommerce-orders-table__cell-order-actions .woocommerce-button.pay {
    background: #16a34a !important;
}

.woocommerce-orders-table__cell-order-actions .woocommerce-button.pay::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6.5A2.5 2.5 0 0 1 5.5 4h13A2.5 2.5 0 0 1 21 6.5v11A2.5 2.5 0 0 1 18.5 20h-13A2.5 2.5 0 0 1 3 17.5v-11Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3 9h18' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M7 15h4' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6.5A2.5 2.5 0 0 1 5.5 4h13A2.5 2.5 0 0 1 21 6.5v11A2.5 2.5 0 0 1 18.5 20h-13A2.5 2.5 0 0 1 3 17.5v-11Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3 9h18' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M7 15h4' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* View button - Blue */
.woocommerce-orders-table__cell-order-actions .woocommerce-button.view {
    background: #2563eb !important;
}

.woocommerce-orders-table__cell-order-actions .woocommerce-button.view::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Cancel button - Red */
.woocommerce-orders-table__cell-order-actions .woocommerce-button.cancel {
    background: #dc2626 !important;
}

.woocommerce-orders-table__cell-order-actions .woocommerce-button.cancel::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M9 9l6 6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M15 9l-6 6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M9 9l6 6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M15 9l-6 6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hover effects */
.woocommerce-orders-table__cell-order-actions .woocommerce-button:hover {
    transform: translateY(-2px);
    filter: brightness(0.92);
    color: #ffffff !important;
}

/* Mobile */
@media (max-width: 480px) {
    .woocommerce-orders-table__cell-order-actions {
        gap: 6px;
    }

    .woocommerce-orders-table__cell-order-actions .woocommerce-button {
        min-height: 36px;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

/* WooCommerce My Account downloadable product button */
.woocommerce-MyAccount-downloads-file.button,
.woocommerce-MyAccount-downloads-file.button.alt,
td.download-file .woocommerce-MyAccount-downloads-file {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 17px !important;
    border-radius: 999px !important;
    background: #111827 !important;
    color: #ffffff !important;
    border: 1px solid #111827 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.16);
    transition: all 0.2s ease;
}

/* Download icon */
.woocommerce-MyAccount-downloads-file.button::before,
.woocommerce-MyAccount-downloads-file.button.alt::before,
td.download-file .woocommerce-MyAccount-downloads-file::before {
    content: "";
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
    background-color: currentColor;

    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3v12' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M7 10l5 5 5-5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 21h14' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;

    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3v12' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M7 10l5 5 5-5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 21h14' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hover */
.woocommerce-MyAccount-downloads-file.button:hover,
.woocommerce-MyAccount-downloads-file.button.alt:hover,
td.download-file .woocommerce-MyAccount-downloads-file:hover {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #111827 !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18);
}









/* Order Details table improvement */
.custom-account-content .woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #e5e7eb !important;
    border-radius: 18px !important;
    overflow: hidden;
    background: #ffffff;
    table-layout: fixed;
}

/* Column widths */
.custom-account-content .woocommerce-table--order-details .product-name {
    width: 70%;
    text-align: left !important;
}

.custom-account-content .woocommerce-table--order-details .product-total {
    width: 30%;
    text-align: left !important;
}

/* Table header */
.custom-account-content .woocommerce-table--order-details thead th {
    padding: 18px 20px !important;
    background: #f9fafb;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Table body */
.custom-account-content .woocommerce-table--order-details tbody td {
    padding: 20px !important;
    color: #111827;
    font-size: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Product link */
.custom-account-content .woocommerce-table--order-details .product-name a {
    color: #861f41;
    font-weight: 700;
    text-decoration: none;
}

.custom-account-content .woocommerce-table--order-details .product-name a:hover {
    text-decoration: underline;
}

/* Quantity */
.custom-account-content .woocommerce-table--order-details .product-quantity {
    color: #111827;
    font-weight: 800;
}

/* Price column */
.custom-account-content .woocommerce-table--order-details .product-total {
    color: #111827;
}

/* Footer rows */
.custom-account-content .woocommerce-table--order-details tfoot th,
.custom-account-content .woocommerce-table--order-details tfoot td {
    padding: 18px 20px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 15px;
    vertical-align: middle;
}

.custom-account-content .woocommerce-table--order-details tfoot th {
    width: 70%;
    text-align: left !important;
    background: #ffffff;
    color: #111827;
    font-weight: 800;
}

.custom-account-content .woocommerce-table--order-details tfoot td {
    width: 30%;
    text-align: left !important;
    background: #ffffff;
    color: #111827;
    font-weight: 400 !important;
}

/* Last footer row */
.custom-account-content .woocommerce-table--order-details tfoot tr:last-child th,
.custom-account-content .woocommerce-table--order-details tfoot tr:last-child td {
    border-bottom: none !important;
}

/* Hover polish */
.custom-account-content .woocommerce-table--order-details tbody tr:hover td {
    background: #fafafa;
}

@media (max-width: 640px) {
    .custom-account-content .woocommerce-table--order-details {
        display: block;
        border-radius: 16px !important;
        overflow: hidden;
    }

    .custom-account-content .woocommerce-table--order-details thead {
        display: none;
    }

    .custom-account-content .woocommerce-table--order-details tbody,
    .custom-account-content .woocommerce-table--order-details tfoot,
    .custom-account-content .woocommerce-table--order-details tr,
    .custom-account-content .woocommerce-table--order-details th,
    .custom-account-content .woocommerce-table--order-details td {
        display: block;
        width: 100% !important;
    }

    .custom-account-content .woocommerce-table--order-details tbody tr {
        padding: 16px;
        border-bottom: 1px solid #e5e7eb;
    }

    .custom-account-content .woocommerce-table--order-details tbody td {
        padding: 6px 0 !important;
        border-bottom: none !important;
    }

    .custom-account-content .woocommerce-table--order-details .product-name {
        text-align: left !important;
        font-size: 15px;
    }

    .custom-account-content .woocommerce-table--order-details .product-total {
        text-align: left !important;
        margin-top: 8px;
        font-size: 15px;
    }

    .custom-account-content .woocommerce-table--order-details .product-total::before {
        content: "Total: ";
        display: inline-block;
        margin-right: 6px;
        color: #6b7280;
        font-weight: 700;
    }

    .custom-account-content .woocommerce-table--order-details tfoot tr {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border-bottom: 1px solid #e5e7eb;
    }

    .custom-account-content .woocommerce-table--order-details tfoot th,
    .custom-account-content .woocommerce-table--order-details tfoot td {
        padding: 0 !important;
        border-bottom: none !important;
    }

    .custom-account-content .woocommerce-table--order-details tfoot th {
        text-align: left !important;
        font-size: 14px;
    }

    .custom-account-content .woocommerce-table--order-details tfoot td {
        text-align: right !important;
        font-size: 14px;
    }
}


/* mobile nav css */

/* Mobile logout hidden by default */
.custom-account-mobile-logout {
    display: none;
}

/* Arrow buttons hidden by default */
.custom-account-nav-arrow {
    display: none;
}

/* Desktop remains unchanged */
.custom-mobile-nav-shell {
    position: relative;
}

/* Safety: prevent full page horizontal overflow on mobile */
@media (max-width: 768px) {

    .custom-account-wrapper,
    .custom-account-sidebar,
    .custom-account-content,
    .custom-account-dashboard {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .custom-account-wrapper {
        display: block;
        padding-left: 14px;
        padding-right: 14px;
        overflow-x: visible;
    }

    .custom-account-sidebar {
        position: sticky;
        top: 75px;
        z-index: 50;
        padding: 18px;
        background: #ffffff;
        border-radius: 18px;
        overflow: hidden;
    }

    .custom-account-user-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid #eeeeF4;
    }

    .custom-account-user-info {
        flex: 1;
        min-width: 0;
    }

    .custom-account-user-info h3,
    .custom-account-user-info p {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .custom-account-avatar img {
        width: 54px;
        height: 54px;
    }

    .custom-account-mobile-logout {
        display: inline-flex;
        width: 40px;
        height: 40px;
        min-width: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        color: #111827;
        text-decoration: none;
        flex-shrink: 0;
    }

    .custom-account-mobile-logout svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .custom-account-mobile-logout:hover {
        background: #111827;
        border-color: #111827;
        color: #ffffff;
    }

    /* Hide logout from nav only on mobile */
    .custom-account-nav .woocommerce-MyAccount-navigation-link--customer-logout {
        display: none;
    }

    /* Main nav shell must never exceed screen width */
    .custom-mobile-nav-shell {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        align-items: center;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .custom-account-nav {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        box-sizing: border-box;
    }

    .custom-account-nav::-webkit-scrollbar {
        display: none;
    }

    .custom-account-nav ul {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        width: max-content;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .custom-account-nav li {
        flex: 0 0 auto;
        margin: 0;
    }

    .custom-account-nav a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: 14px;
        white-space: nowrap;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        color: #111827;
        text-decoration: none;
        transform: none !important;
    }

    .custom-account-nav a:hover,
    .custom-account-nav .is-active a {
        background: #111827;
        border-color: #111827;
        color: #ffffff;
        transform: none !important;
    }

    .custom-account-nav-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        min-width: 38px;
        padding: 0;
        border-radius: 50%;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: #111827;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
        flex-shrink: 0;
    }

    .custom-account-nav-arrow svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .custom-account-nav-arrow:hover {
        background: #111827;
        border-color: #111827;
        color: #ffffff;
    }

    .custom-account-content {
        margin-top: 18px;
        overflow: hidden;
    }

    .custom-account-nav .custom-account-nav-icon {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        flex: 0 0 22px !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        line-height: 0 !important;
        font-size: 0 !important;
        overflow: hidden !important;
    }

    .custom-account-nav .custom-account-nav-icon svg {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;

        display: block !important;
        flex: 0 0 auto !important;

        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;

        transform: scale(0.72) !important;
        transform-origin: center center !important;
    }

    .custom-account-nav a {
        gap: 6px !important;
    }

    .woocommerce form .form-row-first, .woocommerce form .form-row-last, .woocommerce-page form .form-row-first, .woocommerce-page form .form-row-last {
        width: 100% !important;
    }

}