/* Blossen account V3 final refinement — loaded after every legacy account rule. */
body.woocommerce-account .woocommerce {
    width: min(1480px, 100%);
    max-width: 1480px;
    grid-template-columns: 258px minmax(0, 1fr);
    gap: 46px;
    margin: 22px auto 80px;
    padding: 0 42px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
    position: sticky;
    top: 34px;
    padding: 6px 25px 10px 0;
    border: 0 !important;
    border-right: 1px solid var(--blossen-line) !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
    min-height: 58px;
    gap: 13px;
    padding: 15px 16px;
    border: 0 !important;
    border-radius: 9px;
    color: var(--blossen-ink) !important;
    font-size: 17px;
    font-weight: 500;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a::before {
    display: block;
    background-color: var(--blossen-ink);
    opacity: .9;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    color: var(--blossen-ink) !important;
    background: var(--blossen-soft) !important;
    box-shadow: inset 3px 0 0 var(--blossen-ink) !important;
}

body.woocommerce-account .buyhome-account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    margin-bottom: 32px;
}

body.woocommerce-account .buyhome-account-profile-copy h2 {
    font-size: clamp(46px, 4.2vw, 62px);
    line-height: .94;
}

body.woocommerce-account .buyhome-account-profile-copy > p:last-child {
    margin-top: 16px;
    font-size: 19px;
}

body.woocommerce-account .buyhome-account-identity {
    width: auto;
    min-width: 250px;
    padding: 17px 19px;
    border: 1px solid var(--blossen-line);
    border-radius: 11px;
    box-shadow: 0 12px 34px rgba(35, 34, 39, .045);
}

body.woocommerce-account .buyhome-account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}

body.woocommerce-account .buyhome-stat-card {
    min-height: 154px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    align-content: center;
    padding: 24px 22px;
    border: 1px solid #dddddf;
    border-radius: 11px;
    background: var(--blossen-white);
    box-shadow: 0 12px 34px rgba(35, 34, 39, .045);
}

body.woocommerce-account .buyhome-stat-card:hover {
    border-color: #c7c7c9;
    box-shadow: 0 18px 42px rgba(35, 34, 39, .085);
}

body.woocommerce-account .buyhome-stat-icon {
    width: 46px;
    height: 46px;
    border: 1px solid var(--blossen-line);
    background: var(--blossen-softest);
}

body.woocommerce-account .buyhome-stat-icon svg {
    width: 25px;
    height: 25px;
}

body.woocommerce-account .buyhome-stat-card strong {
    min-height: 34px;
    font-size: 31px;
}

body.woocommerce-account .buyhome-stat-card small {
    margin-top: 5px;
    font-size: 15px;
}

body.woocommerce-account .buyhome-stat-card em {
    grid-column: 2;
    margin-top: 3px;
    font-size: 14px;
}

body.woocommerce-account .buyhome-latest-order-section {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.woocommerce-account .buyhome-latest-order-section .buyhome-account-section__head {
    align-items: center;
    margin: 0 2px 17px;
}

body.woocommerce-account .buyhome-dashboard-order {
    display: grid;
    grid-template-columns: minmax(330px, 1.15fr) minmax(280px, 1fr) 178px;
    gap: 24px;
    min-height: 202px;
    padding: 17px;
    border: 1px solid #dddddf;
    border-radius: 11px;
    background: var(--blossen-white);
    box-shadow: 0 12px 34px rgba(35, 34, 39, .045);
}

body.woocommerce-account .buyhome-dashboard-order__product {
    grid-template-columns: 164px minmax(0, 1fr) !important;
    gap: 20px;
}

body.woocommerce-account .buyhome-dashboard-order__product img,
body.woocommerce-account .buyhome-dashboard-order__product .buyhome-order-product__placeholder {
    width: 164px !important;
    height: 164px !important;
    border-radius: 8px;
}

body.woocommerce-account .buyhome-dashboard-order__product strong {
    font-size: 21px;
}

body.woocommerce-account .buyhome-dashboard-order__amount {
    margin-top: 13px !important;
    color: var(--blossen-text) !important;
    font-size: 19px !important;
    font-weight: 600;
}

body.woocommerce-account .buyhome-order-timeline span {
    padding-top: 35px;
    font-size: 13px;
}

body.woocommerce-account .buyhome-order-timeline span::before {
    width: 21px;
    height: 21px;
}

body.woocommerce-account .buyhome-order-timeline span::after {
    top: 13px;
    left: calc(50% + 12px);
    width: calc(100% - 24px);
}

body.woocommerce-account .buyhome-dashboard-order-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
    align-content: center;
}

body.woocommerce-account .buyhome-account-section,
body.woocommerce-account .buyhome-account-panel,
body.woocommerce-account .buyhome-orders-intro,
body.woocommerce-account .buyhome-return-form,
body.woocommerce-account .buyhome-address-card,
body.woocommerce-account .buyhome-order-card,
body.woocommerce-account .buyhome-return-card,
body.woocommerce-account form:not(.woocommerce-form-login):not(.woocommerce-form-register) {
    border-color: #dddddf;
    border-radius: 11px;
    box-shadow: 0 12px 34px rgba(35, 34, 39, .045);
}

body.woocommerce-account .buyhome-account-lower-grid {
    gap: 20px;
    margin-top: 22px;
}

body.woocommerce-account .buyhome-account-lower-grid .buyhome-account-section {
    min-height: 252px;
    padding: 29px 31px;
}

body.woocommerce-account .buyhome-account-reassurance {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--blossen-line);
    border-bottom: 1px solid var(--blossen-line);
    border-radius: 0;
    background: var(--blossen-white);
}

body.woocommerce-account .buyhome-account-reassurance > span {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 0 20px;
    border-right: 1px solid var(--blossen-line);
    border-bottom: 0;
}

body.woocommerce-account .buyhome-account-reassurance > span:last-child {
    border-right: 0;
}

body.woocommerce-account .buyhome-account-reassurance i {
    display: grid;
}

body.woocommerce-account .buyhome-orders-intro,
body.woocommerce-account .buyhome-account-panel {
    margin-bottom: 21px;
}

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

body.woocommerce-account .buyhome-account-stats--orders .buyhome-stat-card {
    min-height: 112px;
    display: flex;
}

body.woocommerce-account .buyhome-order-list {
    gap: 21px;
}

body.woocommerce-account .buyhome-order-card__head,
body.woocommerce-account .buyhome-order-card__body,
body.woocommerce-account .buyhome-return-card {
    padding: 25px 27px;
}

body.woocommerce-account .buyhome-order-product {
    grid-template-columns: 76px minmax(0, 1fr) auto;
}

body.woocommerce-account .buyhome-order-product img,
body.woocommerce-account .buyhome-order-product .buyhome-order-product__placeholder {
    width: 76px;
    height: 76px;
    border-radius: 7px;
}

@media (max-width: 1180px) {
    body.woocommerce-account .woocommerce {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 30px;
        padding: 0 28px;
    }

    body.woocommerce-account .buyhome-dashboard-order {
        grid-template-columns: minmax(300px, 1fr) minmax(260px, 1fr);
    }

    body.woocommerce-account .buyhome-dashboard-order-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.woocommerce-account .woocommerce {
        display: block;
        padding: 0 20px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        position: static;
        margin: 0 0 28px;
        padding: 0;
        overflow-x: auto;
        border: 0 !important;
        border-bottom: 1px solid var(--blossen-line) !important;
        scrollbar-width: none;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation::-webkit-scrollbar {
        display: none;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        width: max-content;
        min-width: 100%;
        grid-template-columns: none;
        gap: 0;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation li,
    body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation a {
        min-height: 49px;
        padding: 12px 15px;
        border-radius: 0;
        white-space: nowrap;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation a::before {
        display: none;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
    body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
        background: transparent !important;
        box-shadow: inset 0 -3px 0 var(--blossen-ink) !important;
    }

    body.woocommerce-account .buyhome-dashboard-order {
        grid-template-columns: 1fr;
    }

    body.woocommerce-account .buyhome-dashboard-order-actions {
        grid-column: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.woocommerce-account .woocommerce {
        margin-top: 12px;
        padding: 0 14px;
    }

    body.woocommerce-account .buyhome-account-hero {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.woocommerce-account .buyhome-account-profile-copy h2 {
        font-size: 43px;
    }

    body.woocommerce-account .buyhome-account-identity {
        width: 100%;
        min-width: 0;
    }

    body.woocommerce-account .buyhome-account-stats,
    body.woocommerce-account .buyhome-account-stats--orders {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 11px;
    }

    body.woocommerce-account .buyhome-stat-card,
    body.woocommerce-account .buyhome-account-stats--orders .buyhome-stat-card {
        min-height: 142px;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
        padding: 17px 14px;
    }

    body.woocommerce-account .buyhome-stat-icon {
        width: 36px;
        height: 36px;
    }

    body.woocommerce-account .buyhome-stat-card strong {
        min-height: 28px;
        font-size: 25px;
    }

    body.woocommerce-account .buyhome-stat-card em {
        grid-column: 1 / -1;
    }

    body.woocommerce-account .buyhome-dashboard-order {
        gap: 22px;
        padding: 14px;
    }

    body.woocommerce-account .buyhome-dashboard-order__product {
        grid-template-columns: 112px minmax(0, 1fr) !important;
        gap: 15px;
    }

    body.woocommerce-account .buyhome-dashboard-order__product img,
    body.woocommerce-account .buyhome-dashboard-order__product .buyhome-order-product__placeholder {
        width: 112px !important;
        height: 112px !important;
    }

    body.woocommerce-account .buyhome-account-lower-grid .buyhome-account-section {
        min-height: 0;
    }

    body.woocommerce-account .buyhome-account-reassurance {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 0;
    }

    body.woocommerce-account .buyhome-account-reassurance > span,
    body.woocommerce-account .buyhome-account-reassurance > span:nth-child(2) {
        min-height: 54px;
        padding: 0 12px;
        border-right: 0;
        border-bottom: 0;
    }

    body.woocommerce-account .buyhome-account-reassurance > span:nth-child(odd) {
        border-right: 1px solid var(--blossen-line);
    }

    body.woocommerce-account .buyhome-account-reassurance i {
        display: none;
    }

    body.woocommerce-account .buyhome-order-product {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    body.woocommerce-account .buyhome-order-product img,
    body.woocommerce-account .buyhome-order-product .buyhome-order-product__placeholder {
        width: 62px;
        height: 62px;
    }
}
