@media (min-width: 992px) {
    .needz-mobile-account-bar,
    .needz-mobile-account-tabs,
    .needz-account-points {
        display: none !important;
    }
}

@media (max-width: 991px) {
    html:has(.bb-customer-page),
    body:has(.bb-customer-page) {
        min-height: 100%;
        background: #f7f7f5 !important;
    }

    body:has(.bb-customer-page) .needz-header-6-shell,
    body:has(.bb-customer-page) .needz-header-6,
    body:has(.bb-customer-page) #admin_bar,
    body:has(.bb-customer-page) .needz-announcement-bar,
    body:has(.bb-customer-page) .tp-header-top-2-area,
    body:has(.bb-customer-page) #tp-bottom-menu-sticky,
    body:has(.bb-customer-page) .tp-subscribe-area,
    body:has(.bb-customer-page) .header-sticky,
    body:has(.bb-customer-page) footer,
    body:has(.bb-customer-page) .footer-area,
    body:has(.bb-customer-page) .back-to-top-wrapper {
        display: none !important;
    }

    body.needz-mobile-account-active > .phpdebugbar {
        display: none !important;
    }

    body.needz-mobile-account-active {
        overflow-x: hidden;
        margin-top: 0 !important;
        padding-top: 0 !important;
        background: #f7f7f5 !important;
    }

    html body.needz-mobile-account-active.show-admin-bar {
        margin-top: 0 !important;
    }

    body.needz-mobile-account-active .bb-customer-page {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0 0 calc(78px + env(safe-area-inset-bottom));
        background: #f7f7f5;
        animation: needz-account-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
        transform-origin: 92% 4%;
    }

    body.needz-mobile-account-active .bb-customer-page > .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.needz-mobile-account-active .bb-customer-page .customer-body,
    body.needz-mobile-account-active .bb-customer-page .row,
    body.needz-mobile-account-active .bb-customer-page [class*="col-lg-"] {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    body.needz-mobile-account-active .bb-customer-page .customer-body > .d-lg-none,
    body.needz-mobile-account-active .bb-customer-page #customerSidebar,
    body.needz-mobile-account-active .bb-customer-page .bb-customer-sidebar-wrapper,
    body.needz-mobile-account-active .bb-customer-page .col-lg-3 {
        display: none !important;
    }

    .needz-mobile-account-bar {
        position: sticky;
        z-index: 1040;
        top: 0;
        display: grid;
        grid-template-columns: 48px 1fr 48px;
        align-items: center;
        min-height: 70px;
        padding: env(safe-area-inset-top) 18px 0;
        border-bottom: 1px solid rgba(11, 11, 11, 0.14);
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: saturate(150%) blur(18px);
        -webkit-backdrop-filter: saturate(150%) blur(18px);
    }

    .needz-mobile-account-bar::before {
        content: '';
        width: 44px;
        height: 44px;
    }

    .needz-mobile-account-bar__logo {
        display: inline-flex;
        grid-column: 2;
        align-items: center;
        justify-content: center;
        justify-self: center;
        min-width: 44px;
        min-height: 44px;
        color: #0b0b0b;
        font-size: 30px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: -0.06em;
    }

    .needz-mobile-account-bar__logo img {
        display: block;
        width: auto !important;
        max-width: 156px !important;
        height: 38px !important;
        object-fit: contain;
    }

    .needz-mobile-account-bar__close {
        grid-column: 3;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 14px;
        border-radius: 0;
        opacity: 1;
    }

    .needz-mobile-account-bar__close:focus-visible,
    .needz-mobile-account-tabs a:focus-visible,
    .needz-account-link-list a:focus-visible,
    .needz-account-order:focus-visible,
    .needz-account-points__toggle:focus-visible {
        outline: 2px solid #0b0b0b;
        outline-offset: 3px;
    }

    .needz-account-points__toggle:focus-visible {
        outline-color: #fff;
    }

    body.needz-mobile-account-active .bb-profile-content {
        min-height: calc(100dvh - 148px);
        padding: 0 !important;
        background: #f7f7f5;
    }

    body.needz-mobile-account-active .bb-profile-header {
        margin: 0;
        padding: 28px 24px 10px;
        border: 0;
        background: transparent;
    }

    body.needz-mobile-account-active .bb-profile-header-title {
        color: #0b0b0b;
        font-size: 11px !important;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.22em;
        text-transform: uppercase;
    }

    body.needz-mobile-account-active .bb-profile-main {
        padding: 0 24px 36px !important;
    }

    .needz-mobile-account-tabs {
        position: fixed;
        z-index: 1050;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(var(--needz-account-tab-count, 3), minmax(0, 1fr));
        gap: 6px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(11, 11, 11, 0.18);
        background: rgba(247, 247, 245, 0.96);
        backdrop-filter: saturate(140%) blur(20px);
        -webkit-backdrop-filter: saturate(140%) blur(20px);
    }

    .needz-mobile-account-tabs a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 48px;
        padding: 0 6px;
        border: 1px solid rgba(11, 11, 11, 0.14);
        background: #fff;
        color: #0b0b0b;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
    }

    .needz-mobile-account-tabs a.is-active {
        border-color: #0b0b0b;
        background: #0b0b0b;
        color: #fff;
    }

    .needz-mobile-account-tabs a:active {
        transform: scale(0.97);
    }

    .needz-account-overview__welcome {
        padding: 0 0 26px;
    }

    .needz-account-eyebrow {
        margin: 0 0 22px;
        color: #646464;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.2em;
        text-transform: uppercase;
    }

    .needz-account-overview__welcome h2 {
        margin: 0 0 10px;
        color: #0b0b0b;
        font-size: clamp(30px, 8vw, 38px);
        font-weight: 500;
        line-height: 1.04;
        letter-spacing: -0.045em;
    }

    .needz-account-overview__welcome > p:last-child {
        max-width: 32em;
        margin: 0;
        color: #646464;
        font-size: 14px;
        line-height: 1.55;
    }

    body.needz-mobile-account-active .needz-customer-overview {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    body.needz-mobile-account-active .needz-customer-overview__header {
        margin: 0;
        padding: 0 0 26px;
        border: 0;
    }

    body.needz-mobile-account-active .needz-customer-overview__header h1 {
        margin: 0 0 10px;
        color: #0b0b0b;
        font-size: clamp(30px, 8vw, 38px);
        font-weight: 500;
        line-height: 1.04;
        letter-spacing: -0.045em;
    }

    body.needz-mobile-account-active .needz-customer-overview__header p {
        max-width: 32em;
        margin: 0;
        color: #646464;
        font-size: 14px;
        line-height: 1.55;
    }

    body.needz-mobile-account-active .needz-customer-overview__actions {
        display: none !important;
    }

    body.needz-mobile-account-active .needz-customer-overview__actions .needz-customer-action:first-child {
        display: none;
    }

    body.needz-mobile-account-active .needz-customer-action {
        display: grid;
        grid-template-columns: 1fr 18px;
        gap: 4px 16px;
        min-height: 78px;
        padding: 16px 0;
        border: 0;
        border-bottom: 1px solid rgba(11, 11, 11, 0.18);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.needz-mobile-account-active .needz-customer-action__icon,
    body.needz-mobile-account-active .needz-customer-action__description {
        display: none;
    }

    body.needz-mobile-account-active .needz-customer-action__title {
        grid-column: 1;
        align-self: end;
        color: #0b0b0b;
        font-size: 14px;
        font-weight: 600;
    }

    body.needz-mobile-account-active .needz-customer-action__link {
        display: contents;
        color: transparent;
        font-size: 0;
    }

    body.needz-mobile-account-active .needz-customer-action__link svg {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        width: 18px;
        height: 18px;
        color: #0b0b0b;
    }

    body.needz-mobile-account-active .needz-customer-orders {
        margin: 0 0 34px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    body.needz-mobile-account-active .needz-customer-orders__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 0 12px;
        padding: 0;
    }

    body.needz-mobile-account-active .needz-customer-orders__header h2 {
        margin: 0;
        color: #0b0b0b;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    body.needz-mobile-account-active .needz-customer-orders__header a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin: -8px 0;
        color: #0b0b0b;
        font-size: 11px;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    body.needz-mobile-account-active .needz-customer-orders__header a svg {
        display: none;
    }

    body.needz-mobile-account-active .needz-customer-orders__table-wrap {
        overflow: visible;
        border: 1px solid rgba(11, 11, 11, 0.18);
        background: #fff;
    }

    body.needz-mobile-account-active .needz-customer-orders__table {
        display: block;
        width: 100%;
        margin: 0;
    }

    body.needz-mobile-account-active .needz-customer-orders__table thead,
    body.needz-mobile-account-active .needz-customer-orders__table tbody tr:nth-child(n + 2) {
        display: none;
    }

    body.needz-mobile-account-active .needz-customer-orders__table tbody,
    body.needz-mobile-account-active .needz-customer-orders__table tbody tr {
        display: grid;
        width: 100%;
    }

    body.needz-mobile-account-active .needz-customer-orders__table tbody tr {
        position: relative;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 9px 16px;
        align-content: center;
        min-height: 104px;
        padding: 18px 46px 18px 16px;
        cursor: pointer;
        transition: background-color 100ms ease-out, transform 100ms ease-out;
    }

    body.needz-mobile-account-active .needz-customer-orders__table td {
        display: block;
        padding: 0 !important;
        border: 0 !important;
        color: #646464;
        font-size: 11px;
    }

    body.needz-mobile-account-active .needz-customer-orders__table td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
        color: #0b0b0b;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.25;
    }

    body.needz-mobile-account-active .needz-customer-orders__table td:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        line-height: 1.35;
    }

    body.needz-mobile-account-active .needz-customer-orders__table td:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        justify-self: end;
        line-height: 1.35;
    }

    body.needz-mobile-account-active .needz-customer-orders__table td:nth-child(4) {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        justify-self: end;
        color: #0b0b0b;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.25;
        text-align: right;
    }

    body.needz-mobile-account-active .needz-customer-orders__action-cell {
        position: static !important;
        display: contents !important;
    }

    body.needz-mobile-account-active .needz-customer-orders__action-cell a {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        height: 100%;
        padding: 0 16px;
        color: transparent;
        font-size: 0;
        cursor: pointer;
        transition: background-color 100ms ease-out;
    }

    body.needz-mobile-account-active .needz-customer-orders__action-cell a:active {
        background: rgba(11, 11, 11, 0.045);
    }

    body.needz-mobile-account-active .needz-customer-orders__action-cell a:focus-visible {
        z-index: 1;
        outline: 2px solid #0b0b0b;
        outline-offset: -3px;
    }

    body.needz-mobile-account-active .needz-customer-orders__action-cell svg {
        width: 18px;
        height: 18px;
        color: #0b0b0b;
    }

    body.needz-mobile-account-active .needz-customer-orders__status .badge {
        padding: 0 !important;
        background: transparent !important;
        color: #646464 !important;
        font-size: 9px !important;
        font-weight: 700;
        line-height: 1.35;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .needz-account-points {
        position: relative;
        min-height: 300px;
        margin: 0 0 34px;
        overflow: hidden;
        background: #0b0b0b;
        color: #fff;
        contain: layout paint;
    }

    .needz-account-points:not(.needz-account-points--has-qr) {
        min-height: 220px;
    }

    .needz-account-points__panel {
        position: absolute;
        inset: 0;
        display: grid;
        padding: 24px;
        transition: opacity 200ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
        transform-origin: 90% 82%;
    }

    .needz-account-points__panel--front {
        grid-template-rows: auto auto auto 1fr;
        opacity: 1;
        transform: scale(1);
    }

    .needz-account-points__panel--qr {
        grid-template-rows: auto 1fr auto;
        opacity: 0;
        pointer-events: none;
        transform: scale(0.985);
    }

    .needz-account-points.is-qr-open .needz-account-points__panel--front {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.985);
    }

    .needz-account-points.is-qr-open .needz-account-points__panel--qr {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }

    .needz-account-points__label {
        display: block;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.2em;
        text-transform: uppercase;
    }

    .needz-account-points__balance {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;
        align-items: end;
        margin-top: 24px;
    }

    .needz-account-points__balance strong {
        font-size: 38px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .needz-account-points__value {
        padding-bottom: 3px;
        font-size: 12px;
        text-align: right;
        opacity: 0.7;
    }

    .needz-account-points__track {
        display: block;
        height: 2px;
        margin-top: 26px;
        background: rgba(255, 255, 255, 0.24);
    }

    .needz-account-points__track span {
        display: block;
        height: 100%;
        background: #fff;
    }

    .needz-account-points__hint {
        max-width: 18em;
        font-size: 10px;
        line-height: 1.4;
        letter-spacing: 0.05em;
        opacity: 0.65;
    }

    .needz-account-points__footer {
        display: flex;
        gap: 16px;
        align-items: end;
        justify-content: space-between;
        align-self: end;
        margin-top: 18px;
    }

    .needz-account-points__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        gap: 8px;
        padding: 0;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 0;
        background: transparent;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        transition: opacity 160ms ease, transform 160ms ease;
    }

    .needz-account-points__toggle:hover {
        color: #fff;
        opacity: 0.78;
    }

    .needz-account-points__toggle:active {
        transform: scale(0.97);
    }

    .needz-account-points__toggle svg {
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
    }

    .needz-account-points__qr-header {
        display: flex;
        gap: 16px;
        align-items: start;
        justify-content: space-between;
    }

    .needz-account-points__qr-instruction {
        display: block;
        max-width: 15em;
        margin-top: 5px;
        font-size: 10px;
        line-height: 1.35;
        opacity: 0.62;
    }

    .needz-account-points__qr-code {
        display: grid;
        place-items: center;
        align-self: center;
        justify-self: center;
        width: 192px;
        height: 192px;
        padding: 8px;
        background: #fff;
    }

    .needz-account-points__qr-code svg {
        display: block;
        width: 176px !important;
        height: 176px !important;
    }

    .needz-account-points__member-id {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: rgba(255, 255, 255, 0.62);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .needz-account-points__member-id code {
        padding: 0;
        background: transparent;
        color: #fff;
        font-size: 12px;
        letter-spacing: 0.08em;
    }

    .needz-account-section {
        margin: 0 0 34px;
    }

    .needz-account-section__heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 0 12px;
    }

    .needz-account-section__heading h3 {
        margin: 0;
        color: #0b0b0b;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    .needz-account-section__heading a {
        color: #0b0b0b;
        font-size: 11px;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .needz-account-order {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto 18px;
        gap: 12px;
        align-items: center;
        min-height: 94px;
        padding: 18px 16px;
        border: 1px solid rgba(11, 11, 11, 0.18);
        background: #fff;
        color: #0b0b0b;
    }

    .needz-account-order__meta {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
        color: #646464;
        font-size: 11px;
    }

    .needz-account-order__meta span:first-child {
        overflow: hidden;
        color: #0b0b0b;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .needz-account-order > strong {
        font-size: 14px;
        font-weight: 600;
    }

    .needz-account-order__status {
        position: absolute;
        bottom: 13px;
        left: 16px;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .needz-account-order--empty {
        grid-template-columns: 1fr 18px;
    }

    .needz-account-order--empty > span:first-child {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .needz-account-order--empty strong {
        font-size: 14px;
    }

    .needz-account-order--empty span span {
        color: #646464;
        font-size: 12px;
    }

    .needz-account-chevron {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        color: #0b0b0b;
    }

    .needz-account-link-list {
        display: flex;
        flex-direction: column;
        border-top: 1px solid rgba(11, 11, 11, 0.18);
    }

    .needz-account-link-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 70px;
        gap: 20px;
        padding: 14px 0;
        border-bottom: 1px solid rgba(11, 11, 11, 0.18);
        color: #0b0b0b;
    }

    .needz-account-link-list a > span:first-child {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 14px;
        font-weight: 600;
    }

    .needz-account-link-list a small {
        color: #646464;
        font-size: 11px;
        font-weight: 400;
        line-height: 1.35;
    }

    .needz-account-profile__identity {
        display: flex;
        align-items: center;
        gap: 16px;
        margin: 2px 0 34px;
        padding: 20px;
        border: 1px solid rgba(11, 11, 11, 0.18);
        background: #fff;
    }

    .needz-account-profile__avatar {
        width: 54px;
        height: 54px;
        flex: 0 0 54px;
        overflow: hidden;
        border-radius: 50%;
        background: #e7e7e3;
    }

    .needz-account-profile__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .needz-account-profile__identity > div:last-child {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 4px;
    }

    .needz-account-profile__identity strong {
        color: #0b0b0b;
        font-size: 17px;
    }

    .needz-account-profile__identity span {
        overflow: hidden;
        color: #646464;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .needz-account-link-list__logout {
        margin-top: 22px;
        border-top: 1px solid rgba(11, 11, 11, 0.18);
    }

    body.needz-mobile-account-active .bb-customer-content-wrapper {
        padding: 0 !important;
    }

    body.needz-mobile-account-active .bb-customer-card-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    body.needz-mobile-account-active .bb-customer-card {
        overflow: hidden;
        border: 1px solid rgba(11, 11, 11, 0.18) !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    body.needz-mobile-account-active .bb-customer-card-header,
    body.needz-mobile-account-active .bb-customer-card-body,
    body.needz-mobile-account-active .bb-customer-card-footer {
        padding: 16px !important;
        border-color: rgba(11, 11, 11, 0.14) !important;
        background: transparent !important;
    }

    body.needz-mobile-account-active .bb-customer-card-title {
        color: #0b0b0b !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    body.needz-mobile-account-active .bb-customer-card .info-item .label {
        color: #707070 !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    body.needz-mobile-account-active .bb-customer-card .info-item .value {
        color: #0b0b0b !important;
        font-size: 13px !important;
    }

    body.needz-mobile-account-active .bb-customer-card-footer .btn {
        width: 100%;
        min-height: 46px;
        border: 1px solid #0b0b0b !important;
        border-radius: 0 !important;
        background: #0b0b0b !important;
        color: #fff !important;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    body.needz-mobile-account-active .bb-profile-main form .form-control,
    body.needz-mobile-account-active .bb-profile-main form .form-select,
    body.needz-mobile-account-active .bb-profile-main form .btn {
        min-height: 46px;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.needz-mobile-account-active .bb-profile-main form .btn-primary {
        border-color: #0b0b0b !important;
        background: #0b0b0b !important;
        color: #fff !important;
    }

    @keyframes needz-account-enter {
        from {
            opacity: 0;
            transform: scale(0.985) translateY(4px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
}

@media (max-width: 360px) {
    .needz-account-points--has-qr {
        min-height: 320px;
    }

    .needz-account-points__balance {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .needz-account-points__value {
        padding-bottom: 0;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.needz-mobile-account-active .bb-customer-page {
        animation: needz-account-fade 120ms linear both;
    }

    .needz-mobile-account-tabs a {
        transition: none !important;
    }

    .needz-account-points__panel {
        transition: opacity 120ms linear !important;
        transform: none !important;
    }

    .needz-account-points__toggle {
        transition: none !important;
    }

    body.needz-mobile-account-active .needz-customer-orders__table tbody tr,
    body.needz-mobile-account-active .needz-customer-orders__action-cell a {
        transition: none !important;
    }

    @keyframes needz-account-fade {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}
