/* =========================================================EveryRep My Account Dashboard — Clean Final CSSPHP Markup Version========================================================= */
/* =========================================================
Page / Template Cleanup========================================================= */
/* Kill forced CommerceKit/template top padding */
body.woocommerce-account.page-template-default #content,
body.woocommerce-account.page-template-elementor_header_footer #content,
body.woocommerce-account.page-template-elementor_header_footer .elementor-section-wrap,
body.page-id-30709.page-template-default #content,
body.page-id-30709.page-template-elementor_header_footer #content,
body.page-id-30709.page-template-elementor_header_footer .elementor-section-wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hide default Woo endpoint titles inside account content */
body.woocommerce-account .woocommerce-MyAccount-content > h1,
body.woocommerce-account .woocommerce-MyAccount-content > h2,
body.woocommerce-account .woocommerce-MyAccount-content > h3,
body.woocommerce-account .entry-title,
body.page-id-30709 .entry-title {
    display: none !important;
}

/* Main account wrapper — desktop */
body.woocommerce-account .woocommerce,
body.page-id-30709.woocommerce-account .woocommerce {
    max-width: 1540px !important;
    margin: 0 auto !important;
    padding: 34px 64px 10px !important;
    box-sizing: border-box !important;
}

/* Full-width Woo account layout */
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Hide default dashboard paragraph if present */
body.woocommerce-account .woocommerce-MyAccount-content > p {
    display: none !important;
}

/* Remove old pseudo headings from earlier versions */
body.woocommerce-account .woocommerce-MyAccount-navigation::before,
body.woocommerce-account .woocommerce-MyAccount-navigation::after,
body.woocommerce-account .woocommerce-MyAccount-content::before,
body.woocommerce-account .woocommerce-MyAccount-content::after {
    content: none !important;
    display: none !important;
}

/* =========================================================2. Account Intro / Subtitle========================================================= */
body.woocommerce-account .everyrep-account-intro {
    margin: -20px 0 34px !important;
    padding: 0 !important;
}

body.woocommerce-account .everyrep-account-intro p {
    margin: 0 !important;
    max-width: 760px !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
    color: #666 !important;
    letter-spacing: 0 !important;
}

body.woocommerce-account .everyrep-account-intro::after {
    content: "";
    display: block;
    width: 118px;
    height: 4px;
    border-radius: 999px;
    background: #111;
    margin-top: 22px;
}

/* =========================================================3. Account Card Grid — Desktop========================================================= */
body.woocommerce-account .ecsf-account-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.woocommerce-account .everyrep-account-card-item {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

/* Card */
body.woocommerce-account .everyrep-account-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    box-sizing: border-box !important;
    padding: 26px 34px 28px !important;
    border: 1px solid #e2e2df !important;
    border-radius: 24px !important;
    background: #fff !important;
    background-image: none !important;
    color: #111 !important;
    text-align: left !important;
    text-decoration: none !important;
    box-shadow: 6px 8px 0 rgba(0,0,0,0.035) !important;
    overflow: hidden !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

/* Kill old pseudo icons */
body.woocommerce-account .everyrep-account-card::before,
body.woocommerce-account .everyrep-account-card::after {
    content: none !important;
    display: none !important;
}

/* Top row */
body.woocommerce-account .everyrep-card-top {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 5px !important;
}

/* Number pill */
body.woocommerce-account .everyrep-card-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #f1f1ef !important;
    color: #555 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
}

/* Arrow */
body.woocommerce-account .everyrep-card-arrow {
    display: block !important;
    color: #888 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
}

/* Title */
body.woocommerce-account .everyrep-card-title {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 10px !important;
    font-size: 18px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em !important;
    color: #111 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    box-sizing: border-box !important;
}

/* Description */
body.woocommerce-account .everyrep-card-desc {
    display: block !important;
    width: 100% !important;
    max-width: 330px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    color: #666 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    box-sizing: border-box !important;
}

/* Desktop title variants */
body.woocommerce-account .everyrep-title-mobile {
    display: none !important;
}

body.woocommerce-account .everyrep-title-desktop {
    display: inline !important;
}

/* Hover / active desktop */
body.woocommerce-account .everyrep-account-card,
body.woocommerce-account .everyrep-account-card-item.is-active .everyrep-account-card {
    transform: translateY(-3px) !important;
    border-color: #111 !important;
    box-shadow: 8px 12px 0 rgba(0,0,0,0.055) !important;
}

/* =========================================================4. Space Between Cards and Selected Tab Content========================================================= */
body.woocommerce-account .everyrep-account-nav,
body.woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 48px !important;
}

body.woocommerce-account .woocommerce-MyAccount-content {
    padding-top: 8px !important;
}

/* =========================================================5. Account Content Width / Tables / Forms========================================================= */
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce-MyAccount-content > *,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address,
body.woocommerce-account .woocommerce-MyAccount-content #commercekit-wishlist-shortcode {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Buttons */
body.woocommerce-account .button,
body.woocommerce-account button.button,
body.woocommerce-account input.button,
body.woocommerce-account .woocommerce-button,
body.woocommerce-account table.shop_table .button {
    background-color: #111 !important;
    color: #fff !important;
    border: 1px solid #111 !important;
    border-radius: 999px !important;
    padding: 12px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease !important;
}

body.woocommerce-account .button,
body.woocommerce-account button.button,
body.woocommerce-account input.button,
body.woocommerce-account .woocommerce-button,
body.woocommerce-account table.shop_table .button {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
}

/* Tables */
body.woocommerce-account table.shop_table {
    border: 1px solid #e2e2df !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #fff !important;
}

body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td {
    padding: 5px !important;
}

/* Mobile only: single order detail page */
@media only screen and (max-width: 768px) {
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details table.shop_table th,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details table.shop_table td,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details th,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details td,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details table.shop_table th,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details table.shop_table td {
        padding: 10px !important;
    }

}

/* Address headings */
body.woocommerce-account .woocommerce-Address-title h3 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
}

/* Forms */
body.woocommerce-account form .form-row input.input-text,
body.woocommerce-account form .form-row textarea,
body.woocommerce-account form .form-row select {
    border-radius: 10px !important;
    border: 1px solid #d9d9d6 !important;
    padding: 12px 14px !important;
    background: #fff !important;
}

/* =========================================================6. Wishlist Cleanup========================================================= */
/* Hide duplicate wishlist/Kadence heading only inside My Account content */
body.woocommerce-account .woocommerce-MyAccount-content #commercekit-wishlist-shortcode > h2,
body.woocommerce-account .woocommerce-MyAccount-content #commercekit-wishlist-shortcode h2.wp-block-heading,
body.woocommerce-account .woocommerce-MyAccount-content .commercekit-wishlist h2,
body.woocommerce-account .woocommerce-MyAccount-content .commercekit-wishlist-table + h2,
body.woocommerce-account .woocommerce-MyAccount-content h2.wp-block-heading,
body.everyrep-account-wishlist-page .woocommerce-MyAccount-content h2 {
    display: none !important;
}

/* Wishlist empty text */
body.woocommerce-account .commercekit-wishlist-table .center {
    text-align: left !important;
    float: none !important;
}

/* =========================================================7. Tablet========================================================= */
@media only screen and (max-width: 1100px) {
    body.woocommerce-account .woocommerce,
    body.page-id-30709.woocommerce-account .woocommerce {
        padding: 28px 28px 80px !important;
    }

    body.woocommerce-account .ecsf-account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.woocommerce-account .everyrep-card-title {
        font-size: 21px !important;
    }

    body.woocommerce-account .everyrep-card-desc {
        max-width: 100% !important;
    }

}

/* =========================================================8. Mobile Compact Navigation========================================================= */
@media only screen and (max-width: 768px) {
    /* Wrapper spacing */
    body.woocommerce-account .woocommerce,
    body.page-id-30709.woocommerce-account .woocommerce {
        width: 100% !important;
        max-width: 100% !important;
        padding-top: 34px !important;
        padding-right: 14px !important;
        padding-bottom: 90px !important;
        padding-left: 14px !important;
        box-sizing: border-box !important;
    }

    /* Intro */
    body.woocommerce-account .everyrep-account-intro {
        margin: 0 0 22px !important;
    }

    body.woocommerce-account .everyrep-account-intro p {
        max-width: 100% !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    body.woocommerce-account .everyrep-account-intro::after {
        width: 72px !important;
        height: 3px !important;
        margin-top: 16px !important;
    }

    /* Full-width nav/content */
    body.woocommerce-account .everyrep-account-nav,
    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.woocommerce-account .woocommerce-MyAccount-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Compact 2-column button grid */
    body.woocommerce-account .ecsf-account-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 30px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account .everyrep-account-card-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile buttons */
    body.woocommerce-account .everyrep-account-card {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 56px !important;
        height: auto !important;
        max-height: none !important;
        padding: 12px 14px !important;
        border-radius: 14px !important;
        border: 1px solid #e2e2df !important;
        background: #fff !important;
        color: #111 !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    /* Hide desktop card details on mobile */
    body.woocommerce-account .everyrep-card-top,
    body.woocommerce-account .everyrep-card-number,
    body.woocommerce-account .everyrep-card-arrow,
    body.woocommerce-account .everyrep-card-desc {
        display: none !important;
    }

    /* Mobile labels */
    body.woocommerce-account .everyrep-title-desktop {
        display: none !important;
    }

    body.woocommerce-account .everyrep-title-mobile {
        display: inline !important;
    }

    body.woocommerce-account .everyrep-card-title {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.15 !important;
        font-weight: 700 !important;
        letter-spacing: -0.015em !important;
        color: #111 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        text-align: center !important;
    }

    body.woocommerce-account .everyrep-account-card span,
    body.woocommerce-account .everyrep-card-title,
    body.woocommerce-account .everyrep-card-title span {
        color: #111 !important;
    }

    /* Selected/current mobile button — outlined, not black */
    body.woocommerce-account .everyrep-account-card-item.is-active .everyrep-account-card {
        background: #f5f5f3 !important;
        border-color: #111 !important;
        color: #111 !important;
        box-shadow: inset 0 0 0 1px #111 !important;
        transform: none !important;
    }

    body.woocommerce-account .everyrep-account-card-item.is-active .everyrep-account-card span,
    body.woocommerce-account .everyrep-account-card-item.is-active .everyrep-card-title,
    body.woocommerce-account .everyrep-account-card-item.is-active .everyrep-card-title span {
        color: #111 !important;
    }

    /* Hover/tap mobile button */
    body.woocommerce-account .everyrep-account-card,
    body.woocommerce-account .everyrep-account-card,
    body.woocommerce-account .everyrep-account-card {
        background: #f5f5f3 !important;
        border-color: #111 !important;
        color: #111 !important;
        transform: none !important;
        box-shadow: inset 0 0 0 1px #111 !important;
    }

    body.woocommerce-account .everyrep-account-card span,
    body.woocommerce-account .everyrep-account-card span,
    body.woocommerce-account .everyrep-account-card span {
        color: #111 !important;
    }

    /* Bring selected content closer */
    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.woocommerce-account .everyrep-account-nav {
        margin-bottom: 26px !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        padding-top: 0 !important;
    }

    /* Mobile account content width */
    body.woocommerce-account .woocommerce-MyAccount-content,
    body.woocommerce-account .woocommerce-MyAccount-content > *,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address,
    body.woocommerce-account .woocommerce-MyAccount-content #commercekit-wishlist-shortcode {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile payment method buttons */
    td.woocommerce-PaymentMethod--actions a.button.delete,
    td.woocommerce-PaymentMethod--actions a.button.default {
        position: relative !important;
        top: 0 !important;
        border-radius: 3px !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
        margin-left: 5px !important;
        background-color: #000 !important;
        border: 1px solid #000 !important;
        color: #fff !important;
        text-decoration: none !important;
        display: inline-block !important;
    }

    td.woocommerce-PaymentMethod--actions a.button.delete,
    td.woocommerce-PaymentMethod--actions a.button.default {
        background-color: #333 !important;
        border-color: #333 !important;
        color: #fff !important;
    }

}

/* =========================================================EveryRep Account Mobile — Mini Desktop Card Style========================================================= */
@media only screen and (max-width: 768px) {
    body.woocommerce-account .ecsf-account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        margin-bottom: 30px !important;
    }

    body.woocommerce-account .everyrep-account-card {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        min-height: 84px !important;
        height: 84px !important;
        max-height: 84px !important;
        padding: 12px 16px 12px !important;
        border-radius: 18px !important;
        border: 1px solid #e2e2df !important;
        background: #fff !important;
        color: #111 !important;
        box-shadow: 4px 5px 0 rgba(0,0,0,0.035) !important;
        text-align: left !important;
        overflow: hidden !important;
        transform: none !important;
    }

    /* Top row */
    body.woocommerce-account .everyrep-card-top {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
    }

    /* Number pill */
    body.woocommerce-account .everyrep-card-number {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 32px !important;
        height: 18px !important;
        padding: 0 7px !important;
        border-radius: 999px !important;
        background: #f1f1ef !important;
        color: #555 !important;
        font-size: 10.5px !important;
        line-height: 1 !important;
        font-weight: 700 !important;
        letter-spacing: 0.03em !important;
    }

    /* Arrow */
    body.woocommerce-account .everyrep-card-arrow {
        display: block !important;
        color: #777 !important;
        font-size: 15px !important;
        line-height: 1 !important;
        font-weight: 400 !important;
    }

    /* Hide description on mobile */
    body.woocommerce-account .everyrep-card-desc {
        display: none !important;
    }

    /* Use mobile short labels */
    body.woocommerce-account .everyrep-title-desktop {
        display: none !important;
    }

    body.woocommerce-account .everyrep-title-mobile {
        display: inline !important;
    }

    /* Title */
    body.woocommerce-account .everyrep-card-title {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.15 !important;
        font-weight: 700 !important;
        letter-spacing: -0.02em !important;
        color: #111 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    body.woocommerce-account .everyrep-account-card span,
    body.woocommerce-account .everyrep-card-title,
    body.woocommerce-account .everyrep-card-title span {
        color: inherit !important;
    }

    /* Active/current mobile card */
    body.woocommerce-account .everyrep-account-card-item.is-active .everyrep-account-card {
        background: #fff !important;
        border-color: #111 !important;
        color: #111 !important;
        box-shadow: 4px 5px 0 rgba(0,0,0,0.055), inset 0 0 0 1px #111 !important;
        transform: none !important;
    }

    /* Keep number pill light even when active */
    body.woocommerce-account .everyrep-account-card-item.is-active .everyrep-card-number {
        background: #f1f1ef !important;
        color: #555 !important;
    }

    /* Hover/tap */
    body.woocommerce-account .everyrep-account-card,
    body.woocommerce-account .everyrep-account-card,
    body.woocommerce-account .everyrep-account-card {
        background: #fff !important;
        border-color: #111 !important;
        color: #111 !important;
        box-shadow: 4px 5px 0 rgba(0,0,0,0.055), inset 0 0 0 1px #111 !important;
        transform: none !important;
    }

    /* Keep number pill light on hover/tap */
    body.woocommerce-account .everyrep-account-card .everyrep-card-number,
    body.woocommerce-account .everyrep-account-card .everyrep-card-number,
    body.woocommerce-account .everyrep-account-card .everyrep-card-number {
        background: #f1f1ef !important;
        color: #555 !important;
    }

}

/* =========================================================9. Small Mobile========================================================= */
@media only screen and (max-width: 480px) {
    body.woocommerce-account .woocommerce,
    body.page-id-30709.woocommerce-account .woocommerce {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.woocommerce-account .ecsf-account-grid {
        gap: 9px !important;
    }

    body.woocommerce-account .everyrep-account-card {
        min-height: 80px !important;
        height: 80px !important;
        max-height: 80px !important;
        padding: 10px 12px !important;
        border-radius: 16px !important;
    }

    body.woocommerce-account .everyrep-card-top {
        margin: 0 0 12px !important;
    }

    body.woocommerce-account .everyrep-card-number {
        min-width: 30px !important;
        height: 18px !important;
        padding: 0 6px !important;
        font-size: 10px !important;
        background: #f1f1ef !important;
        color: #555 !important;
    }

    body.woocommerce-account .everyrep-card-arrow {
        font-size: 14px !important;
    }

    body.woocommerce-account .everyrep-card-title {
        font-size: 13.5px !important;
        line-height: 1.12 !important;
    }

}

/* Mobile only: hide product quantity on single order detail pages */
@media only screen and (max-width: 768px) {
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details strong.product-quantity,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details strong.product-quantity {
        display: none !important;
    }

}

/* =========================================================10. Single Order Details — Refined Apple-Like Layout========================================================= */
/* Keep this treatment limited to the View Order endpoint */
body.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content > p {
    display: block !important;
    margin: 0 0 24px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #444 !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details {
    margin: 0 !important;
    padding: 36px 40px 32px !important;
    border: 1px solid #e6e6e3 !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.045) !important;
    box-sizing: border-box !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details__title {
    margin: 0 0 26px !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em !important;
    color: #111 !important;
}

/* Remove the nested table-card appearance */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details table.shop_table,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Header */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details table.shop_table thead th,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details thead th {
    padding: 0 6px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #ededeb !important;
    background: transparent !important;
    color: #5f5f5f !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details th.product-name,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name {
    text-align: left !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details th.product-total,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-total {
    width: 130px !important;
    text-align: right !important;
}

/* Product rows */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tbody tr,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody tr {
    border: 0 !important;
    border-bottom: 1px solid #ededeb !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tbody td,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody td {
    padding: 22px 6px !important;
    border: 0 !important;
    background: transparent !important;
    vertical-align: middle !important;
}

/* Float the thumbnail so title and attributes sit alongside it */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name img,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name img {
    float: left !important;
    width: 132px !important;
    height: 132px !important;
    margin: 0 22px 0 0 !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    background: #f5f5f3 !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name::after,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name::after {
    content: "" !important;
    display: block !important;
    clear: both !important;
}

/* Product title */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name > a,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name > strong,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name > a {
    color: #111 !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 650 !important;
    text-decoration: none !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name a,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name a {
    color: #444 !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details strong.product-quantity,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details strong.product-quantity {
    color: #777 !important;
    font-weight: 400 !important;
}

/* Variations / item attributes */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name dl.variation,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name dl.variation {
    margin: 7px 0 0 !important;
    color: #606060 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name dl.variation dt,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name dl.variation dd,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name dl.variation dt,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name dl.variation dd {
    display: inline !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-weight: 400 !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name dl.variation dt::after,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name dl.variation dt::after {
    content: ": " !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name dl.variation dd::after,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name dl.variation dd::after {
    content: "" !important;
    display: block !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name dl.variation p,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name dl.variation p {
    display: inline !important;
    margin: 0 !important;
}

/* Product price */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-total,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-total {
    color: #222 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* RMA/status content beneath a product /body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name .rma-status,body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name [class="status"],body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name [class*="inspection"] {margin-top: 10px !important;}
/* Totals */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
    padding: 9px 6px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
    padding-top: 24px !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th {
    color: #555 !important;
    font-weight: 500 !important;
    text-align: left !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
    color: #222 !important;
    font-weight: 500 !important;
    text-align: right !important;
}

/* Emphasize the final monetary total without over-sizing payment method */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) th,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) th,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td {
    padding-top: 15px !important;
    border-top: 1px solid #ededeb !important;
    color: #111 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
    padding-top: 15px !important;
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Return / exchange helper area */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details + p,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details ~ p {
    margin: 26px 0 0 !important;
    padding-top: 22px !important;
    border-top: 1px solid #ededeb !important;
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details + p a,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details ~ p a {
    margin-left: 8px !important;
    color: #111 !important;
    font-weight: 650 !important;
    text-decoration: none !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details + p a,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details ~ p a {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

/* Tablet */
@media only screen and (max-width: 992px) {
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details {
        padding: 30px 28px 28px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name img,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name img {
        width: 116px !important;
        height: 116px !important;
        margin-right: 18px !important;
    }

}

/* Mobile */
@media only screen and (max-width: 768px) {
    body.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content > p {
        margin-bottom: 18px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details {
        padding: 24px 18px 22px !important;
        border-radius: 16px !important;
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.04) !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details__title {
        margin-bottom: 20px !important;
        font-size: 25px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details table.shop_table thead th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details thead th {
        padding: 0 0 11px !important;
        font-size: 12px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details th.product-total,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-total {
        width: 76px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tbody td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody td {
        padding: 18px 0 !important;
        vertical-align: top !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name {
        padding-right: 12px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name img,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name img {
        width: 82px !important;
        height: 82px !important;
        margin: 0 14px 8px 0 !important;
        border-radius: 9px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name > a,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name > strong,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name > a {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name dl.variation,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name dl.variation {
        margin-top: 5px !important;
        font-size: 12.5px !important;
        line-height: 1.4 !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-total,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-total {
        padding-top: 20px !important;
        font-size: 13px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        padding: 8px 0 !important;
        font-size: 14px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td {
        font-size: 16px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details + p,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details ~ p {
        margin-top: 20px !important;
        padding-top: 18px !important;
        font-size: 13px !important;
    }

}

@media only screen and (max-width: 480px) {
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details {
        padding: 22px 14px 20px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name img,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name img {
        width: 74px !important;
        height: 74px !important;
        margin-right: 12px !important;
    }

}

/* =========================================================11. Single Order Details — Final Layout CorrectionsFixes WooCommerce mobile table stacking and tightens desktop========================================================= */
/* Keep the order card from becoming excessively wide on large screens */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 38px 48px 34px !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details__title {
    margin: 0 0 24px !important;
    font-size: 32px !important;
    line-height: 1.12 !important;
}

/* More compact desktop product rows */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tbody td,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody td {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name img,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name img {
    width: 132px !important;
    height: 132px !important;
    margin-right: 22px !important;
}

/* Give long payment descriptions enough room to remain on one line */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details th.product-total,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-total,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details th.product-total,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-total {
    width: 190px !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
    white-space: nowrap !important;
}

@media only screen and (max-width: 768px) {
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details {
        width: 100% !important;
        max-width: none !important;
        padding: 22px 18px 20px !important;
        border-radius: 18px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details__title {
        margin-bottom: 18px !important;
        font-size: 25px !important;
    }

    /* Hide the desktop column heading row on mobile */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details thead,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details thead {
        display: none !important;
    }

    /* Undo WooCommerce's generic responsive block-table treatment */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details table.shop_table,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tbody,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody {
        display: table-row-group !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tbody tr,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody tr {
        display: table-row !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tbody td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody td {
        display: table-cell !important;
        padding: 20px 0 !important;
        vertical-align: top !important;
    }

    /* Remove Woo's generated mobile labels such as Product: and Total: */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td::before,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details th::before,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td::before,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details th::before {
        content: none !important;
        display: none !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name {
        width: auto !important;
        padding-right: 12px !important;
        text-align: left !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-total,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-total {
        width: 64px !important;
        padding-top: 23px !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name img,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name img {
        float: left !important;
        width: 88px !important;
        height: 88px !important;
        margin: 0 14px 0 0 !important;
        border-radius: 10px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name > a,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name > strong,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name > a {
        font-size: 15px !important;
        line-height: 1.28 !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name dl.variation,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name dl.variation {
        margin-top: 5px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    /* Keep status and RMA notes with the product information /body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name .rma-status,body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name [class="status"],body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name [class*="inspection"] {margin-top: 10px !important;}
    /* Restore a true two-column totals table on mobile */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot {
        display: table-footer-group !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr {
        display: table-row !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        display: table-cell !important;
        width: auto !important;
        padding: 9px 0 !important;
        vertical-align: middle !important;
        font-size: 14px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th {
        text-align: left !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
        padding-top: 20px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td {
        padding-top: 13px !important;
        font-size: 16px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
        padding-top: 14px !important;
        white-space: nowrap !important;
    }

}

@media only screen and (max-width: 480px) {
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details {
        padding: 20px 14px 18px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name img,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name img {
        width: 82px !important;
        height: 82px !important;
        margin-right: 12px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-total,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-total {
        width: 58px !important;
        font-size: 13px !important;
    }

}

/* =========================================================12. Single Order Details — Final Width + Spacing OverrideKeep this section at the very bottom of the stylesheet========================================================= */
/* Desktop: slightly tighter totals and payment rows */
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.35 !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
    padding-top: 18px !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) th,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) th,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td {
    padding-top: 13px !important;
    padding-bottom: 10px !important;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th,
body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
    padding-top: 15px !important;
    padding-bottom: 4px !important;
}

@media only screen and (max-width: 768px) {
    html,
    body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.woocommerce-account,
    body.woocommerce-account #page,
    body.woocommerce-account #content,
    body.woocommerce-account .site-content,
    body.woocommerce-account .col-full,
    body.woocommerce-account .woocommerce,
    body.woocommerce-account .woocommerce-MyAccount-content,
    body.woocommerce-account .woocommerce-order {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .col-full {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }

    /* Order confirmation sentence above the card */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order > p,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-overview + p {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
        box-sizing: border-box !important;
    }

    /* Outer order card */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        min-width: 0 !important;
        margin: 28px 12px 0 !important;
        padding: 28px 16px 26px !important;
        border-radius: 22px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details__title {
        margin: 0 0 24px !important;
        font-size: 30px !important;
        line-height: 1.08 !important;
    }

    /* Keep the entire table inside the card */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details table.shop_table,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tbody,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody {
        display: table-row-group !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tbody tr,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody tr {
        display: table-row !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tbody td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody td {
        display: table-cell !important;
        min-width: 0 !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
        vertical-align: top !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td::before,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details th::before,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td::before,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details th::before {
        content: none !important;
        display: none !important;
    }

    /* Product information column */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name {
        width: calc(100% - 68px) !important;
        min-width: 0 !important;
        padding-right: 10px !important;
        text-align: left !important;
        overflow-wrap: anywhere !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name *,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name * {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Product price column */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-total,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-total {
        width: 68px !important;
        min-width: 68px !important;
        padding-left: 4px !important;
        padding-right: 0 !important;
        padding-top: 19px !important;
        text-align: right !important;
        white-space: nowrap !important;
        vertical-align: top !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name img,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name img {
        float: left !important;
        width: 88px !important;
        max-width: 88px !important;
        height: 88px !important;
        margin: 0 14px 0 0 !important;
        border-radius: 10px !important;
        object-fit: cover !important;
    }

    /* Totals: compact, aligned two-column rows */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot {
        display: table-footer-group !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr {
        display: table-row !important;
        width: 100% !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        display: table-cell !important;
        min-width: 0 !important;
        padding-top: 7px !important;
        padding-bottom: 7px !important;
        vertical-align: middle !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th {
        width: 47% !important;
        padding-left: 0 !important;
        padding-right: 8px !important;
        text-align: left !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        width: 53% !important;
        padding-left: 8px !important;
        padding-right: 0 !important;
        text-align: right !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
        padding-top: 17px !important;
    }

    /* Total row */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td {
        padding-top: 12px !important;
        padding-bottom: 10px !important;
        font-size: 17px !important;
    }

    /* Payment method row */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
        padding-top: 13px !important;
        padding-bottom: 2px !important;
        white-space: normal !important;
    }

    /* Return/exchange help row */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details + p,
    body.woocommerce-account.woocommerce-view-order .everyrep-order-help {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-wrap: anywhere !important;
        box-sizing: border-box !important;
    }

}

@media only screen and (max-width: 480px) {
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        padding: 24px 14px 24px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details__title {
        font-size: 28px !important;
        margin-bottom: 22px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name {
        width: calc(100% - 62px) !important;
        padding-right: 8px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-total,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-total {
        width: 62px !important;
        min-width: 62px !important;
        font-size: 13px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details td.product-name img,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name img {
        width: 82px !important;
        max-width: 82px !important;
        height: 82px !important;
        margin-right: 12px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        font-size: 14px !important;
    }

}

/* =========================================================13. Mobile Order Details — Final Width + Totals RefinementKeep this section at the very bottom========================================================= */
@media only screen and (max-width: 768px) {
    /* Match the order card width to the account cards above */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details {
        width: 100% !important;
        max-width: 100% !important;
        margin: 28px 0 0 !important;
        padding: 26px 18px 24px !important;
        box-sizing: border-box !important;
    }

    /* Slightly reduce the card's internal left/right inset */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details__title {
        margin-bottom: 22px !important;
    }

    /* Give the value column enough room for shipping/payment text */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th {
        width: 42% !important;
        padding-right: 10px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        width: 58% !important;
        padding-left: 10px !important;
    }

    /* Keep short values on one line */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
    }

    /* Keep the payment label itself on one line */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th {
        white-space: nowrap !important;
    }

    /* Compact subtotal, shipping, and tax spacing */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr((2))() th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr((2))() td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr((2))() th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr((2))() td {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    /* Preserve deliberate separation before Total */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td {
        padding-top: 11px !important;
        padding-bottom: 8px !important;
    }

    /* Payment method remains one horizontal row */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
        padding-top: 12px !important;
        padding-bottom: 3px !important;
        vertical-align: middle !important;
    }

}

@media only screen and (max-width: 480px) {
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 24px 14px 22px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th {
        width: 40% !important;
        font-size: 14px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        width: 60% !important;
        font-size: 14px !important;
    }

}

/* =========================================================14. Mobile Order Summary — Contained Right-Aligned ValuesFinal override: keep this section at the very bottom========================================================= */
@media only screen and (max-width: 768px) {
    /* Use a true two-column grid for the summary rows.This prevents long values from extending beyond the card. */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) max-content !important;
        column-gap: 14px !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        justify-self: end !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: right !important;
        white-space: nowrap !important;
        overflow: visible !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    /* Compact subtotal, shipping, and tax rows */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr((2))() th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr((2))() td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr((2))() th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr((2))() td {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    /* Total row */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2),
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) {
        margin-top: 5px !important;
        border-top: 1px solid #ececea !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td {
        padding-top: 12px !important;
        padding-bottom: 9px !important;
    }

    /* Payment method row */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr {
        margin-top: 4px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
        padding-top: 10px !important;
        padding-bottom: 3px !important;
        line-height: 1.25 !important;
    }

}

@media only screen and (max-width: 480px) {
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr {
        column-gap: 10px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        font-size: 13.5px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
        font-size: 14px !important;
    }

}

/* =========================================================15. Mobile Summary — Full Card Width Alignment FixKeep this as the final section in the stylesheet========================================================= */
@media only screen and (max-width: 768px) {
    /* Break the mobile table out of its intrinsic column sizing so thefooter can use the complete inner width of the order card. */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details table.shop_table,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        table-layout: auto !important;
        box-sizing: border-box !important;
    }

    /* Preserve the existing product-row table layout. */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details table.shop_table tbody,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        box-sizing: border-box !important;
    }

    /* Footer spans from the card's left inset to its right inset. */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th {
        display: block !important;
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 48% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        display: block !important;
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 52% !important;
        margin-left: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: right !important;
        white-space: nowrap !important;
        overflow: visible !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        box-sizing: border-box !important;
    }

    /* Compact routine rows. */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr((2))() th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr((2))() td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr((2))() th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr((2))() td {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    /* Full-width divider and balanced spacing for Total. */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2),
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) {
        margin-top: 5px !important;
        border-top: 1px solid #ececea !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td {
        padding-top: 12px !important;
        padding-bottom: 9px !important;
    }

    /* Payment method remains one horizontal, edge-aligned row. */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr {
        margin-top: 4px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
        padding-top: 10px !important;
        padding-bottom: 3px !important;
        line-height: 1.25 !important;
    }

}

@media only screen and (max-width: 480px) {
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr {
        gap: 10px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th {
        max-width: 46% !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        max-width: 54% !important;
    }

}

/* =========================================================16. FINAL MOBILE ORDER + ADDRESS CORRECTIONSKeep this section at the absolute bottom of the stylesheet.========================================================= */
@media only screen and (max-width: 768px) {
    /* -----------------------------------------------------A. Order-summary rows: labels left, values flush right----------------------------------------------------- */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot th,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th {
        display: block !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        display: block !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 0 0 auto !important;
        padding-left: 8px !important;
        padding-right: 0 !important;
        text-align: right !important;
        white-space: nowrap !important;
        overflow: visible !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        box-sizing: border-box !important;
    }

    /* Shipping row: amount flush right, service text beneath it. */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2),
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) {
        align-items: flex-start !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td {
        white-space: normal !important;
        line-height: 1.35 !important;
        font-size: 13px !important;
        text-align: right !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td .woocommerce-Price-amount,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td .woocommerce-Price-amount {
        display: block !important;
        width: 100% !important;
        margin: 0 0 2px !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    /* Keep Total and Payment Method firmly aligned to the right edge. */
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details tfoot tr td,
    body.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr td {
        margin-left: auto !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    /* -----------------------------------------------------B. Billing and shipping address cards----------------------------------------------------- */
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details {
        width: 100% !important;
        max-width: 100% !important;
        margin: 24px 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-columns,
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-columns--addresses {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column,
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column--billing-address,
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column--shipping-address {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 26px 24px 28px !important;
        border: 1px solid #e2e2df !important;
        border-radius: 22px !important;
        background: #fff !important;
        box-shadow: 4px 6px 0 rgba(0,0,0,0.025) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column > h2,
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column > h3,
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column-title {
        display: block !important;
        margin: 0 0 20px !important;
        padding: 0 !important;
        font-size: 25px !important;
        line-height: 1.15 !important;
        font-weight: 700 !important;
        letter-spacing: -0.03em !important;
        color: #111 !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details address {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        font-size: 16px !important;
        line-height: 1.62 !important;
        font-style: normal !important;
        color: #111 !important;
        overflow-wrap: anywhere !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details address p {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details address p + p,
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-customer-details--phone,
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-customer-details--email {
        margin-top: 18px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details address strong {
        font-weight: 700 !important;
    }

}

@media only screen and (max-width: 480px) {
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column,
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column--billing-address,
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column--shipping-address {
        padding: 24px 20px 26px !important;
        border-radius: 20px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column > h2,
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column > h3,
    body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column-title {
        font-size: 24px !important;
        margin-bottom: 18px !important;
    }

}

/* =========================================================SHIPPING ROW — FINAL DESKTOP + MOBILEKeep this section at the absolute bottom of the stylesheet========================================================= */
/* Desktop/tablet: amount flush right; shipping method directly beneath */
@media only screen and (min-width: 769px) {
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstable.shop_table.order_detailstfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-details.woocommerce-table--order-detailstfoot tr(2) td {
        display: table-cell !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        text-align: right !important;
        vertical-align: middle !important;
        white-space: normal !important;
        /* Suppress the literal &nbsp; text node between amount and method */
        font-size: 0 !important;
        line-height: 0 !important;
    }

    body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstable.shop_table.order_detailstfoot tr(2) tdspan.woocommerce-Price-amount.amount,
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-details.woocommerce-table--order-detailstfoot tr(2) tdspan.woocommerce-Price-amount.amount {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.25 !important;
        font-weight: 500 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstable.shop_table.order_detailstfoot tr(2) tdsmall.shipped_via,
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-details.woocommerce-table--order-detailstfoot tr(2) tdsmall.shipped_via {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 2px 0 0 !important;
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
        font-weight: 400 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

}

/* Mobile: amount right-aligned with shipping method directly beneath it */
@media only screen and (max-width: 768px) {
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstable.shop_table.order_detailstfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-details.woocommerce-table--order-detailstfoot tr(2) td {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 1px !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        text-align: right !important;
        vertical-align: middle !important;
        white-space: normal !important;
    }

    body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstable.shop_table.order_detailstfoot tr(2) tdspan.woocommerce-Price-amount.amount,
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-details.woocommerce-table--order-detailstfoot tr(2) tdspan.woocommerce-Price-amount.amount {
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstable.shop_table.order_detailstfoot tr(2) tdsmall.shipped_via,
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-details.woocommerce-table--order-detailstfoot tr(2) tdsmall.shipped_via {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        font-weight: 400 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

}

/* Capitalize WooCommerce order-item attribute values */
body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstd.product-nameul.wc-item-metalip,
body.woocommerce-account.woocommerce-view-order.woocommerce-table--order-detailstd.product-nameul.wc-item-metalip {
    text-transform: capitalize !important;
}

/* Mobile: regular-weight prices, with only the final total bold */
@media only screen and (max-width: 768px) {
    /* Product prices */
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstbody td.product-total,
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstbody td.product-total *,
    body.woocommerce-account.woocommerce-view-order.woocommerce-table--order-detailstbody td.product-total,
    body.woocommerce-account.woocommerce-view-order.woocommerce-table--order-detailstbody td.product-total * {
        font-weight: 400 !important;
    }

    /* Subtotal, shipping and tax amounts */
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstfoot tr((2))() td,
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstfoot tr((2))() td *,
    body.woocommerce-account.woocommerce-view-order.woocommerce-table--order-detailstfoot tr((2))() td,
    body.woocommerce-account.woocommerce-view-order.woocommerce-table--order-detailstfoot tr((2))() td * {
        font-weight: 400 !important;
    }

    /* Keep the final Total emphasized */
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order.woocommerce-order-detailstfoot tr(2) td *,
    body.woocommerce-account.woocommerce-view-order.woocommerce-table--order-detailstfoot tr(2) td,
    body.woocommerce-account.woocommerce-view-order.woocommerce-table--order-detailstfoot tr(2) td * {
        font-weight: 700 !important;
    }

}

/* Remove WooCommerce's duplicate native variation list from Shoptimizer mini cart */
body .shoptimizer-mini-cart-wrapli.woocommerce-mini-cart-item.mini_cart_itemdl.variation,
body .widget_shopping_cartli.woocommerce-mini-cart-item.mini_cart_itemdl.variation,
body .widget_shopping_cart_contentli.woocommerce-mini-cart-item.mini_cart_itemdl.variation,
body ul.woocommerce-mini-cartli.woocommerce-mini-cart-item.mini_cart_itemdl.variation {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

@media only screen and (max-width: 768px) {
    body.woocommerce-account .col-full {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.woocommerce-account .woocommerce {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

}

/* =========================================================
   ADDED OVERRIDE — MOBILE ORDER DETAILS PRODUCT WRAP FIX
   Added July 29, 2026
   Keep this section at the absolute bottom of the stylesheet
   ========================================================= */

@media only screen and (max-width: 600px) {

    /* Reserve a slightly wider fixed column for the product price */
    body.woocommerce-account.woocommerce-view-order
    .woocommerce-order-details
    .woocommerce-table--order-details
    tbody tr.order_item > td.product-total {
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        padding-left: 8px !important;
        padding-right: 0 !important;
        text-align: right !important;
        white-space: nowrap !important;
        vertical-align: top !important;
        box-sizing: border-box !important;
    }

    /* Give the remaining row width to the product information */
    body.woocommerce-account.woocommerce-view-order
    .woocommerce-order-details
    .woocommerce-table--order-details
    tbody tr.order_item > td.product-name {
        width: calc(100% - 60px) !important;
        max-width: calc(100% - 60px) !important;
        min-width: 0 !important;
        padding-right: 12px !important;
        text-align: left !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    /* Override portal.css nowrap rule and force long names to wrap sooner */
    body.woocommerce-account.woocommerce-view-order
    .woocommerce-order-details
    .woocommerce-table--order-details
    tbody tr.order_item > td.product-name > a,

    body.woocommerce-account.woocommerce-view-order
    .woocommerce-order-details
    .woocommerce-table--order-details
    tbody tr.order_item > td.product-name > strong:not(.product-quantity),

    body.woocommerce-account.woocommerce-view-order
    .woocommerce-order-details
    .woocommerce-table--order-details
    tbody tr.order_item > td.product-name .product-name {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        box-sizing: border-box !important;
    }

}

/* =========================================================
   END ADDED OVERRIDE — MOBILE ORDER DETAILS PRODUCT WRAP FIX
   ========================================================= */

@media only screen and (max-width: 768px) {

    /* Compact totals and customer details */
    body.woocommerce-account
    .woocommerce-MyAccount-content
    .woocommerce-order-details
    table.shop_table tfoot th,

    body.woocommerce-account
    .woocommerce-MyAccount-content
    .woocommerce-order-details
    table.shop_table tfoot td,

    body.woocommerce-account
    .woocommerce-MyAccount-content
    .woocommerce-customer-details
    table.shop_table th,

    body.woocommerce-account
    .woocommerce-MyAccount-content
    .woocommerce-customer-details
    table.shop_table td {
        padding: 3px !important;
    }

    /* Preserve comfortable spacing around product images */
    body.woocommerce-account
    .woocommerce-MyAccount-content
    .woocommerce-order-details
    table.shop_table tbody tr.order_item td {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
}

/* =========================================================
   MOBILE VIEW ORDER — FINAL TITLE + PAYMENT ROW REFINEMENT
   ========================================================= */

@media only screen and (max-width: 768px) {

    /* Slightly smaller, more refined Order details heading */
    body.woocommerce-account.woocommerce-view-order
    .woocommerce-order-details__title {
        font-size: 27px !important;
        line-height: 1.12 !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        font-weight: 600 !important;
    }

    /* Create separation above the Payment method row */
    body.woocommerce-account.woocommerce-view-order
    .woocommerce-order-details
    table.shop_table tfoot tr:last-child th,

    body.woocommerce-account.woocommerce-view-order
    .woocommerce-order-details
    table.shop_table tfoot tr:last-child td {
        padding-top: 12px !important;
        padding-bottom: 3px !important;
    }
}