/*
 * ULK Supply My Account V5
 * SAFE VERSION:
 * - Keeps WooCommerce's native account structure
 * - No JavaScript moves DOM elements
 * - No replacement navigation markup
 * - Header and logo are untouched
 */

:root {
    --ocw-brand-yellow: #ffb000;
    --ocw-brand-orange: #f97316;
    --ocw-brand-red: #b7080c;
    --ocw-brand-gradient: linear-gradient(
        90deg,
        var(--ocw-brand-yellow) 0%,
        var(--ocw-brand-orange) 48%,
        var(--ocw-brand-red) 100%
    );
    --ocw-text: #171717;
    --ocw-muted: #6b7280;
    --ocw-border: #e5e7eb;
    --ocw-soft: #f8fafc;
    --ocw-success: #15803d;
    --ocw-warning: #ea580c;
    --ocw-shadow: 0 10px 30px rgba(17,24,39,.06);
}

/*
 * Restore WooCommerce's native two-column structure and only restyle it.
 * This avoids the width-collapse problem shown in Orders.
 */
.woocommerce-account .woocommerce::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    display: block !important;
    float: left !important;
    width: 255px !important;
    max-width: 255px !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    display: block !important;
    float: right !important;
    width: calc(100% - 285px) !important;
    max-width: calc(100% - 285px) !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/*
 * Native Woo navigation styled like the professional mockup.
 */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow: hidden;
    border: 1px solid var(--ocw-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--ocw-shadow);
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #f0f1f2 !important;
    list-style: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 0 16px 0 44px !important;
    color: #171717 !important;
    background: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: .18s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    color: #c2410c !important;
    background: #fff7ed !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    color: #fff !important;
    background: var(--ocw-brand-gradient) !important;
}

/* Reliable icon markers for native Woo menu items. */
.woocommerce-account .woocommerce-MyAccount-navigation a::before {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 20px;
    transform: translateY(-50%);
    text-align: center;
    font-size: 16px;
    line-height: 1;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard a::before { content: "▦"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a::before { content: "▣"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads a::before { content: "↓"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address a::before { content: "⌖"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--payment-methods a::before { content: "▭"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a::before { content: "♙"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--messages a::before { content: "□"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--wishlist a::before { content: "♡"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--business-upgrade a::before { content: "⇧"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "⏻"; }

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #dc2626 !important;
}

/*
 * Endpoint content cards.
 */
.woocommerce-account:not(.ocw-account-dashboard-page)
.woocommerce-MyAccount-content {
    padding: 24px;
    border: 1px solid var(--ocw-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--ocw-shadow);
}

.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-orders-table,
.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-table {
    width: 100% !important;
    table-layout: auto !important;
}

.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-orders-table th,
.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-table th {
    background: #fff7ed;
    color: #7c2d12;
}

/*
 * Dashboard: hide only WooCommerce's default greeting paragraphs because
 * our custom professional dashboard replaces them.
 */
.ocw-account-dashboard-page
.woocommerce-MyAccount-content > p {
    display: none !important;
}

.ocw-pro-account {
    min-width: 0;
    color: var(--ocw-text);
}

.ocw-pro-account svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ocw-pro-account__welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 18px;
}

.ocw-pro-account__welcome h2 {
    margin: 0 0 6px;
    color: #111;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
}

.ocw-pro-account__welcome h2 span {
    color: #ef2f17;
}

.ocw-pro-account__welcome p {
    margin: 0;
    color: var(--ocw-muted);
    font-size: 14px;
}

.ocw-pro-account__company {
    display: inline-flex;
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
}

.ocw-pro-account__verification {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 12px;
    font-weight: 700;
}

.ocw-pro-account__verification-medal {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #f4511e;
}

.ocw-pro-account__verification-medal svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

.ocw-pro-account__phone {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(220px, auto) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 22px 12px;
    margin-bottom: 22px;
    border: 1px solid var(--ocw-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--ocw-shadow);
}

.ocw-pro-account__phone-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    color: #f4511e;
}

.ocw-pro-account__phone-icon svg {
    width: 42px;
    height: 42px;
}

.ocw-pro-account__phone-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ocw-pro-account__phone-copy strong {
    font-size: 16px;
}

.ocw-pro-account__phone-copy span {
    color: #52525b;
    font-size: 13px;
}

.ocw-pro-account__phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--ocw-border);
    border-radius: 7px;
    background: #fff;
    font-size: 13px;
}

.ocw-pro-account__button,
.ocw-pro-account__outline-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .18s ease;
}

.ocw-pro-account__button {
    color: #fff !important;
    background: var(--ocw-brand-gradient);
}

.ocw-pro-account__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(185,28,28,.16);
}

.ocw-pro-account__phone-note {
    grid-column: 2 / -1;
    text-align: center;
    color: var(--ocw-muted);
    font-size: 11px;
}

.ocw-pro-account__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    align-items: start;
}

.ocw-pro-account__tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ocw-pro-account__tile {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    min-height: 143px;
    padding: 20px;
    border: 1px solid var(--ocw-border);
    border-radius: 12px;
    background: #fff;
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: 0 3px 14px rgba(17,24,39,.025);
    transition: .18s ease;
}

.ocw-pro-account__tile:hover {
    transform: translateY(-3px);
    border-color: #fdba74;
    box-shadow: 0 12px 26px rgba(17,24,39,.08);
}

.ocw-pro-account__tile-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    color: #f4511e;
}

.ocw-pro-account__tile-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.65;
}

.ocw-pro-account__tile-copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.ocw-pro-account__tile-copy strong {
    color: #171717;
    font-size: 16px;
    line-height: 1.2;
}

.ocw-pro-account__tile-copy > span {
    color: #444;
    font-size: 13px;
    line-height: 1.5;
}

.ocw-pro-account__arrow {
    position: absolute;
    right: 14px;
    bottom: 12px;
    color: #f4511e;
    font-size: 20px;
    font-weight: 700;
}

.ocw-pro-account__badge {
    position: absolute;
    right: 12px;
    top: 11px;
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    color: #ea580c;
    background: #ffe7d6;
    font-size: 10px;
    font-weight: 800;
}

/*
 * Right rail.
 */
.ocw-pro-account__aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ocw-pro-account__panel {
    overflow: hidden;
    border: 1px solid var(--ocw-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(17,24,39,.04);
}

.ocw-pro-account__panel-title {
    padding: 12px 16px;
    color: #fff;
    background: var(--ocw-brand-gradient);
    font-size: 14px;
    font-weight: 800;
}

.ocw-pro-account__stat {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 15px;
    border-bottom: 1px solid #f0f1f2;
    font-size: 12px;
}

.ocw-pro-account__stat strong.is-warning {
    color: var(--ocw-warning);
}

.ocw-pro-account__stat strong.is-success {
    color: var(--ocw-success);
}

.ocw-pro-account__stat strong.is-money {
    color: #d73316;
}

.ocw-pro-account__order {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f1f2;
    color: inherit !important;
    text-decoration: none !important;
}

.ocw-pro-account__order:hover {
    background: #fff7ed;
}

.ocw-pro-account__order-icon {
    color: #f4511e;
}

.ocw-pro-account__order-icon svg {
    width: 22px;
    height: 22px;
}

.ocw-pro-account__order-copy,
.ocw-pro-account__order-total {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ocw-pro-account__order-copy strong {
    color: #111827;
    font-size: 12px;
}

.ocw-pro-account__order-copy small,
.ocw-pro-account__order-total small {
    color: var(--ocw-muted);
    font-size: 10px;
}

.ocw-pro-account__order-total {
    align-items: flex-end;
    text-align: right;
    font-size: 11px;
    font-weight: 700;
}

.ocw-pro-account__outline-button {
    margin: 14px;
    min-height: 38px;
    color: #ea580c !important;
    border: 1px solid #f97316;
    background: #fff;
}

.ocw-pro-account__outline-button:hover {
    color: #fff !important;
    background: var(--ocw-brand-gradient);
}

.ocw-pro-account__empty {
    padding: 25px 16px;
    text-align: center;
    color: var(--ocw-muted);
}

/*
 * Bottom benefits.
 */
.ocw-pro-account__benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 22px;
    border: 1px solid var(--ocw-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--ocw-shadow);
}

.ocw-pro-account__benefit {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 15px 20px;
    border-right: 1px solid var(--ocw-border);
}

.ocw-pro-account__benefit:last-child {
    border-right: 0;
}

.ocw-pro-account__benefit-icon {
    color: #f4511e;
}

.ocw-pro-account__benefit-icon svg {
    width: 34px;
    height: 34px;
}

.ocw-pro-account__benefit > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ocw-pro-account__benefit strong {
    color: #111827;
    font-size: 13px;
}

.ocw-pro-account__benefit small {
    color: var(--ocw-muted);
    font-size: 11px;
}

/*
 * Non-dashboard My Account endpoints keep your existing WooCommerce layout.
 * We only give them light professional styling; we do not touch site header/logo.
 */
.woocommerce-account:not(.ocw-account-dashboard-page)
.woocommerce-MyAccount-content {
    border-radius: 12px;
}


/*
 * Orders / Addresses / Payment Methods / Messages / Account Details
 * keep the same professional visual language.
 */
.woocommerce-account:not(.ocw-account-dashboard-page)
.woocommerce-MyAccount-content {
    padding: 24px;
    border: 1px solid var(--ocw-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--ocw-shadow);
}

.woocommerce-account:not(.ocw-account-dashboard-page)
.woocommerce-MyAccount-content h2,
.woocommerce-account:not(.ocw-account-dashboard-page)
.woocommerce-MyAccount-content h3 {
    color: #171717;
}

.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-orders-table,
.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-table {
    overflow: hidden;
    border: 1px solid var(--ocw-border) !important;
    border-radius: 10px;
    background: #fff;
}

.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-orders-table th,
.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-table th {
    background: #fff7ed;
    color: #7c2d12;
}

.woocommerce-account
.woocommerce-MyAccount-content
.button,
.woocommerce-account
.woocommerce-MyAccount-content
button.button,
.woocommerce-account
.woocommerce-MyAccount-content
input.button {
    border-radius: 7px !important;
}

.woocommerce-account
.woocommerce-MyAccount-content
button.button,
.woocommerce-account
.woocommerce-MyAccount-content
input.button {
    color: #fff !important;
    border: 0 !important;
    background: var(--ocw-brand-gradient) !important;
}



/*
 * Responsive.
 */
@media (max-width: 980px) {
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 22px !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li {
        border-right: 1px solid #f0f1f2 !important;
    }

    .ocw-pro-account__layout {
        grid-template-columns: 1fr !important;
    }

    .ocw-pro-account__tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ocw-pro-account__aside {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .woocommerce-account .woocommerce-MyAccount-navigation ul,
    .ocw-pro-account__tiles,
    .ocw-pro-account__aside,
    .ocw-pro-account__benefits {
        grid-template-columns: 1fr !important;
    }

    .ocw-pro-account__welcome,
    .ocw-pro-account__phone {
        display: block !important;
    }

    .ocw-pro-account__phone > * {
        margin-bottom: 12px;
    }
}


/* =========================================================
 * V6 - PROFESSIONAL SIDEBAR ON MAIN DASHBOARD
 * ========================================================= */

/*
 * On the main Dashboard only, hide WooCommerce's native navigation.
 * We render the custom professional icon sidebar inside the dashboard.
 */
.ocw-account-dashboard-page .woocommerce-MyAccount-navigation {
    display: none !important;
}

.ocw-account-dashboard-page .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.ocw-dashboard-shell {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    width: 100%;
}

.ocw-dashboard-sidebar {
    overflow: hidden;
    border: 1px solid var(--ocw-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--ocw-shadow);
}

.ocw-dashboard-sidebar .ocw-pro-sidebar__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    color: #171717 !important;
    background: #fff;
    text-decoration: none !important;
    border-bottom: 1px solid #f1f1f1;
    font-size: 13px;
    font-weight: 600;
    transition: .18s ease;
}

.ocw-dashboard-sidebar .ocw-pro-sidebar__item:hover {
    background: #fff7ed;
    color: #c2410c !important;
}

.ocw-dashboard-sidebar .ocw-pro-sidebar__item.is-active {
    color: #fff !important;
    background: var(--ocw-brand-gradient);
}

.ocw-dashboard-sidebar .ocw-pro-sidebar__item.is-danger {
    color: #dc2626 !important;
    border-bottom: 0;
}

.ocw-dashboard-sidebar .ocw-pro-sidebar__icon {
    display: grid;
    place-items: center;
}

.ocw-dashboard-sidebar .ocw-pro-sidebar__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ocw-dashboard-sidebar .ocw-pro-sidebar__badge {
    display: inline-grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ffe7d6;
    color: #ea580c;
    font-size: 10px;
    font-weight: 800;
}

.ocw-dashboard-shell .ocw-pro-account {
    min-width: 0;
}

/* Clean the old tax line above the professional dashboard. */
.ocw-account-dashboard-page .ocw-tax-exempt-note,
.ocw-account-dashboard-page .ocw-account-status-summary,
.ocw-account-dashboard-page .ocw-account-badge,
.ocw-account-dashboard-page .ocw-aw-account-badge {
    display: none !important;
}

@media (max-width: 980px) {
    .ocw-dashboard-shell {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .ocw-dashboard-sidebar {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
 * V7 - HARD SIDEBAR WIDTH FIX
 * Theme-proof layout for the main account Dashboard.
 * ========================================================= */

.ocw-account-dashboard-page .ocw-dashboard-shell {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.ocw-account-dashboard-page
.ocw-dashboard-shell > .ocw-dashboard-sidebar {
    display: block !important;
    flex: 0 0 255px !important;
    width: 255px !important;
    min-width: 255px !important;
    max-width: 255px !important;
    margin: 0 !important;
    float: none !important;
}

.ocw-account-dashboard-page
.ocw-dashboard-shell > .ocw-pro-account {
    display: block !important;
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
}

/* Make sure every sidebar row stays inside the 255px column. */
.ocw-account-dashboard-page
.ocw-dashboard-sidebar .ocw-pro-sidebar__item {
    width: 100% !important;
    max-width: 100% !important;
}

/* Desktop must never switch this sidebar to a full-width grid. */
@media (min-width: 981px) {
    .ocw-account-dashboard-page .ocw-dashboard-sidebar {
        display: block !important;
    }
}

/* Mobile/tablet stacks intentionally. */
@media (max-width: 980px) {
    .ocw-account-dashboard-page .ocw-dashboard-shell {
        flex-direction: column !important;
    }

    .ocw-account-dashboard-page
    .ocw-dashboard-shell > .ocw-dashboard-sidebar,
    .ocw-account-dashboard-page
    .ocw-dashboard-shell > .ocw-pro-account {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .ocw-account-dashboard-page .ocw-dashboard-sidebar {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .ocw-account-dashboard-page .ocw-dashboard-sidebar {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
 * V9 FINAL POLISH
 * ========================================================= */

/* Ensure the dashboard starts cleanly at the top. */
.ocw-account-dashboard-page .ocw-dashboard-shell {
    margin-top: 0 !important;
}

/* Tighten welcome/verification alignment without changing structure. */
.ocw-account-dashboard-page .ocw-pro-account__welcome {
    align-items: center !important;
    margin-bottom: 16px !important;
}

.ocw-account-dashboard-page .ocw-pro-account__verification {
    margin-left: auto !important;
    max-width: 210px !important;
}

/* Keep the sidebar at the exact working V7 width. */
.ocw-account-dashboard-page .ocw-dashboard-sidebar {
    flex: 0 0 255px !important;
    width: 255px !important;
    min-width: 255px !important;
    max-width: 255px !important;
}

/* Hide known legacy wrappers if present. */
.ocw-account-dashboard-page .ocw-tax-exempt-note,
.ocw-account-dashboard-page .ocw-account-status-summary,
.ocw-account-dashboard-page .ocw-account-badge,
.ocw-account-dashboard-page .ocw-aw-account-badge,
.ocw-account-dashboard-page [class*="account-badge"],
.ocw-account-dashboard-page [class*="tax-exempt-note"] {
    display: none !important;
}
/* =========================================================
   OCW DASHBOARD - CARD POLISH
   ========================================================= */

/* Dashboard cards grid */
.ocw-dashboard-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
}

/* Individual card */
.ocw-dashboard-card {
    position: relative !important;
    min-width: 0 !important;
    min-height: 165px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Card content */
.ocw-dashboard-card__content {
    min-width: 0 !important;
    padding-right: 8px !important;
}

/* Card title */
.ocw-dashboard-card h3,
.ocw-dashboard-card__title {
    margin: 0 0 7px !important;
    line-height: 1.2 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

/* Card description */
.ocw-dashboard-card p {
    line-height: 1.45 !important;
    margin: 0 !important;
}

/* Count badges such as Addresses (2) */
.ocw-dashboard-card .ocw-count,
.ocw-dashboard-card .count,
.ocw-dashboard-card .badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 2 !important;
}

/* Give titles enough room when a badge exists */
.ocw-dashboard-card:has(.ocw-count) h3,
.ocw-dashboard-card:has(.count) h3,
.ocw-dashboard-card:has(.badge) h3 {
    padding-right: 30px !important;
}

/* Tablet */
@media (max-width: 1050px) {
    .ocw-dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 650px) {
    .ocw-dashboard-cards {
        grid-template-columns: 1fr !important;
    }

    .ocw-dashboard-card {
        min-height: 145px !important;
    }
}
/* =========================================================
   ULK DASHBOARD - FINAL CARD WIDTH
   ========================================================= */

/* Keep the sidebar exactly as it is now */
.ocw-account-dashboard-page .ocw-dashboard-shell {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 24px !important;
}

.ocw-account-dashboard-page .ocw-dashboard-sidebar {
    flex: 0 0 230px !important;
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
}

/* Main account section takes ALL remaining room */
.ocw-account-dashboard-page .ocw-dashboard-shell > .ocw-pro-account {
    flex: 1 1 auto !important;
    width: calc(100% - 254px) !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Cards area + right overview */
.ocw-account-dashboard-page .ocw-pro-account__layout {
    display: grid !important;
    grid-template-columns: minmax(650px, 1fr) 260px !important;
    gap: 18px !important;
    width: 100% !important;
    align-items: start !important;
}

/* Left card grid */
.ocw-account-dashboard-page .ocw-pro-account__main {
    width: 100% !important;
    min-width: 0 !important;
}

.ocw-account-dashboard-page .ocw-pro-account__tiles {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(200px, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
}

/* Individual card */
.ocw-account-dashboard-page .ocw-pro-account__tile {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    column-gap: 14px !important;

    min-width: 0 !important;
    width: 100% !important;
    min-height: 150px !important;

    padding: 18px 16px !important;
}

/* Icon */
.ocw-account-dashboard-page .ocw-pro-account__tile-icon {
    width: 48px !important;
    height: 48px !important;
}

.ocw-account-dashboard-page .ocw-pro-account__tile-icon svg {
    width: 36px !important;
    height: 36px !important;
}

/* Text column */
.ocw-account-dashboard-page .ocw-pro-account__tile-copy {
    min-width: 0 !important;
    width: 100% !important;
}

/* Title */
.ocw-account-dashboard-page .ocw-pro-account__tile-copy strong {
    display: block !important;
    width: 100% !important;

    font-size: 15px !important;
    line-height: 1.2 !important;

    word-break: keep-all !important;
    overflow-wrap: normal !important;
    white-space: normal !important;

    padding-right: 18px !important;
}

/* Description */
.ocw-account-dashboard-page .ocw-pro-account__tile-copy > span {
    display: block !important;
    width: 100% !important;

    font-size: 12px !important;
    line-height: 1.45 !important;

    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Badge */
.ocw-account-dashboard-page .ocw-pro-account__badge {
    top: 10px !important;
    right: 10px !important;
}

/* Addresses title needs room for badge 2 */
.ocw-account-dashboard-page
.ocw-pro-account__tile:has(.ocw-pro-account__badge)
.ocw-pro-account__tile-copy strong {
    padding-right: 38px !important;
}

/* Arrow */
.ocw-account-dashboard-page .ocw-pro-account__arrow {
    right: 12px !important;
    bottom: 10px !important;
}

/* Right column */
.ocw-account-dashboard-page .ocw-pro-account__aside {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;

    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
}

.ocw-account-dashboard-page .ocw-pro-account__panel {
    width: 100% !important;
}

/* Phone bar */
.ocw-account-dashboard-page .ocw-pro-account__phone {
    display: grid !important;
    grid-template-columns: 50px minmax(300px, 1fr) 205px 90px !important;
    gap: 15px !important;
    width: 100% !important;
}

/* Laptop */
@media (max-width: 1250px) {
    .ocw-account-dashboard-page .ocw-pro-account__layout {
        grid-template-columns: 1fr !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__aside {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__tiles {
        grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
    }
}

/* Tablet */
@media (max-width: 980px) {
    .ocw-account-dashboard-page .ocw-dashboard-shell {
        flex-direction: column !important;
    }

    .ocw-account-dashboard-page .ocw-dashboard-sidebar,
    .ocw-account-dashboard-page .ocw-dashboard-shell > .ocw-pro-account {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 0 0 auto !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__phone {
        grid-template-columns: 50px minmax(0, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 650px) {
    .ocw-account-dashboard-page .ocw-pro-account__tiles,
    .ocw-account-dashboard-page .ocw-pro-account__aside {
        grid-template-columns: 1fr !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__tile {
        min-height: 135px !important;
    }
}
/* =========================================================
   ULK DASHBOARD - FINAL POLISH
   Last row + Addresses badge + wider desktop layout
   ========================================================= */

/*
 * Use more of the available desktop screen.
 * Does not affect the website header/logo.
 */
@media (min-width: 1251px) {

    .ocw-account-dashboard-page .ocw-dashboard-shell {
        width: min(1380px, calc(100vw - 60px)) !important;
        max-width: none !important;

        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .ocw-account-dashboard-page
    .ocw-dashboard-shell > .ocw-pro-account {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    /*
     * Slightly more room for cards,
     * while keeping Account Overview compact.
     */
    .ocw-account-dashboard-page .ocw-pro-account__layout {
        grid-template-columns:
            minmax(720px, 1fr)
            265px !important;

        gap: 18px !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__aside {
        width: 265px !important;
        min-width: 265px !important;
        max-width: 265px !important;
    }
}


/* =========================================================
   CARD GRID
   Use 6 internal columns:
   normal cards = 2 columns each = 3 cards per row
   ========================================================= */

.ocw-account-dashboard-page .ocw-pro-account__tiles {
    display: grid !important;

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

    gap: 14px !important;
}


/* Normal cards = 1/3 of row */
.ocw-account-dashboard-page .ocw-pro-account__tile {
    grid-column: span 2 !important;

    min-width: 0 !important;
    width: 100% !important;
}


/*
 * When the final row contains exactly two cards,
 * Support Tickets and Messages each take half the row.
 */
.ocw-account-dashboard-page
.ocw-pro-account__tile:nth-last-child(2):nth-child(3n + 1) {
    grid-column: span 3 !important;
}

.ocw-account-dashboard-page
.ocw-pro-account__tile:nth-last-child(2):nth-child(3n + 1)
+ .ocw-pro-account__tile {
    grid-column: span 3 !important;
}


/* =========================================================
   ADDRESSES BADGE
   ========================================================= */

.ocw-account-dashboard-page .ocw-pro-account__badge {
    top: 11px !important;
    right: 11px !important;

    min-width: 24px !important;
    height: 24px !important;

    padding: 0 7px !important;

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

    border-radius: 999px !important;

    line-height: 1 !important;
    z-index: 5 !important;
}


/* More room between Addresses and badge */
.ocw-account-dashboard-page
.ocw-pro-account__tile:has(.ocw-pro-account__badge)
.ocw-pro-account__tile-copy strong {
    padding-right: 45px !important;
}


/* =========================================================
   CONSISTENT CARD HEIGHT / ALIGNMENT
   ========================================================= */

.ocw-account-dashboard-page .ocw-pro-account__tile {
    min-height: 150px !important;
}

.ocw-account-dashboard-page .ocw-pro-account__tile-copy {
    min-width: 0 !important;
}

.ocw-account-dashboard-page
.ocw-pro-account__tile-copy strong {
    margin-bottom: 5px !important;
}

.ocw-account-dashboard-page
.ocw-pro-account__tile-copy > span {
    line-height: 1.45 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .ocw-account-dashboard-page .ocw-pro-account__tiles {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__tile,
    .ocw-account-dashboard-page
    .ocw-pro-account__tile:nth-last-child(2):nth-child(3n + 1),
    .ocw-account-dashboard-page
    .ocw-pro-account__tile:nth-last-child(2):nth-child(3n + 1)
    + .ocw-pro-account__tile {

        grid-column: auto !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .ocw-account-dashboard-page .ocw-pro-account__tiles {
        grid-template-columns: 1fr !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__tile {
        grid-column: auto !important;
        min-height: 135px !important;
    }
}
/* =========================================================
   ULK DASHBOARD - BOTTOM ROW FIX
   ========================================================= */

/* Allow the complete dashboard to grow naturally */
.ocw-account-dashboard-page .woocommerce,
.ocw-account-dashboard-page .woocommerce-MyAccount-content,
.ocw-account-dashboard-page .ocw-dashboard-shell,
.ocw-account-dashboard-page .ocw-pro-account,
.ocw-account-dashboard-page .ocw-pro-account__main,
.ocw-account-dashboard-page .ocw-pro-account__tiles {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Extra room after the dashboard */
.ocw-account-dashboard-page .ocw-dashboard-shell {
    padding-bottom: 70px !important;
}

/* Last two cards */
.ocw-account-dashboard-page
.ocw-pro-account__tile:nth-last-child(-n + 2) {
    min-height: 150px !important;
    height: 150px !important;
    align-self: stretch !important;
}

/* Make Support Tickets and Messages content fit cleanly */
.ocw-account-dashboard-page
.ocw-pro-account__tile:nth-last-child(-n + 2)
.ocw-pro-account__tile-copy {
    padding-bottom: 18px !important;
}

/* Keep arrow inside last cards */
.ocw-account-dashboard-page
.ocw-pro-account__tile:nth-last-child(-n + 2)
.ocw-pro-account__arrow {
    right: 14px !important;
    bottom: 12px !important;
}

/* Give benefits section proper separation */
.ocw-account-dashboard-page .ocw-pro-account__benefits {
    clear: both !important;
    position: relative !important;
    margin-top: 18px !important;
    margin-bottom: 45px !important;
}

/* Prevent the theme/footer from covering dashboard content */
.ocw-account-dashboard-page .woocommerce-MyAccount-content {
    padding-bottom: 40px !important;
}

/* Tablet/mobile */
@media (max-width: 980px) {
    .ocw-account-dashboard-page
    .ocw-pro-account__tile:nth-last-child(-n + 2) {
        height: auto !important;
        min-height: 140px !important;
    }

    .ocw-account-dashboard-page .ocw-dashboard-shell {
        padding-bottom: 40px !important;
    }
}
/* =========================================================
   ULK DASHBOARD - COMPACT DESKTOP MODE
   ========================================================= */

@media (min-width: 981px) {

    /* Reduce vertical gaps */
    .ocw-account-dashboard-page .ocw-pro-account__welcome {
        margin-bottom: 10px !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__phone {
        min-height: 86px !important;
        padding: 13px 18px 9px !important;
        margin-bottom: 12px !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__layout {
        gap: 14px !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__tiles {
        gap: 10px !important;
    }

    /* Shorter cards */
    .ocw-account-dashboard-page .ocw-pro-account__tile {
        min-height: 124px !important;
        height: 124px !important;
        padding: 14px 14px !important;
        grid-template-columns: 44px minmax(0, 1fr) !important;
        gap: 11px !important;
    }

    /* Slightly smaller icons */
    .ocw-account-dashboard-page .ocw-pro-account__tile-icon {
        width: 42px !important;
        height: 42px !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__tile-icon svg {
        width: 32px !important;
        height: 32px !important;
    }

    /* Keep text readable */
    .ocw-account-dashboard-page
    .ocw-pro-account__tile-copy strong {
        font-size: 14px !important;
        line-height: 1.15 !important;
        margin-bottom: 4px !important;
    }

    .ocw-account-dashboard-page
    .ocw-pro-account__tile-copy > span {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    /* Last Support / Messages cards same compact height */
    .ocw-account-dashboard-page
    .ocw-pro-account__tile:nth-last-child(-n + 2) {
        min-height: 124px !important;
        height: 124px !important;
    }

    /* Compact overview */
    .ocw-account-dashboard-page .ocw-pro-account__panel-title {
        padding: 10px 14px !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__stat {
        padding: 8px 13px !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__order {
        padding: 9px 12px !important;
    }

    /* Less space around bottom benefits */
    .ocw-account-dashboard-page .ocw-pro-account__benefits {
        margin-top: 12px !important;
    }

    .ocw-account-dashboard-page .ocw-pro-account__benefit {
        min-height: 68px !important;
        padding: 11px 16px !important;
    }

    /* Do not add unnecessary bottom space */
    .ocw-account-dashboard-page .ocw-dashboard-shell {
        padding-bottom: 25px !important;
    }

    .ocw-account-dashboard-page .woocommerce-MyAccount-content {
        padding-bottom: 20px !important;
    }
}
/* =========================================================
   ULK MY ACCOUNT - REDUCE TOP EMPTY SPACE
   ========================================================= */

.ocw-account-dashboard-page .woocommerce-MyAccount-content {
    margin-top: 0 !important;
}

.ocw-account-dashboard-page .ocw-dashboard-shell {
    margin-top: 0 !important;
}

/* Reduce space below the My Account title banner */
.ocw-account-dashboard-page .page-title,
.ocw-account-dashboard-page .page-header,
.ocw-account-dashboard-page .woocommerce-account-title {
    margin-bottom: 20px !important;
}

/* Pull account dashboard upward */
.ocw-account-dashboard-page .woocommerce {
    margin-top: 20px !important;
}

/* If theme adds large padding around account area */
.ocw-account-dashboard-page .site-content,
.ocw-account-dashboard-page .content-area,
.ocw-account-dashboard-page main {
    padding-top: 0 !important;
}

/* Keep Tax Exempt line close to sidebar */
.ocw-account-dashboard-page .ocw-dashboard-shell {
    padding-top: 0 !important;
}
/* =========================================================
   ULK - MY ACCOUNT TOP SPACING FIX
   ========================================================= */

/* My Account title area */
body.woocommerce-account.ocw-account-dashboard-page .title-section {
    padding-top: 20px !important;
    padding-bottom: 15px !important;
    margin-bottom: 0 !important;
}

/* Main theme content directly below title section */
body.woocommerce-account.ocw-account-dashboard-page #et-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* WooCommerce content */
body.woocommerce-account.ocw-account-dashboard-page #et-content > .content,
body.woocommerce-account.ocw-account-dashboard-page #et-content .woocommerce {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Our custom account dashboard */
body.woocommerce-account.ocw-account-dashboard-page .ulk-account-dashboard,
body.woocommerce-account.ocw-account-dashboard-page .ocw-dashboard-shell {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* =========================================================
   ULK MY ACCOUNT - ELEMENTOR TOP GAP FIX
   ========================================================= */

/* Main Elementor container that contains the My Account shortcodes */
body.woocommerce-account.ocw-account-dashboard-page
#et-content .elementor-element.elementor-element-918c473 {
    margin-top: 0 !important;
    padding-top: 0 !important;

    --margin-top: 0px !important;
    --padding-top: 0px !important;
}

/* Inner Elementor container */
body.woocommerce-account.ocw-account-dashboard-page
#et-content .elementor-element-918c473 > .e-con-inner {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any spacing from the Elementor page wrapper above it */
body.woocommerce-account.ocw-account-dashboard-page
#et-content .elementor.elementor-11242 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Pull the actual account section closer to the My Account banner */
body.woocommerce-account.ocw-account-dashboard-page
#et-content .page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}