/* Moved from Elementor (P4): Account (3906) */
.elementor-widget-woocommerce-my-account {
    font-family: "Aquawax Pro", Sans-serif;
}

.elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content a {
    text-decoration: underline;
}
.elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content table a,
.elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content a.button ,
.elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content a.woocommerce-button {
    text-decoration: none;
}

/* =====================================================================
   Logged-in account (Elementor "My Account" widget)
   ---------------------------------------------------------------------
   The widget owns the layout (nav 25% / content 75% floats) and draws
   every card / table / button border itself, all wired to CSS variables
   that are unset on this site → falling back to grey/teal/3px defaults.
   So we rebrand through those variables and add only what variables
   can't reach (heading size, 2-up name fields, a card for the custom
   "Recensioni" tab). We do NOT re-impose our own layout or a second set
   of cards — that double-layering is what produced the double borders.
   ===================================================================== */

/* Rebrand the widget's design tokens (note Elementor's inconsistent
   singular/plural variable names — kept verbatim so they actually bind). */
body.woocommerce-account .elementor-widget-woocommerce-my-account {
    /* Card surfaces: borderless filled panels, same as the thank-you card.
       Elementor composes its border from four separate width variables, so
       all four have to go to 0 for the border to actually disappear. */
    --sections-background-color: var(--dv-card-bg);
    --sections-border-color: transparent;
    --sections-border-top-width: 0;
    --sections-border-right-width: 0;
    --sections-border-bottom-width: 0;
    --sections-border-left-width: 0;
    --sections-border-radius: var(--dv-card-radius);
    --sections-padding: var(--dv-card-padding);
    --tab-content-spacing: 40px;                 /* gap between nav and content */
    --section-title-spacing: 16px;               /* h2/h3 bottom margin */
    --typography-section-titles-color: var(--e-global-color-primary);
    --tabs-spacing: 0;                           /* seamless nav list */
    --tabs-padding: 14px 18px;
    --tabs-normal-color: var(--e-global-color-text);
    --tabs-active-color: var(--e-global-color-primary);
    --tabs-hover-color: var(--e-global-color-primary);
    --tables-divider-border-color: var(--dv-card-divider);
    --tables-title-color: var(--dv-card-label-color);
    --tables-links-normal-color: var(--e-global-color-primary);
    --tables-links-hover-color: var(--e-global-color-primary);
    --tables-buttons-border-color: var(--e-global-color-primary);
    --tables-button-normal-text-color: var(--e-global-color-primary);
    --tables-button-border-radius: 10px 30px 30px 0;
    --tables-button-padding: 10px 22px;
}

/* Elementor only wires border variables (not a background) into the tab
   content wrappers, so the filled card is drawn here. edit-address and
   view-order are excluded on purpose: Elementor zeroes their wrapper and
   the card sits one level deeper (.woocommerce-address-fields / address,
   and .dv-order-card respectively). */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab__dashboard .woocommerce-MyAccount-content-wrapper,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab__downloads .woocommerce-MyAccount-content-wrapper,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab__edit-account .woocommerce-MyAccount-content-wrapper,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab__payment-methods .woocommerce-MyAccount-content-wrapper {
    background: var(--dv-card-bg);
    border: 0;
    border-radius: var(--dv-card-radius);
    padding: var(--dv-card-padding);
}

/* Breathing room above and below the whole account area (login + tabs). */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab {
    padding-top: 48px;
    padding-bottom: 64px;
}

/* Bump the content copy up a touch from the widget's 14px default. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-MyAccount-content {
    font-size: 15px;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-MyAccount-content p,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-MyAccount-content address,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-MyAccount-content > div > p {
    font-size: 16px;
    line-height: 1.55;
}

/* Navigation: wrap the items in one rounded card with hairline dividers.
   (Item background + active/hover colours come from the widget via the
   variables above.) */
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--dv-card-radius);
    background: var(--dv-card-bg);
    overflow: hidden;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li + li {
    border-top: 1px solid var(--dv-card-divider);
}

/* Collapsible navigation on tablet/mobile (≤1024px). The toggle button is
   injected by js/account.js as the first child of .woocommerce-MyAccount-navigation
   and shows the current page name + chevron. Hidden on desktop (full list
   always visible); below 1024px the list collapses behind the toggle. */
.dv-account-nav-toggle {
    display: none;
}
@media (max-width: 1024px) {
    body.woocommerce-account .dv-account-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        margin: 0;
        padding: 14px 18px;
        border: 0;
        border-radius: var(--dv-card-radius);
        background: var(--dv-card-bg);
        font: inherit;
        font-weight: 700;
        line-height: 1.3;
        color: var(--e-global-color-primary);
        text-align: left;
        cursor: pointer;
    }
    body.woocommerce-account .dv-account-nav-toggle__chevron {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        transition: transform 0.25s ease;
    }
    body.woocommerce-account .dv-account-nav-toggle[aria-expanded="true"] .dv-account-nav-toggle__chevron {
        transform: rotate(180deg);
    }
    /* Collapsed by default; reveal the list only when the toggle is open. */
    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: none;
        margin-top: 10px;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation.is-open ul {
        display: block;
    }
}

/* Section titles (Fatturazione, Spedizione, Indirizzo di…): the theme's
   default h2/h3 size is huge here. Selector has to out-specify the
   widget's own h2/h3 rule. Colour/margin come from the variables above. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-MyAccount-content h2,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-MyAccount-content h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* Table action buttons (Visualizza, Ordina di nuovo) are primary outline
   pills via the variables; fill them in on hover. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce .button:hover {
    background: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    color: #fff;
}

/* The custom "Recensioni" (contributions) tab isn't one of Elementor's
   styled endpoints (it renders as e-my-account-tab__ with no suffix), so
   match it by the review table it holds and give it the same card. */
body.woocommerce-account .woocommerce-MyAccount-content-wrapper:has(.my_account_contributions) {
    border: 0;
    border-radius: var(--dv-card-radius);
    background: var(--dv-card-bg);
    padding: 32px;
}
/* …and strip the plugin table's own border so the card isn't doubled. */
body.woocommerce-account .woocommerce-MyAccount-content-wrapper .my_account_contributions {
    border: 0;
    border-radius: 0;
    margin: 0;
}
body.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-order-details {
    margin-top: 20px;
}
/* Review text is wrapped in .text-read-more by the theme's
   woocommerce/myaccount/contribution-list.php override, so it is clamped to
   3 lines from first paint (no jump). Keep the "Mostra di più" toggle
   aligned with the text, not pushed right. */
body.woocommerce-account .my_account_contributions td.contribution-content .read-more-link {
    margin-left: 0;
    margin-top: 4px;
    font-size: var(--e-global-typography-small-font-size, 12px);
}

/* Address list: separate the "Modifica indirizzo…" link from the address
   block beneath it. */
body.woocommerce-account .woocommerce-Address-title .edit {
    display: inline-block;
    position: relative !important;
    margin: 0 0 4px !important;
}

/* Provincia (and any state) field is a select2 widget, not a native input,
   so it needs the same treatment as the checkout's select2 to match the
   other fields. !important beats the widget's own select2 styling. */
body.woocommerce-account .woocommerce .select2-container {
    width: 100% !important;
    display: block;
}
body.woocommerce-account .woocommerce .select2-container--default .select2-selection--single {
    border: 1px solid #c0c4cd !important;
    background: #fff !important;
    border-radius: 10px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 18px !important;
    font-size: 16px;
}
body.woocommerce-account .woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    padding: 0 24px 0 0 !important;
    color: #000 !important;
}
body.woocommerce-account .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 12px;
}
body.woocommerce-account .woocommerce .select2-container--default.select2-container--focus .select2-selection--single,
body.woocommerce-account .woocommerce .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--e-global-color-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-global-color-primary) 12%, transparent) !important;
}

/* Forms: 2-up first/last name like the checkout, kept to a readable width. */
body.woocommerce-account .woocommerce-EditAccountForm,
body.woocommerce-account .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
}
body.woocommerce-account .woocommerce-EditAccountForm > *,
body.woocommerce-account .woocommerce-address-fields__field-wrapper > * {
    grid-column: 1 / -1;                         /* full width by default */
    min-width: 0;
}
body.woocommerce-account .woocommerce-EditAccountForm > .form-row-first,
body.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-first {
    grid-column: 1 / 2;
}
@media (min-width: 769px) {
    body.woocommerce-account .woocommerce-EditAccountForm > .form-row-last,
    body.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-last {
        grid-column: 2 / 3;
    }
}

body.woocommerce-account .e-my-account-tab__edit-account .woocommerce-MyAccount-content-wrapper,
body.woocommerce-account .woocommerce-address-fields {
    max-width: 640px;
}

/* Password-change fieldset on the edit-account form. */
body.woocommerce-account fieldset {
    grid-column: 1 / -1;
    min-width: 0;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-EditAccountForm fieldset {
    border: 0;
    border-top: 1px solid var(--dv-card-divider);
    border-radius: 0;
    padding: 20px 0 0;
    margin: 8px 0 16px;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab fieldset legend {
    float: left;                                 /* drop out of the border-top line */
    width: 100%;
    font-weight: 400;
    font-size: var(--dv-card-label-size);
    text-transform: uppercase;
    color: var(--dv-card-label-color);
    padding: 0 0 8px;
}

/* Account tables → thank-you table language ----------------------------
   Orders list, downloads and payment methods. Elementor styles the same
   cells with (0,5,3) selectors, so every rule here has to reach at least
   that; the extra element in the selector is what does it. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table {
    background: transparent;
    border: 0;
    border-collapse: collapse;
    width: 100%;
    font-size: 16px;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table thead th,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table thead th span {
    color: var(--dv-card-label-color);
    font-size: var(--dv-card-label-size);
    font-weight: 400;
    text-transform: uppercase;
    text-align: left;
    line-height: 1.2;
    background: transparent;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table thead th {
    border-top: 0;
    padding: 0 0 12px;
}
body.woocommerce-account .dv-order-card table.shop_table thead th:not(:first-child),
body.woocommerce-account .woocommerce-orders-table thead th:last-child {
    text-align: right !important;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table tbody th,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table tbody td {
    border-top: 0;
    border-bottom: 1px solid var(--dv-card-divider);
    background: transparent;
    padding: 14px 0;
    font-weight: 400;
    line-height: 1.4;
    vertical-align: middle;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table tbody tr:last-child th,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: 0;
    padding-bottom: 0;
}
/* Column gutter, same idea as the order-details table on the thank-you page.
   Desktop only: below 768px WC stacks the cells and the gutter would become
   a stray left indent. */
@media (min-width: 769px) {
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table tr > th:not(:first-child),
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table tr > td:not(:first-child) {
        padding-left: 9px;
    }
}
/* Orders and reviews lists read better a notch smaller than the order card. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.woocommerce-orders-table,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.my_account_contributions {
    font-size: 14px;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table .woocommerce-orders-table__cell-order-actions {
    text-align: right;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table .woocommerce-orders-table__cell-order-actions a {
    margin-left: 10px;
    padding: 10px 18px;
}
/* Order number link: brand blue instead of Elementor's teal fallback. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce tbody .woocommerce-orders-table__cell-order-number > a {
    font-weight: 700;
    text-decoration: none;
}

/* My account > order view ----------------------------------------------
   checkout/thankyou.php and myaccount/view-order.php both wrap the order
   tables + addresses in .dv-order-card, so the shared card rules in the
   "Order received" section below do the styling. Elementor draws its own
   white panel around .order_details and <address> inside that wrapper —
   flatten it so only the one card remains. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card .order_details,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card address {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card table.shop_table tbody td,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card table.shop_table tbody th {
    padding: 12px 0;
    vertical-align: baseline;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card table.shop_table tbody tr:last-child td,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card table.shop_table tbody tr:last-child th {
    border-bottom: 1px solid var(--dv-card-divider);
    padding-bottom: 12px;
}
/* Totals stack: label column keeps the thank-you's right-aligned uppercase
   labels; Elementor's divider borders would cut across it. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card table.shop_table tfoot th,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card table.shop_table tfoot td {
    border-top: 0;
    border-bottom: 0;
    background: transparent;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card table.shop_table tfoot tr.dv-totals-row th {
    text-align: right;
    color: var(--dv-card-label-color);
}
/* Elementor colours the whole tfoot from --tables-title-color at (0,5,3),
   which out-specifies the shared card rules; restate the totals palette. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card table.shop_table tfoot tr.dv-totals-row td {
    color: var(--wp--preset--color--text);
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card table.shop_table tfoot tr.dv-totals-row--order_total th,
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card table.shop_table tfoot tr.dv-totals-row--order_total td {
    color: var(--wp--preset--color--primary);
}

/* Item links keep the body colour like the thank-you page (the account
   widget's link colour is more specific than the shared card rule). */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card .order_details .product-name a {
    color: var(--wp--preset--color--text);
    text-decoration: none;
}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card .order_details .product-name a:hover {
    color: var(--wp--preset--color--primary);
}

/* Fatturazione / Spedizione headings inside the card: the account widget's
   generic h2/h3 rule (0,4,1) out-specifies the shared .dv-customer-details__title,
   so restate the label style at the account's own specificity. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .dv-order-card .dv-customer-details__title {
    color: var(--dv-card-label-color);
    font-size: var(--dv-card-label-size);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 8px;
}

/* Status sentence above the card ("L'ordine #… è stato creato il …").
   Selector reaches the widget's own paragraph rule so the margin sticks. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-MyAccount-content p.dv-order-status-line {
    margin: 0 0 24px;
    color: var(--e-global-color-text);
}

/* Notices inside an account card (e.g. the "Conferma l'indirizzo e-mail"
   banner on the orders list): white on the grey card, with a neutral
   grey button. The global notice rules use !important, so these must too. */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
    background-color: #fff;
    margin-bottom: 20px;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info a.button {
    background: var(--wp--preset--color--secondary) !important;
    color: var(--e-global-color-text) !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info a.button:hover {
    background: var(--wp--preset--color--secondary-alt) !important;
    color: var(--e-global-color-text) !important;
}
body.woocommerce-account .dv-order-status-line mark {
    background: transparent;
    color: var(--e-global-color-primary);
    font-weight: 700;
}

/* Customer order notes, when the shop adds them to an order. */
body.woocommerce-account .woocommerce-OrderUpdates {
    list-style: none;
    margin: 0 0 24px;
    padding: var(--dv-card-padding);
    background: var(--dv-card-bg);
    border-radius: var(--dv-card-radius);
}
body.woocommerce-account .woocommerce-OrderUpdates .woocommerce-OrderUpdate + .woocommerce-OrderUpdate {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--dv-card-divider);
}
body.woocommerce-account .woocommerce-OrderUpdates .woocommerce-OrderUpdate-meta {
    color: var(--dv-card-label-color);
    font-size: var(--dv-card-label-size);
    text-transform: uppercase;
    margin: 0 0 6px;
}
body.woocommerce-account .woocommerce-OrderUpdates .woocommerce-OrderUpdate-description p:last-child {
    margin-bottom: 0;
}

/* Addresses list → two even columns (WC ships floats). */
body.woocommerce-account .woocommerce-Addresses.col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
body.woocommerce-account .woocommerce-Addresses.col2-set > div {
    float: none;
    width: auto;
}
/* WC's clearfix pseudo-elements become grid items and would occupy the
   first cell, pushing the billing column to the right. */
body.woocommerce-account .woocommerce-Addresses.col2-set::before,
body.woocommerce-account .woocommerce-Addresses.col2-set::after {
    display: none;
}

/* Addresses list: the <address> block is the card (filled via the
   --sections-* variables above); drop the top padding Elementor reserves
   for its absolutely-positioned edit link, which the rule further up has
   already put back in the flow. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-Address address {
    padding: var(--dv-card-padding);
    font-style: normal;
    line-height: 1.55;
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 767px) {
    body.woocommerce-account:not(.logged-in) .woocommerce:has(#customer_login.col2-set) {
        max-width: 480px;
    }
    body.woocommerce-account #customer_login.col2-set {
        grid-template-columns: 1fr;
    }
    body.woocommerce-account .woocommerce-EditAccountForm,
    body.woocommerce-account .woocommerce-address-fields__field-wrapper,
    body.woocommerce-account .woocommerce-Addresses.col2-set {
        grid-template-columns: 1fr;
    }
    body.woocommerce-account .woocommerce-form-login,
    body.woocommerce-account .woocommerce-form-register,
    body.woocommerce-account .woocommerce-ResetPassword {
        padding: 24px 20px;
    }
}

/* Stacked lists on mobile (orders, reviews). WC's smallscreen sheet turns
   each cell into a block with a floated data-title label and a border per
   cell; here one order = one block, separated from the next by a single
   divider, and each cell is a label/value flex row. Table and tbody go
   block too, otherwise the table keeps its min-content width and overflows
   the card. Cells stay flow-root (not flex) so mixed inline content like
   "15,00 € per 1 articolo" is not split into separate flex items, while
   the floated label and the floated star-rating are still contained.
   Same 768px breakpoint as WC. */
@media (max-width: 768px) {
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive tbody {
        display: block;
        width: 100%;
    }
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive tbody tr {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--dv-card-divider);
    }
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive tbody tr:first-child {
        padding-top: 0;
    }
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive tbody tr:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive tbody tr td {
        display: flow-root;
        padding: 3px 0;
        border: 0;
        background: transparent;
        line-height: 1.4;
    }
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive tbody tr td::before {
        float: left;
        margin-right: 12px;
        color: var(--dv-card-label-color);
        font-size: var(--dv-card-label-size);
        font-weight: 400;
        text-transform: uppercase;
        text-align: left;
        line-height: 1.5;
    }
    /* Long text cells (product name, review text): label above, value left. */
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive tbody tr td.contribution-product,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive tbody tr td.contribution-content {
        text-align: left !important;
    }
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive tbody tr td.contribution-product::before,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive tbody tr td.contribution-content::before {
        float: none;
        display: block;
        margin: 0 0 2px;
    }
    /* The product thumbnail column is noise when stacked. */
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive tbody tr td.contribution-photo {
        display: none;
    }
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive .woocommerce-orders-table__cell-order-actions,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive .contribution-actions {
        padding-top: 8px;
    }
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive .woocommerce-orders-table__cell-order-actions::before,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce table.shop_table.shop_table_responsive .contribution-actions::before {
        line-height: 40px;                       /* centre the label on the button */
    }
    body.woocommerce-account .woocommerce-MyAccount-content-wrapper:has(.my_account_contributions) {
        padding: 16px;
    }
}

