:root {
    --so-account-ink: #101722;
    --so-account-muted: #68788d;
    --so-account-blue: #1677ff;
    --so-account-line: rgba(49, 72, 104, .11);
    --so-account-glass: rgba(255,255,255,.62);
    --so-account-glass-strong: rgba(255,255,255,.82);
    --so-account-shadow: 0 24px 70px rgba(28, 45, 70, .11);
}

body.woocommerce-account {
    background:
        radial-gradient(
            circle at 10% 12%,
            rgba(39, 130, 255, .10),
            transparent 28%
        ),
        radial-gradient(
            circle at 87% 16%,
            rgba(102, 93, 255, .07),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #f8fbff,
            #eef4fa
        ) !important;
}

body.woocommerce-account .woocommerce {
    width: min(1420px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin: 42px auto 90px !important;
}

.so-account-app {
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.so-account-sidebar {
    position: sticky;
    top: 28px;
    min-height: 680px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.76),
            rgba(239,247,255,.56)
        );
    backdrop-filter: blur(30px) saturate(150%);
    box-shadow: var(--so-account-shadow);
}

.so-account-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 8px 20px;
    margin-bottom: 8px;
    color: var(--so-account-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--so-account-line);
}

.so-account-sidebar__avatar {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            #147dff,
            #5968ff
        );
    color: #fff;
    font-weight: 900;
    font-size: 17px;
    box-shadow:
        0 12px 30px rgba(32,111,255,.24),
        inset 0 1px 0 rgba(255,255,255,.3);
}

.so-account-sidebar__brand strong,
.so-account-sidebar__brand small {
    display: block;
}

.so-account-sidebar__brand strong {
    font-size: 14px;
}

.so-account-sidebar__brand small {
    margin-top: 2px;
    color: var(--so-account-muted);
    font-size: 11px;
}

.so-account-nav {
    display: grid;
    gap: 4px;
    margin-top: 12px;
}

.so-account-nav__item {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 7px 10px;
    border-radius: 14px;
    color: #55657a;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 750;
    transition: .18s ease;
}

.so-account-nav__item:hover {
    color: var(--so-account-ink);
    background: rgba(255,255,255,.58);
}

.so-account-nav__item.is-active {
    color: var(--so-account-ink);
    background: rgba(255,255,255,.88);
    box-shadow:
        0 8px 28px rgba(34,54,82,.08),
        inset 0 1px 0 rgba(255,255,255,.95);
}

.so-account-nav__icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(233,242,253,.72);
}

.so-account-nav__item.is-active .so-account-nav__icon {
    background: rgba(22,119,255,.10);
    color: var(--so-account-blue);
}

.so-account-nav__icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.so-account-nav__item b {
    color: #95a1b2;
    font-size: 19px;
    font-weight: 400;
}

.so-account-sidebar__bottom {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--so-account-line);
}

.so-account-nav__logout {
    color: #8a5960;
}

.so-account-content {
    min-width: 0;
}

.so-account-dashboard {
    display: grid;
    gap: 22px;
}

.so-account-hero {
    position: relative;
    display: flex;
    min-height: 255px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    padding: clamp(30px, 5vw, 58px);
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(
            circle at 80% 5%,
            rgba(98,110,255,.30),
            transparent 35%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(11,133,255,.34),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #0d1d2d 0%,
            #16273b 55%,
            #182033 100%
        );
    box-shadow:
        0 30px 80px rgba(20,34,53,.18);
}

.so-account-hero__glow {
    position: absolute;
    width: 300px;
    height: 300px;
    right: -80px;
    top: -120px;
    border-radius: 50%;
    background: rgba(74,126,255,.22);
    filter: blur(25px);
}

.so-account-hero__copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.so-account-eyebrow {
    display: inline-block;
    color: #278cff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.so-account-hero .so-account-eyebrow {
    color: #67b3ff;
}

.so-account-hero h1 {
    margin: 10px 0 10px !important;
    color: #fff !important;
    font-size: clamp(34px, 4vw, 58px) !important;
    line-height: .98 !important;
    letter-spacing: -.04em;
}

.so-account-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 15px;
}

.so-account-hero__shop {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 15px;
    color: #fff !important;
    text-decoration: none !important;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(15px);
    font-weight: 850;
}

.so-account-hero__shop span {
    display: inline-flex;
}

.so-account-hero__shop svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.so-account-hero__shop b {
    margin-left: 5px;
}

.so-account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.so-account-stat {
    display: grid;
    min-height: 150px;
    align-content: center;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 22px;
    color: var(--so-account-ink) !important;
    text-decoration: none !important;
    background: var(--so-account-glass);
    backdrop-filter: blur(25px) saturate(150%);
    box-shadow: 0 16px 42px rgba(35,52,76,.07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.so-account-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(35,52,76,.11);
}

.so-account-stat__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 12px;
    color: var(--so-account-blue);
    background: rgba(22,119,255,.09);
}

.so-account-stat__icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.so-account-stat__value {
    font-size: 27px;
    line-height: 1;
    font-weight: 900;
}

.so-account-stat__label {
    margin-top: 6px;
    color: var(--so-account-muted);
    font-size: 12px;
    font-weight: 650;
}

.so-account-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .75fr);
    gap: 18px;
}

.so-account-panel,
.so-account-endpoint-panel {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.74),
            rgba(242,248,255,.54)
        );
    backdrop-filter: blur(28px) saturate(150%);
    box-shadow: var(--so-account-shadow);
}

.so-account-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.so-account-panel__head h2 {
    margin: 4px 0 0 !important;
    color: var(--so-account-ink) !important;
    font-size: 25px !important;
    letter-spacing: -.025em;
}

.so-account-panel__head > a {
    color: var(--so-account-blue);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.so-order-list {
    display: grid;
}

.so-order-row {
    display: grid;
    grid-template-columns: 85px 1fr 120px 100px 22px;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    border-bottom: 1px solid var(--so-account-line);
    color: var(--so-account-ink) !important;
    text-decoration: none !important;
    font-size: 12px;
}

.so-order-row:last-child {
    border-bottom: 0;
}

.so-order-number {
    font-weight: 850;
}

.so-order-date {
    color: var(--so-account-muted);
}

.so-order-status {
    display: inline-flex;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(22,119,255,.08);
    color: #236ac5;
    font-size: 10px;
    font-weight: 850;
}

.so-order-total {
    font-weight: 850;
    text-align: right;
}

.so-order-arrow {
    color: #8b99ab;
    text-align: right;
}

.so-account-empty {
    display: grid;
    min-height: 260px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.so-account-empty__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--so-account-blue);
    background: rgba(22,119,255,.09);
}

.so-account-empty__icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.so-account-empty h3 {
    margin: 13px 0 5px;
}

.so-account-empty p {
    max-width: 380px;
    color: var(--so-account-muted);
}

.so-account-button {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 0 16px;
    border-radius: 12px;
    background: #111923;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
}

.so-account-profile {
    min-height: 100%;
}

.so-profile-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--so-account-line);
}

.so-profile-row span,
.so-profile-row strong {
    display: block;
}

.so-profile-row span {
    margin-bottom: 6px;
    color: var(--so-account-muted);
    font-size: 11px;
    font-weight: 700;
}

.so-profile-row strong {
    color: var(--so-account-ink);
    font-size: 12px;
    line-height: 1.65;
}

.so-profile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.so-profile-actions a {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--so-account-line);
    border-radius: 11px;
    background: rgba(255,255,255,.62);
    color: var(--so-account-ink);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.so-account-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.so-quick-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 11px;
    align-items: center;
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 20px;
    background: var(--so-account-glass);
    backdrop-filter: blur(22px);
    box-shadow: 0 13px 38px rgba(35,52,76,.06);
    color: var(--so-account-ink) !important;
    text-decoration: none !important;
}

.so-quick-card > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(22,119,255,.08);
    color: var(--so-account-blue);
}

.so-quick-card svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.so-quick-card strong,
.so-quick-card small {
    display: block;
}

.so-quick-card strong {
    font-size: 12px;
}

.so-quick-card small {
    margin-top: 3px;
    color: var(--so-account-muted);
    font-size: 10px;
}

.so-quick-card b {
    color: #98a5b4;
}

.so-account-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.so-account-product {
    overflow: hidden;
    border: 1px solid var(--so-account-line);
    border-radius: 18px;
    background: rgba(255,255,255,.54);
    color: var(--so-account-ink) !important;
    text-decoration: none !important;
}

.so-account-product__image {
    aspect-ratio: 1.15 / 1;
    padding: 12px;
    background: rgba(237,244,252,.72);
}

.so-account-product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.so-account-product__copy {
    padding: 13px;
}

.so-account-product__copy strong,
.so-account-product__copy span {
    display: block;
}

.so-account-product__copy strong {
    font-size: 12px;
}

.so-account-product__copy span {
    margin-top: 7px;
    font-size: 13px;
    font-weight: 900;
}


/* Woo endpoint content gets the same premium shell */
.so-account-endpoint-panel .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}

.so-account-endpoint-panel h2,
.so-account-endpoint-panel h3 {
    color: var(--so-account-ink);
}

.so-account-endpoint-panel table {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--so-account-line) !important;
    border-radius: 17px;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: rgba(255,255,255,.48);
}

.so-account-endpoint-panel th,
.so-account-endpoint-panel td {
    padding: 14px 15px !important;
    border-bottom: 1px solid rgba(49,72,104,.08) !important;
}

.so-account-endpoint-panel input.input-text,
.so-account-endpoint-panel input[type="email"],
.so-account-endpoint-panel input[type="password"],
.so-account-endpoint-panel input[type="tel"],
.so-account-endpoint-panel select,
.so-account-endpoint-panel textarea {
    width: 100% !important;
    min-height: 48px;
    padding: 10px 13px !important;
    border: 1px solid rgba(49,72,104,.13) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.78) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}

.so-account-endpoint-panel fieldset {
    margin-top: 24px !important;
    padding: 20px !important;
    border: 1px solid var(--so-account-line) !important;
    border-radius: 17px !important;
    background: rgba(255,255,255,.38);
}

.so-account-endpoint-panel button.button,
.so-account-endpoint-panel a.button {
    border: 0 !important;
    border-radius: 12px !important;
    background: #111923 !important;
    color: #fff !important;
    padding: 12px 17px !important;
    font-weight: 800 !important;
}


/* Kill legacy account nav from theme if anything leaks through */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none !important;
}


/* Responsive */
@media (max-width: 1100px) {

    .so-account-app {
        grid-template-columns: 220px minmax(0,1fr);
    }

    .so-account-stats,
    .so-account-quick-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .so-account-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {

    body.woocommerce-account .woocommerce {
        width: calc(100% - 24px) !important;
        margin-top: 18px !important;
    }

    .so-account-app {
        grid-template-columns: 1fr;
    }

    .so-account-sidebar {
        position: relative;
        top: auto;
        min-height: 0;
        padding: 10px;
        border-radius: 20px;
    }

    .so-account-sidebar__brand,
    .so-account-sidebar__bottom {
        display: none;
    }

    .so-account-nav {
        display: flex;
        overflow-x: auto;
        gap: 5px;
        margin: 0;
        scrollbar-width: none;
    }

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

    .so-account-nav__item {
        grid-template-columns: 28px auto;
        flex: 0 0 auto;
        min-height: 42px;
        padding: 5px 10px;
        white-space: nowrap;
    }

    .so-account-nav__item b {
        display: none;
    }

    .so-account-nav__icon {
        width: 28px;
        height: 28px;
    }

    .so-account-hero {
        min-height: 285px;
        align-items: flex-end;
        flex-direction: column;
        justify-content: flex-end;
        padding: 25px;
    }

    .so-account-hero__shop {
        width: 100%;
        justify-content: center;
    }

    .so-account-stats,
    .so-account-quick-grid,
    .so-account-products {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .so-order-row {
        grid-template-columns: 1fr auto;
    }

    .so-order-date,
    .so-order-status,
    .so-order-arrow {
        display: none;
    }
}

@media (max-width: 480px) {

    .so-account-stats,
    .so-account-quick-grid,
    .so-account-products {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   SPARKED OUT ACCOUNT LAYOUT 1.1
   ============================================================ */


/*
 * The custom account application already contains its own
 * sidebar + content grid.
 *
 * Ecom Core's native Woo My Account wrapper was ALSO applying:
 *
 *     220px + content
 *
 * creating a nested double-sidebar layout and squeezing the
 * entire premium dashboard into the right-hand column.
 *
 * Kill the native account grid ONLY on the account page.
 */

body.woocommerce-account
.ec-account-page
.woocommerce {

    display:
        block !important;

    width:
        100% !important;

    max-width:
        none !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


/*
 * Native Woo navigation is not used by the premium account app.
 */

body.woocommerce-account
.woocommerce-MyAccount-navigation {

    display:
        none !important;

    width:
        0 !important;

    margin:
        0 !important;

    padding:
        0 !important;

    float:
        none !important;
}


/*
 * Woo content becomes a transparent full-width carrier only.
 */

body.woocommerce-account
.woocommerce-MyAccount-content {

    width:
        100% !important;

    max-width:
        none !important;

    margin:
        0 !important;

    padding:
        0 !important;

    float:
        none !important;
}


/*
 * Remove old commerce-page vertical padding which is making
 * the dashboard float too far down the page.
 */

body.woocommerce-account
.ec-commerce-page
.site-main,

body.woocommerce-account
.ec-commerce-page
main {

    padding-top:
        34px !important;

    padding-bottom:
        80px !important;
}


/*
 * Premium account application.
 *
 * Use the full desktop content area rather than sitting as a
 * narrow panel in the middle of the page.
 */

body.woocommerce-account
.so-account-app {

    width:
        min(
            1420px,
            calc(
                100%
                -
                48px
            )
        )
        !important;

    max-width:
        1420px !important;

    margin:
        0 auto !important;

    padding:
        0 !important;

    display:
        grid !important;

    grid-template-columns:
        265px
        minmax(
            0,
            1fr
        )
        !important;

    gap:
        28px !important;

    align-items:
        stretch;
}


/*
 * Sidebar should feel deliberate rather than like a floating
 * card stranded beside the dashboard.
 */

body.woocommerce-account
.so-account-sidebar {

    width:
        100%;

    min-width:
        0;

    height:
        100%;
}


/*
 * Main dashboard gets every remaining pixel.
 */

body.woocommerce-account
.so-account-content {

    width:
        100%;

    min-width:
        0;

    max-width:
        none !important;
}


body.woocommerce-account
.so-account-dashboard {

    width:
        100%;

    max-width:
        none !important;

    margin:
        0;
}


/*
 * Hero should span the available dashboard column.
 */

body.woocommerce-account
.so-account-hero {

    width:
        100%;

    max-width:
        none !important;
}


/*
 * Make the lower dashboard use the extra width properly.
 */

body.woocommerce-account
.so-account-main-grid {

    grid-template-columns:
        minmax(
            0,
            1.55fr
        )
        minmax(
            320px,
            .72fr
        )
        !important;

    gap:
        22px !important;
}


/*
 * Keep four stats in one strong row on proper desktop widths.
 */

body.woocommerce-account
.so-account-stats {

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        )
        !important;
}


/*
 * Tablet.
 */

@media (
    max-width:
    1100px
) {

    body.woocommerce-account
    .so-account-app {

        width:
            calc(
                100%
                -
                36px
            )
            !important;

        grid-template-columns:
            220px
            minmax(
                0,
                1fr
            )
            !important;

        gap:
            20px
            !important;
    }


    body.woocommerce-account
    .so-account-main-grid {

        grid-template-columns:
            1fr
            !important;
    }
}


/*
 * Mobile.
 */

@media (
    max-width:
    760px
) {

    body.woocommerce-account
    .ec-commerce-page
    .site-main,

    body.woocommerce-account
    .ec-commerce-page
    main {

        padding-top:
            18px !important;

        padding-bottom:
            55px !important;
    }


    body.woocommerce-account
    .so-account-app {

        width:
            calc(
                100%
                -
                24px
            )
            !important;

        grid-template-columns:
            1fr
            !important;

        gap:
            16px
            !important;
    }


    body.woocommerce-account
    .so-account-stats {

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            )
            !important;
    }
}



/* ============================================================
   SPARKED OUT ACCOUNT LAYOUT 1.2
   CLEAN CONSOLIDATED LAYOUT
   ============================================================ */


/* ------------------------------------------------------------
   REMOVE THE OLD WOOCOMMERCE DOUBLE ACCOUNT GRID
   ------------------------------------------------------------ */

body.woocommerce-account
.ec-account-page
.woocommerce {

    display:block !important;

    grid-template-columns:none !important;

    gap:0 !important;

    width:100% !important;

    max-width:none !important;

    margin:0 !important;

    padding:0 !important;
}


body.woocommerce-account
.woocommerce-MyAccount-navigation {

    display:none !important;
}


body.woocommerce-account
.woocommerce-MyAccount-content {

    width:100% !important;

    max-width:none !important;

    float:none !important;

    margin:0 !important;

    padding:0 !important;
}



/* ------------------------------------------------------------
   MAIN ACCOUNT SHELL

   IMPORTANT:
   margin-left:0 means it now starts from the LEFT EDGE of the
   normal Ecom Core content container rather than centring again
   inside it.
   ------------------------------------------------------------ */

body.woocommerce-account
.so-account-app {

    width:min(
        1420px,
        calc(100% - 48px)
    ) !important;

    max-width:none !important;

    margin:
        0
        auto
        60px
        0
        !important;

    padding:0 !important;

    display:grid !important;

    grid-template-columns:
        250px
        minmax(0,1fr)
        !important;

    gap:28px !important;

    align-items:start !important;
}



/* ------------------------------------------------------------
   SIDEBAR
   ------------------------------------------------------------ */

body.woocommerce-account
.so-account-sidebar {

    width:100% !important;

    min-width:0 !important;

    height:auto !important;

    min-height:0 !important;

    max-height:none !important;

    align-self:start !important;

    margin:0 !important;

    position:sticky !important;

    top:24px !important;
}


body.woocommerce-account
.so-account-sidebar__bottom {

    position:static !important;

    inset:auto !important;

    margin:18px 0 0 !important;

    padding:18px 0 0 !important;
}



/* ------------------------------------------------------------
   WELCOME / DASHBOARD
   MAKE IT START EXACTLY LEVEL WITH SIDEBAR
   ------------------------------------------------------------ */

body.woocommerce-account
.so-account-content,

body.woocommerce-account
.so-account-dashboard,

body.woocommerce-account
.so-account-hero {

    width:100% !important;

    max-width:none !important;

    min-width:0 !important;

    margin-top:0 !important;

    padding-top:0 !important;

    top:auto !important;

    transform:none !important;

    align-self:start !important;
}


body.woocommerce-account
.so-account-dashboard
>
.so-account-hero:first-child {

    margin-top:0 !important;
}



/* ------------------------------------------------------------
   STAT CARDS
   ------------------------------------------------------------ */

body.woocommerce-account
.so-account-stats {

    display:grid !important;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        )
        !important;

    gap:16px !important;
}



/* ------------------------------------------------------------
   ORDERS / DETAILS
   ------------------------------------------------------------ */

body.woocommerce-account
.so-account-main-grid {

    display:grid !important;

    grid-template-columns:
        minmax(0,1.6fr)
        minmax(300px,.72fr)
        !important;

    gap:20px !important;

    align-items:stretch !important;
}



/* ------------------------------------------------------------
   QUICK ACTIONS
   ------------------------------------------------------------ */

body.woocommerce-account
.so-account-quick-grid {

    display:grid !important;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        )
        !important;

    gap:14px !important;
}



/* ------------------------------------------------------------
   FRESH TECH
   ------------------------------------------------------------ */

body.woocommerce-account
.so-account-recommended {

    width:100% !important;

    max-width:none !important;

    overflow:hidden !important;
}


body.woocommerce-account
.so-account-products {

    display:grid !important;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        )
        !important;

    gap:16px !important;

    width:100% !important;
}


body.woocommerce-account
.so-account-product {

    min-width:0 !important;

    width:100% !important;

    height:100% !important;

    display:flex !important;

    flex-direction:column !important;

    overflow:hidden !important;
}


body.woocommerce-account
.so-account-product__image {

    width:100% !important;

    aspect-ratio:4 / 3 !important;

    overflow:hidden !important;
}


body.woocommerce-account
.so-account-product__image img {

    display:block !important;

    width:100% !important;

    height:100% !important;

    object-fit:cover !important;
}


body.woocommerce-account
.so-account-product__copy {

    width:100% !important;

    min-width:0 !important;

    padding:14px 14px 16px !important;

    display:flex !important;

    flex-direction:column !important;

    align-items:flex-start !important;

    gap:8px !important;

    box-sizing:border-box !important;
}



/* ------------------------------------------------------------
   WOO PRICE FIX
   ------------------------------------------------------------ */

body.woocommerce-account
.so-account-product
del,

body.woocommerce-account
.so-account-product
ins,

body.woocommerce-account
.so-account-product
.woocommerce-Price-amount,

body.woocommerce-account
.so-account-product
bdi,

body.woocommerce-account
.so-account-product
.woocommerce-Price-currencySymbol {

    display:inline !important;

    width:auto !important;

    height:auto !important;

    margin:0 !important;

    padding:0 !important;

    white-space:nowrap !important;

    line-height:1.3 !important;
}


body.woocommerce-account
.so-account-product
del {

    margin-right:6px !important;

    opacity:.45 !important;
}


body.woocommerce-account
.so-account-product
ins {

    text-decoration:none !important;

    font-weight:850 !important;
}



/* ------------------------------------------------------------
   PAGE VERTICAL SPACING
   ------------------------------------------------------------ */

body.woocommerce-account
.ec-account-page
.site-main,

body.woocommerce-account
.ec-account-page
main {

    padding-top:34px !important;

    padding-bottom:45px !important;
}



/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width:1100px) {

    body.woocommerce-account
    .so-account-app {

        width:calc(100% - 36px) !important;

        margin:
            0
            auto
            50px
            !important;

        grid-template-columns:
            220px
            minmax(0,1fr)
            !important;

        gap:20px !important;
    }


    body.woocommerce-account
    .so-account-main-grid {

        grid-template-columns:
            1fr
            !important;
    }


    body.woocommerce-account
    .so-account-products {

        grid-template-columns:
            repeat(2,minmax(0,1fr))
            !important;
    }
}



/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width:760px) {

    body.woocommerce-account
    .so-account-app {

        width:calc(100% - 24px) !important;

        grid-template-columns:
            1fr
            !important;

        gap:16px !important;

        margin:
            0
            auto
            40px
            !important;
    }


    body.woocommerce-account
    .so-account-sidebar {

        position:static !important;

        top:auto !important;
    }


    body.woocommerce-account
    .so-account-stats,

    body.woocommerce-account
    .so-account-products {

        grid-template-columns:
            repeat(2,minmax(0,1fr))
            !important;
    }


    body.woocommerce-account
    .so-account-quick-grid {

        grid-template-columns:
            1fr
            !important;
    }
}



/* ============================================================
   SPARKED OUT ACCOUNT — SITE CONTAINER WIDTH
   ============================================================ */

@media (min-width:1101px) {

    /*
     * The normal site/page container owns the width.
     * No viewport breakout, no 100vw, no transforms.
     */

    body.woocommerce-account
    .so-account-app {

        position:static !important;

        left:auto !important;

        right:auto !important;

        transform:none !important;

        width:100% !important;

        max-width:none !important;

        margin:
            0
            !important;

        grid-template-columns:
            250px
            minmax(0,1fr)
            !important;

        gap:
            28px
            !important;

        align-items:
            start !important;
    }


    /*
     * Woo becomes only a carrier inside the normal
     * Ecom Core page container.
     */

    body.woocommerce-account
    .woocommerce-MyAccount-content {

        width:100% !important;

        max-width:none !important;

        margin:0 !important;

        padding:0 !important;

        float:none !important;
    }


    body.woocommerce-account {

        overflow-x:
            visible !important;
    }

}



/* ============================================================
   SPARKED OUT ACCOUNT — CONTAINER LOCK
   ============================================================ */

/*
 * No viewport breakout.
 * No translateX.
 * No 100vw.
 *
 * Fill the EXISTING Ecom Core page container only.
 */

body.woocommerce-account
.ec-account-page
.woocommerce {

    display:block !important;

    width:100% !important;

    max-width:100% !important;

    margin:0 !important;

    padding:0 !important;

    grid-template-columns:none !important;
}


body.woocommerce-account
.woocommerce-MyAccount-content {

    width:100% !important;

    max-width:100% !important;

    margin:0 !important;

    padding:0 !important;

    float:none !important;

    position:static !important;

    left:auto !important;

    right:auto !important;

    transform:none !important;
}


body.woocommerce-account
.so-account-app {

    /*
     * Fill the theme's normal page-width container.
     */
    width:100% !important;

    max-width:100% !important;

    margin:0 !important;

    padding:0 !important;

    position:static !important;

    left:auto !important;

    right:auto !important;

    transform:none !important;

    display:grid !important;

    grid-template-columns:
        250px
        minmax(0,1fr)
        !important;

    gap:28px !important;

    align-items:start !important;
}


/*
 * Keep sidebar + Welcome perfectly level.
 */

body.woocommerce-account
.so-account-sidebar,

body.woocommerce-account
.so-account-content,

body.woocommerce-account
.so-account-dashboard,

body.woocommerce-account
.so-account-hero {

    margin-top:0 !important;

    padding-top:0 !important;

    transform:none !important;

    align-self:start !important;
}


/*
 * Prevent any accidental horizontal overflow.
 */

body.woocommerce-account
.ec-account-page {

    overflow-x:hidden;
}


/* Tablet */

@media (max-width:1100px) {

    body.woocommerce-account
    .so-account-app {

        grid-template-columns:
            220px
            minmax(0,1fr)
            !important;

        gap:20px !important;
    }
}


/* Mobile */

@media (max-width:760px) {

    body.woocommerce-account
    .so-account-app {

        grid-template-columns:
            1fr
            !important;

        gap:16px !important;
    }
}

