/*
 * NOVA Workspace — My Account v1.8.1
 * Responsive-first override for WooCommerce + Astra.
 */

.nova-account-main {
    background: #f7f7f4;
    color: #171717;
}

/* Prevent Astra/WooCommerce inherited widths from breaking the account shell. */
.nova-account-shell,
.nova-account-shell *,
.nova-account-shell *::before,
.nova-account-shell *::after {
    box-sizing: border-box;
}

.nova-account-shell,
.nova-account-shell .woocommerce,
.nova-account-shell .woocommerce-MyAccount-content,
.nova-account-shell .woocommerce-MyAccount-navigation {
    min-width: 0;
    max-width: 100%;
}

.nova-account-hero {
    padding: clamp(52px, 7vw, 92px) 0 44px;
    border-bottom: 1px solid #e4e4df;
    background: #f7f7f4;
}

.nova-account-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr);
    gap: clamp(30px, 6vw, 84px);
    align-items: end;
}

.nova-account-hero h1 {
    max-width: 820px;
    margin: 13px 0 16px;
    font-family: Manrope, sans-serif;
    font-size: clamp(40px, 5vw, 66px);
    line-height: 1.03;
    letter-spacing: -.05em;
    color: #171717;
    overflow-wrap: anywhere;
}

.nova-account-hero p {
    max-width: 670px;
    margin: 0;
    color: #686868;
    font-size: 16px;
    line-height: 1.7;
}

.nova-account-hero__note {
    min-width: 0;
    padding: 22px 0 4px 22px;
    border-left: 1px solid #d8d9d3;
}

.nova-account-hero__note span {
    display: block;
    margin-bottom: 7px;
    font-family: Manrope, sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.nova-account-hero__note p {
    font-size: 13px;
    line-height: 1.65;
}

.nova-account-section {
    padding: clamp(42px, 5vw, 72px) 0 clamp(68px, 8vw, 104px);
}

.nova-account-shell .woocommerce {
    width: 100% !important;
    margin: 0 !important;
}

/* Desktop account layout. */
.nova-account-shell.is-authenticated > .woocommerce,
.nova-account-shell.is-authenticated .woocommerce {
    display: grid;
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
    gap: clamp(20px, 2.5vw, 30px);
    align-items: start;
}

.nova-account-shell .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 9px;
    border: 1px solid #e2e3de;
    border-radius: 20px;
    background: #fff;
    position: sticky;
    top: 104px;
    z-index: 2;
}

.nova-account-shell .woocommerce-MyAccount-navigation ul {
    display: block;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

.nova-account-shell .woocommerce-MyAccount-navigation li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.nova-account-shell .woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border-radius: 12px;
    color: #575b55;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none !important;
    white-space: normal;
    transition: background .2s ease, color .2s ease;
}

.nova-account-shell .woocommerce-MyAccount-navigation a:hover {
    background: #f3f4ef;
    color: #171717;
}

.nova-account-shell .woocommerce-MyAccount-navigation .is-active a {
    background: #5f6f52;
    color: #fff;
}

.nova-account-shell .woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #ecece8 !important;
}

.nova-account-shell .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid #e2e3de;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(33, 38, 31, .04);
    overflow: hidden;
}

.nova-account-shell .woocommerce-MyAccount-content > :first-child { margin-top: 0 !important; }
.nova-account-shell .woocommerce-MyAccount-content > :last-child { margin-bottom: 0 !important; }

/* Dashboard / Resumen */
.nova-account-dashboard {
    width: 100%;
    min-width: 0;
}

.nova-account-dashboard__intro {
    max-width: 700px;
    margin: 0 0 28px;
}

.nova-account-dashboard__intro h2,
.nova-account-shell .woocommerce-MyAccount-content h2,
.nova-account-shell .woocommerce-MyAccount-content h3 {
    font-family: Manrope, sans-serif;
    color: #171717;
    letter-spacing: -.025em;
}

.nova-account-dashboard__intro h2 {
    margin: 8px 0 9px;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.nova-account-dashboard__intro p,
.nova-account-shell .woocommerce-MyAccount-content p {
    color: #696d67;
    line-height: 1.65;
}

.nova-account-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0 0 26px;
}

.nova-account-stat {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 11px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 104px;
    padding: 16px;
    border: 1px solid #e6e7e2;
    border-radius: 17px;
    background: #f8f8f5;
    color: #171717 !important;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.nova-account-stat:hover {
    transform: translateY(-2px);
    border-color: #cfd3c8;
    background: #f2f4ed;
}

.nova-account-stat__number,
.nova-account-stat__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #e8ece2;
    color: #4c5c42;
    font-family: Manrope, sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.nova-account-stat > span:nth-child(2) {
    display: block;
    min-width: 0;
    overflow: hidden;
}

.nova-account-stat strong,
.nova-account-stat small {
    display: block;
    min-width: 0;
    max-width: 100%;
}

.nova-account-stat strong {
    font-size: 13px;
    line-height: 1.3;
}

.nova-account-stat small {
    margin-top: 4px;
    color: #7a7e78;
    font-size: 10.5px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nova-account-stat__arrow {
    justify-self: end;
    color: #798471;
    font-size: 16px;
}

.nova-account-dashboard__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    width: 100%;
    padding: 24px;
    border-radius: 19px;
    background: #1f261e;
    color: #fff;
}

.nova-account-dashboard__actions > div { min-width: 0; }

.nova-account-dashboard__actions h3 {
    margin: 0 0 6px;
    color: #fff !important;
    font-size: 19px;
    line-height: 1.3;
}

.nova-account-dashboard__actions p {
    margin: 0 !important;
    color: rgba(255,255,255,.68) !important;
    font-size: 13px;
}

.nova-account-dashboard__actions .nova-btn {
    white-space: nowrap;
}

/* Endpoint headings, tables and forms. */
.nova-account-shell .woocommerce-MyAccount-content h2 {
    margin: 0 0 22px;
    font-size: clamp(25px, 3vw, 33px);
    line-height: 1.2;
}

.nova-account-shell .woocommerce-orders-table,
.nova-account-shell .woocommerce-table,
.nova-account-shell table.shop_table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 22px !important;
    border: 0 !important;
    border-spacing: 0 !important;
    border-collapse: collapse !important;
    background: transparent !important;
    table-layout: auto;
}

.nova-account-shell table th,
.nova-account-shell table td {
    min-width: 0;
    padding: 14px 10px !important;
    border-width: 0 0 1px !important;
    border-style: solid !important;
    border-color: #ecece8 !important;
    background: transparent !important;
    color: #353832;
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.nova-account-shell table th {
    color: #747870;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.nova-account-shell .button,
.nova-account-shell button.button,
.nova-account-shell input.button {
    min-height: 44px;
    padding: 11px 17px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #5f6f52 !important;
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.nova-account-shell .button:hover,
.nova-account-shell button.button:hover,
.nova-account-shell input.button:hover { background: #495641 !important; }

.nova-account-shell form,
.nova-account-shell form .form-row { max-width: 100%; }
.nova-account-shell form .form-row { margin: 0 0 17px !important; padding: 0 !important; }
.nova-account-shell form .form-row-first,
.nova-account-shell form .form-row-last { width: calc(50% - 7px) !important; }
.nova-account-shell form .form-row-first { float: left !important; }
.nova-account-shell form .form-row-last { float: right !important; }

.nova-account-shell form label {
    display: block;
    margin: 0 0 7px;
    color: #343732;
    font-size: 12.5px;
    font-weight: 600;
}

.nova-account-shell input.input-text,
.nova-account-shell input[type="text"],
.nova-account-shell input[type="email"],
.nova-account-shell input[type="password"],
.nova-account-shell input[type="tel"],
.nova-account-shell select,
.nova-account-shell textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #dfe1da !important;
    border-radius: 12px !important;
    background: #fbfbf8 !important;
    color: #171717 !important;
    box-shadow: none !important;
}

.nova-account-shell textarea { min-height: 120px; }
.nova-account-shell input:focus,
.nova-account-shell select:focus,
.nova-account-shell textarea:focus {
    outline: 2px solid rgba(95,111,82,.18);
    border-color: #7e8b73 !important;
}

.nova-account-shell fieldset {
    min-width: 0;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e6e7e2;
    border-radius: 17px;
}
.nova-account-shell legend { padding: 0 8px; font-weight: 700; }

.nova-account-shell .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.nova-account-shell .woocommerce-Address {
    float: none !important;
    width: auto !important;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e6e7e2;
    border-radius: 17px;
    background: #fafaf7;
}

.nova-account-shell .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.nova-account-shell .woocommerce-Address-title h2 {
    margin: 0 !important;
    font-size: 18px !important;
}
.nova-account-shell address {
    margin-top: 16px;
    color: #686c66;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* Notices. */
.nova-account-shell .woocommerce-message,
.nova-account-shell .woocommerce-info,
.nova-account-shell .woocommerce-error {
    width: 100%;
    margin: 0 0 20px !important;
    padding: 15px 17px !important;
    border: 1px solid #dfe3d8 !important;
    border-top: 1px solid #dfe3d8 !important;
    border-radius: 13px;
    background: #f3f5ef !important;
    color: #30352e !important;
    overflow-wrap: anywhere;
}
.nova-account-shell .woocommerce-error {
    border-color: #ead9d6 !important;
    background: #fbf4f2 !important;
}
.nova-account-shell .woocommerce-message::before,
.nova-account-shell .woocommerce-info::before,
.nova-account-shell .woocommerce-error::before { display: none !important; }

/* Guest login / registration. */
.nova-account-shell.is-guest .woocommerce {
    display: block !important;
    max-width: 920px !important;
    margin: 0 auto !important;
}

.nova-account-shell.is-guest .u-columns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.nova-account-shell.is-guest .u-column1,
.nova-account-shell.is-guest .u-column2 {
    float: none !important;
    width: auto !important;
    min-width: 0;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid #e2e3de;
    border-radius: 22px;
    background: #fff;
}

.nova-account-shell.is-guest h2 {
    margin: 0 0 20px;
    font-family: Manrope, sans-serif;
    font-size: 28px;
    color: #171717;
}

.nova-account-shell.is-guest .woocommerce-form-login,
.nova-account-shell.is-guest .woocommerce-form-register {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.nova-account-shell .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}
.nova-account-shell .woocommerce-LostPassword { margin-top: 14px; }
.nova-account-shell a { color: #526348; }

.nova-account-unavailable {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    border: 1px solid #e2e3de;
    border-radius: 22px;
    background: #fff;
}

.nova-account-help {
    padding: clamp(52px, 7vw, 84px) 0;
    background: #1f261e;
}

.nova-account-help__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr);
    gap: 48px;
    align-items: center;
}
.nova-account-help h2 {
    max-width: 650px;
    margin: 10px 0 0;
    color: #fff;
    font-family: Manrope, sans-serif;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.04em;
}
.nova-account-help p {
    margin: 0 0 20px;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
}

/* Tablet: navigation moves above content and remains fully visible. */
@media (max-width: 1024px) {
    .nova-account-hero__inner,
    .nova-account-help__inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .nova-account-hero__note { max-width: 620px; }

    .nova-account-shell.is-authenticated > .woocommerce,
    .nova-account-shell.is-authenticated .woocommerce {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation {
        position: static;
        top: auto;
        padding: 7px;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation ul {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation a {
        justify-content: center;
        text-align: center;
        padding-inline: 9px;
        font-size: 12px;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation-link--customer-logout {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .nova-account-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .nova-account-hero {
        padding: 38px 0 30px;
    }

    .nova-account-hero__inner {
        display: block;
    }

    .nova-account-hero h1 {
        margin-top: 10px;
        font-size: clamp(36px, 10vw, 46px);
        letter-spacing: -.045em;
    }

    .nova-account-hero p {
        font-size: 14px;
        line-height: 1.65;
    }

    .nova-account-hero__note {
        display: none;
    }

    .nova-account-section {
        padding: 26px 0 58px;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation {
        border-radius: 16px;
        padding: 6px;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation li:last-child {
        grid-column: 1 / -1;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation a {
        justify-content: flex-start;
        min-height: 42px;
        padding: 9px 11px;
        text-align: left;
        font-size: 11.5px;
    }

    .nova-account-shell .woocommerce-MyAccount-content {
        padding: 20px 16px;
        border-radius: 18px;
        overflow: hidden;
    }

    .nova-account-dashboard__intro {
        margin-bottom: 20px;
    }

    .nova-account-dashboard__intro h2 {
        font-size: 26px;
    }

    .nova-account-dashboard__intro p {
        margin-bottom: 0;
        font-size: 13px;
    }

    .nova-account-stats {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-bottom: 20px;
    }

    .nova-account-stat {
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        min-height: 78px;
        padding: 12px 13px;
        border-radius: 14px;
    }

    .nova-account-stat__number,
    .nova-account-stat__icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .nova-account-stat strong { font-size: 12.5px; }
    .nova-account-stat small { font-size: 10px; }

    .nova-account-dashboard__actions {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
        border-radius: 16px;
    }

    .nova-account-dashboard__actions h3 {
        font-size: 18px;
    }

    .nova-account-dashboard__actions .nova-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .nova-account-shell .woocommerce-Addresses,
    .nova-account-shell.is-guest .u-columns {
        grid-template-columns: 1fr;
    }

    .nova-account-shell form .form-row-first,
    .nova-account-shell form .form-row-last {
        float: none !important;
        width: 100% !important;
    }

    .nova-account-shell fieldset {
        padding: 16px;
    }

    /* Turn WooCommerce order tables into readable cards. */
    .nova-account-shell table.shop_table_responsive,
    .nova-account-shell table.woocommerce-orders-table {
        display: block;
        width: 100% !important;
    }

    .nova-account-shell table.shop_table_responsive thead,
    .nova-account-shell table.woocommerce-orders-table thead {
        display: none !important;
    }

    .nova-account-shell table.shop_table_responsive tbody,
    .nova-account-shell table.woocommerce-orders-table tbody {
        display: grid;
        gap: 10px;
        width: 100%;
    }

    .nova-account-shell table.shop_table_responsive tbody tr,
    .nova-account-shell table.woocommerce-orders-table tbody tr {
        display: block;
        width: 100%;
        margin: 0;
        padding: 8px 13px;
        border: 1px solid #e6e7e2 !important;
        border-radius: 14px;
        background: #fafaf7;
        overflow: hidden;
    }

    .nova-account-shell table.shop_table_responsive tbody td,
    .nova-account-shell table.woocommerce-orders-table tbody td {
        display: grid !important;
        grid-template-columns: minmax(90px, 38%) minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        width: 100% !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #ecece8 !important;
        text-align: right !important;
    }

    .nova-account-shell table.shop_table_responsive tbody td:last-child,
    .nova-account-shell table.woocommerce-orders-table tbody td:last-child {
        border-bottom: 0 !important;
    }

    .nova-account-shell table.shop_table_responsive tbody td::before,
    .nova-account-shell table.woocommerce-orders-table tbody td::before {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin: 0 !important;
        color: #777b74;
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.3;
        text-align: left;
        white-space: normal;
    }

    .nova-account-shell table.shop_table_responsive tbody td .button,
    .nova-account-shell table.woocommerce-orders-table tbody td .button {
        justify-self: end;
        width: auto;
        max-width: 100%;
    }

    .nova-account-help {
        padding: 46px 0;
    }

    .nova-account-help__inner {
        gap: 22px;
    }

    .nova-account-help h2 {
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .nova-account-shell .woocommerce-MyAccount-content {
        padding: 17px 13px;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation ul {
        grid-template-columns: 1fr 1fr;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation a {
        min-height: 40px;
        padding: 8px 9px;
        font-size: 10.5px;
    }

    .nova-account-dashboard__intro h2 {
        font-size: 24px;
    }

    .nova-account-stat {
        grid-template-columns: 36px minmax(0, 1fr) 14px;
        gap: 9px;
        min-height: 72px;
        padding: 10px 11px;
    }

    .nova-account-stat__number,
    .nova-account-stat__icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 12px;
    }

    .nova-account-stat small {
        max-width: 100%;
    }

    .nova-account-shell table.shop_table_responsive tbody td,
    .nova-account-shell table.woocommerce-orders-table tbody td {
        grid-template-columns: minmax(76px, 36%) minmax(0, 1fr);
        gap: 8px;
        font-size: 12px;
    }

    .nova-account-shell .woocommerce-Address {
        padding: 16px;
    }

    .nova-account-shell.is-guest .u-column1,
    .nova-account-shell.is-guest .u-column2 {
        padding: 20px 16px;
        border-radius: 18px;
    }
}

/* ========================================================================== 
   NOVA Workspace — My Account structural fix v1.8.2
   The WooCommerce default account template uses float-based navigation/content.
   NOVA now wraps both regions in .nova-myaccount-layout so layout no longer
   depends on those inherited widths.
   ========================================================================== */

.nova-account-shell.is-authenticated {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.nova-account-shell.is-authenticated > .nova-myaccount-layout,
.nova-account-shell.is-authenticated .nova-myaccount-layout {
    display: grid !important;
    grid-template-columns: minmax(200px, 230px) minmax(0, 1fr) !important;
    gap: clamp(20px, 2.4vw, 30px) !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Kill the legacy WooCommerce/Astra float geometry completely. */
.nova-account-shell.is-authenticated .nova-myaccount-layout > .woocommerce-MyAccount-navigation,
.nova-account-shell.is-authenticated .nova-myaccount-layout > .woocommerce-MyAccount-content {
    float: none !important;
    clear: none !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.nova-account-shell.is-authenticated .nova-myaccount-layout > .woocommerce-MyAccount-navigation {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: sticky !important;
    top: 104px !important;
    align-self: start !important;
}

.nova-account-shell.is-authenticated .nova-myaccount-layout > .woocommerce-MyAccount-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    min-height: 360px;
    overflow: visible !important;
}

.nova-account-shell .nova-account-dashboard,
.nova-account-shell .nova-account-dashboard__intro,
.nova-account-shell .nova-account-stats,
.nova-account-shell .nova-account-dashboard__actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.nova-account-shell .nova-account-dashboard__intro {
    max-width: 760px !important;
}

.nova-account-shell .nova-account-dashboard__intro h2 {
    max-width: 100%;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none;
}

.nova-account-shell .nova-account-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.nova-account-shell .nova-account-stat {
    min-width: 0 !important;
    max-width: 100% !important;
}

.nova-account-shell .nova-account-stat > span:nth-child(2) {
    min-width: 0 !important;
    width: auto !important;
}

.nova-account-shell .nova-account-stat strong,
.nova-account-shell .nova-account-stat small {
    overflow-wrap: anywhere;
}

.nova-account-shell .nova-account-dashboard__actions {
    grid-template-columns: minmax(0, 1fr) max-content !important;
}

.nova-account-shell .nova-account-dashboard__actions .nova-btn {
    max-width: 100%;
}

/* Medium layouts still have enough room for a true sidebar. Do not collapse
   the account layout at 1024px: that breakpoint was what produced the broken
   desktop appearance on scaled/zoomed displays. */
@media (max-width: 860px) {
    .nova-account-shell.is-authenticated > .nova-myaccount-layout,
    .nova-account-shell.is-authenticated .nova-myaccount-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .nova-account-shell.is-authenticated .nova-myaccount-layout > .woocommerce-MyAccount-navigation,
    .nova-account-shell.is-authenticated .nova-myaccount-layout > .woocommerce-MyAccount-content {
        grid-column: 1 !important;
        position: static !important;
        top: auto !important;
    }

    .nova-account-shell.is-authenticated .nova-myaccount-layout > .woocommerce-MyAccount-navigation {
        grid-row: 1 !important;
    }

    .nova-account-shell.is-authenticated .nova-myaccount-layout > .woocommerce-MyAccount-content {
        grid-row: 2 !important;
        min-height: 0;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation ul {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation-link--customer-logout {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .nova-account-shell .nova-account-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .nova-account-shell .woocommerce-MyAccount-navigation ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation li:last-child {
        grid-column: 1 / -1 !important;
    }

    .nova-account-shell .woocommerce-MyAccount-content {
        padding: 20px 16px !important;
        border-radius: 18px !important;
    }

    .nova-account-shell .nova-account-stats {
        grid-template-columns: 1fr !important;
    }

    .nova-account-shell .nova-account-dashboard__actions {
        grid-template-columns: 1fr !important;
    }

    .nova-account-shell .nova-account-dashboard__actions .nova-btn {
        width: 100% !important;
        white-space: normal !important;
    }
}

@media (max-width: 420px) {
    .nova-account-shell .woocommerce-MyAccount-navigation ul {
        grid-template-columns: 1fr 1fr !important;
    }

    .nova-account-shell .woocommerce-MyAccount-navigation a {
        width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere;
    }

    .nova-account-shell .woocommerce-MyAccount-content {
        padding: 17px 13px !important;
    }

    .nova-account-shell .nova-account-dashboard__intro h2 {
        font-size: 23px !important;
        line-height: 1.18 !important;
    }
}

/* Shortcode wrappers differ slightly between WooCommerce versions. If a
   .woocommerce wrapper is present, it must remain a neutral full-width block;
   .nova-myaccount-layout owns the actual two-column geometry. */
.nova-account-shell.is-authenticated > .woocommerce {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nova-account-shell.is-authenticated > .woocommerce > .nova-myaccount-layout {
    width: 100% !important;
    max-width: 100% !important;
}

/* NOVA v1.10.0 — explicit session action on the account dashboard. */
.nova-account-dashboard__buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nova-account-dashboard__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 4px;
    color: rgba(255,255,255,.76) !important;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none !important;
    white-space: nowrap;
}

.nova-account-dashboard__logout:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

@media (max-width: 680px) {
    .nova-account-dashboard__buttons {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 6px;
    }

    .nova-account-dashboard__logout {
        width: 100%;
        min-height: 40px;
    }
}

/* NOVA v1.12.0 — creación y gestión de contraseña */
.nova-account-shell.is-guest .woocommerce-form-register .password-input,
.nova-account-shell .woocommerce-EditAccountForm .password-input {
    display: block;
    position: relative;
    width: 100%;
}

.nova-account-shell.is-guest .woocommerce-form-register input[type="password"],
.nova-account-shell .woocommerce-EditAccountForm input[type="password"] {
    width: 100% !important;
    padding-right: 48px !important;
}

.nova-account-shell .show-password-input {
    right: 14px !important;
}

.nova-account-shell .woocommerce-password-strength {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #f3f4ef;
    color: #5f635c;
    font-size: 11px;
    line-height: 1.35;
}

.nova-account-shell .woocommerce-password-hint,
.nova-password-help {
    display: block;
    margin: 8px 0 16px !important;
    color: #777b75 !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
}

.nova-account-shell .nova-account-security-note {
    margin: 0 0 26px;
    padding: 16px 18px;
    border: 1px solid #dfe4d9;
    border-radius: 14px;
    background: #f5f7f1;
}

.nova-account-shell .nova-account-security-note strong {
    display: block;
    margin-bottom: 5px;
    color: #35412f;
    font-family: Manrope, sans-serif;
    font-size: 13px;
}

.nova-account-shell .nova-account-security-note p {
    margin: 0 !important;
    color: #656a62 !important;
    font-size: 12px;
    line-height: 1.55;
}

.nova-account-shell.is-guest .woocommerce-form-register .woocommerce-form-row {
    width: 100% !important;
    float: none !important;
}

@media (max-width: 760px) {
    .nova-account-shell.is-guest .u-columns {
        grid-template-columns: 1fr !important;
    }

    .nova-account-shell.is-guest .u-column1,
    .nova-account-shell.is-guest .u-column2 {
        padding: 22px !important;
    }
}

/* ========================================================================== 
   NOVA Workspace — acceso / registro con alternancia v1.12.1
   Un solo formulario visible a la vez en Mi cuenta.
   ========================================================================== */
.nova-account-shell.is-guest .woocommerce {
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 auto !important;
}

.nova-customer-auth {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.nova-customer-auth__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    margin: 0 0 14px;
    padding: 5px;
    border: 1px solid #e1e3dd;
    border-radius: 15px;
    background: #efefeb;
}

.nova-customer-auth__tab {
    min-width: 0;
    min-height: 46px;
    margin: 0 !important;
    padding: 10px 16px !important;
    border: 0 !important;
    border-radius: 11px !important;
    outline: 0;
    background: transparent !important;
    color: #696d66 !important;
    font-family: Manrope, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25;
    text-align: center;
    box-shadow: none !important;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.nova-customer-auth__tab.is-active {
    background: #fff !important;
    color: #1f251d !important;
    box-shadow: 0 4px 15px rgba(39, 44, 35, .07) !important;
}

.nova-customer-auth__tab:focus-visible {
    box-shadow: 0 0 0 3px rgba(95, 111, 82, .18) !important;
}

.nova-customer-auth__card {
    width: 100%;
    min-width: 0;
    padding: clamp(26px, 4.5vw, 40px);
    border: 1px solid #e1e3dd;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(39, 44, 35, .065);
}

.nova-customer-auth__panel[hidden] {
    display: none !important;
}

.nova-customer-auth__panel,
.nova-customer-auth__panel form {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.nova-customer-auth__heading {
    margin-bottom: 26px;
}

.nova-customer-auth__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #66725d;
    font-family: Manrope, sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .13em;
}

.nova-account-shell.is-guest .nova-customer-auth__heading h2 {
    margin: 0 0 9px !important;
    color: #171717;
    font-family: Manrope, sans-serif;
    font-size: clamp(26px, 4vw, 34px) !important;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.nova-customer-auth__heading p {
    max-width: 490px;
    margin: 0;
    color: #73776f;
    font-size: 12.5px;
    line-height: 1.6;
}

.nova-customer-auth .woocommerce-form-login,
.nova-customer-auth .woocommerce-form-register {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.nova-customer-auth .form-row,
.nova-customer-auth .form-row-first,
.nova-customer-auth .form-row-last {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 17px !important;
    padding: 0 !important;
}

.nova-customer-auth label:not(.woocommerce-form-login__rememberme) {
    display: block;
    margin: 0 0 7px;
    color: #393d37;
    font-size: 11px;
    font-weight: 650;
}

.nova-customer-auth input.input-text,
.nova-customer-auth input[type="text"],
.nova-customer-auth input[type="email"],
.nova-customer-auth input[type="password"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 1px solid #dfe1da !important;
    border-radius: 12px !important;
    outline: 0 !important;
    background: #fbfbf8 !important;
    color: #20231f !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.nova-customer-auth input[type="password"] {
    padding-right: 48px !important;
}

.nova-customer-auth input:focus {
    border-color: #708064 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(95, 111, 82, .11) !important;
}

.nova-customer-auth__form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -1px 0 18px;
}

.nova-customer-auth .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin: 0 !important;
    color: #686d65;
    font-size: 11.5px;
    cursor: pointer;
}

.nova-customer-auth .woocommerce-form-login__rememberme input {
    width: 15px !important;
    height: 15px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #5f6f52;
}

.nova-customer-auth__lost {
    color: #53634a !important;
    font-size: 11.5px;
    font-weight: 650;
    text-decoration: none !important;
}

.nova-customer-auth__lost:hover {
    text-decoration: underline !important;
}

.nova-customer-auth .woocommerce-form-login__submit,
.nova-customer-auth .woocommerce-form-register__submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    border: 1px solid #5f6f52 !important;
    border-radius: 12px !important;
    background: #5f6f52 !important;
    color: #fff !important;
    font-family: Manrope, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.nova-customer-auth .woocommerce-form-login__submit:hover,
.nova-customer-auth .woocommerce-form-register__submit:hover {
    border-color: #4d5c43 !important;
    background: #4d5c43 !important;
}

.nova-customer-auth__switch-copy {
    margin: 22px 0 0 !important;
    padding-top: 19px;
    border-top: 1px solid #ededE8;
    color: #767a73;
    font-size: 11.5px;
    text-align: center;
}

.nova-customer-auth__switch-copy button {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #4f6047 !important;
    font: inherit !important;
    font-weight: 700 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none !important;
    cursor: pointer;
}

.nova-customer-auth .woocommerce-privacy-policy-text {
    margin: 2px 0 18px;
    padding: 14px 15px;
    border-radius: 11px;
    background: #f7f7f3;
    color: #73776f;
    font-size: 11px;
    line-height: 1.55;
}

.nova-customer-auth .woocommerce-privacy-policy-text p {
    margin: 0 !important;
}

.nova-customer-auth .nova-password-help,
.nova-customer-auth .woocommerce-password-hint {
    margin: 7px 0 16px !important;
    font-size: 10.5px !important;
}

@media (max-width: 620px) {
    .nova-account-shell.is-guest .woocommerce,
    .nova-customer-auth {
        max-width: 100% !important;
    }

    .nova-customer-auth__tabs {
        margin-bottom: 10px;
        border-radius: 13px;
    }

    .nova-customer-auth__tab {
        min-height: 43px;
        padding: 9px 8px !important;
        font-size: 11px !important;
    }

    .nova-customer-auth__card {
        padding: 22px 17px;
        border-radius: 19px;
    }

    .nova-customer-auth__heading {
        margin-bottom: 22px;
    }

    .nova-customer-auth__heading p {
        font-size: 12px;
    }

    .nova-customer-auth__form-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }
}

@media (max-width: 390px) {
    .nova-customer-auth__tab {
        font-size: 10.5px !important;
    }

    .nova-customer-auth__card {
        padding-inline: 15px;
    }
}
