body.wholesale-portal-body {
    margin: 0;
    font-family: "Rubik", sans-serif;
    background: #f3f3f5;
    color: #030305;
    --wholesale-catalog-sticky-offset: 7.4rem;
}

[x-cloak] {
    display: none !important;
}

.wholesale-shell-header,
.wholesale-shell-tabs {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.wholesale-catalog-page,
.wholesale-catalog-page.is-toolbar-scrolled {
    padding-top: 13.5rem;
}

.wholesale-shell-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.3rem;
    border-bottom: 1px solid rgba(3, 3, 5, 0.08);
}

.wholesale-shell-brand__home {
    font-weight: 650;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: #030305;
    text-decoration: none;
}

.wholesale-shell-brand__badge,
.wholesale-product-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #ffc43a;
    font-size: 0.76rem;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
}

.wholesale-shell-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wholesale-shell-meta__text {
    color: var(--wholesale-shell-meta-text, #6c727d);
    font-size: 0.82rem;
    font-weight: 480;
    line-height: 1.25;
}

.wholesale-shell-tabs {
    display: flex;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(3, 3, 5, 0.08);
}

.wholesale-shell-tabs__link,
.wholesale-brand-switcher__link,
.wholesale-catalog-nav__link {
    text-decoration: none;
    color: #030305;
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    background: #ffffff;
    border: 1px solid rgba(3, 3, 5, 0.08);
    font-size: 0.9rem;
    font-weight: 500;
}

.wholesale-shell-tabs__link.is-active,
.wholesale-brand-switcher__link.is-active {
    background: #030305;
    color: #ffffff;
}

.wholesale-shell-main {
    padding: 1.5rem;
}

.wholesale-shell-main--catalog {
    padding: 0 0 1.5rem;
}

.wholesale-shell-main--entry {
    padding: 0;
}

.wholesale-auth-shell {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: clamp(1rem, 2vw, 1.8rem) 0 2.5rem;
}

.wholesale-auth-shell--locked-preview {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: min(1440px, 100%);
    min-height: calc(100vh - 8rem);
    overflow: hidden;
    padding: clamp(1.25rem, 3vw, 3.5rem);
    border: 1px solid rgba(3, 3, 5, 0.08);
    border-radius: 30px;
    background: #e7e9ed;
    box-shadow: 0 24px 70px rgba(3, 3, 5, 0.1);
}

.wholesale-locked-preview__catalog {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    align-content: start;
    gap: 1.15rem;
    padding: clamp(1.25rem, 3vw, 3rem);
    pointer-events: none;
    user-select: none;
    transform: scale(1.015);
    transform-origin: center;
}

.wholesale-locked-preview__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(3, 3, 5, 0.07);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(3, 3, 5, 0.06);
}

.wholesale-locked-preview__wordmark,
.wholesale-locked-preview__nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wholesale-locked-preview__wordmark {
    font-size: 0.94rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.wholesale-locked-preview__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #030305;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.05em;
}

.wholesale-locked-preview__nav span {
    padding: 0.46rem 0.75rem;
    border-radius: 999px;
    background: #f1f2f4;
    color: #454a54;
    font-size: 0.8rem;
    font-weight: 500;
}

.wholesale-locked-preview__hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 210px;
    padding: clamp(1.4rem, 3vw, 2.6rem);
    border-radius: 26px;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 196, 58, 0.82), transparent 27%),
        linear-gradient(135deg, #101115 0%, #292b32 100%);
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(3, 3, 5, 0.18);
}

.wholesale-locked-preview__hero > div {
    display: grid;
    gap: 0.75rem;
    max-width: 620px;
}

.wholesale-locked-preview__hero strong {
    max-width: 16ch;
    font-size: clamp(1.8rem, 3.4vw, 3.6rem);
    font-weight: 430;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.wholesale-locked-preview__eyebrow {
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffc43a;
}

.wholesale-locked-preview__status {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    font-weight: 550;
    backdrop-filter: blur(8px);
}

.wholesale-locked-preview__products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.wholesale-locked-preview__product {
    overflow: hidden;
    border: 1px solid rgba(3, 3, 5, 0.07);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 28px rgba(3, 3, 5, 0.07);
}

.wholesale-locked-preview__product-art {
    min-height: 210px;
    background:
        radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.78), transparent 16%),
        linear-gradient(150deg, #d9dce3, #b9bec9);
}

.wholesale-locked-preview__product-art--2 {
    background:
        radial-gradient(circle at 52% 34%, rgba(255, 255, 255, 0.76), transparent 17%),
        linear-gradient(150deg, #dfcbbd, #ae8971);
}

.wholesale-locked-preview__product-art--3 {
    background:
        radial-gradient(circle at 48% 31%, rgba(255, 255, 255, 0.75), transparent 17%),
        linear-gradient(150deg, #c9d7c8, #849b82);
}

.wholesale-locked-preview__product-art--4 {
    background:
        radial-gradient(circle at 51% 33%, rgba(255, 255, 255, 0.74), transparent 18%),
        linear-gradient(150deg, #d8c8dc, #917c99);
}

.wholesale-locked-preview__product-copy {
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
}

.wholesale-locked-preview__product-copy strong {
    font-size: 0.96rem;
    font-weight: 540;
}

.wholesale-locked-preview__product-copy span {
    color: #707580;
    font-size: 0.78rem;
}

.wholesale-locked-preview__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(7px) saturate(0.82);
}

.wholesale-locked-preview__dialog {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    padding: clamp(1.6rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem) 1.5rem;
    border: 1px solid rgba(3, 3, 5, 0.09);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 28px 80px rgba(3, 3, 5, 0.2);
    backdrop-filter: blur(22px);
}

.wholesale-locked-preview__dialog .wholesale-auth-panel__intro {
    max-width: 760px;
    margin-inline: auto;
}

.wholesale-login-hero {
    display: grid;
    justify-items: center;
    text-align: center;
}

.wholesale-login-hero__logo {
    display: block;
    width: 128px;
    height: 128px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.wholesale-locked-preview__dialog .wholesale-login-hero h1 {
    margin-bottom: 0.65rem !important;
    font-size: clamp(2.35rem, 4vw, 3rem);
    font-weight: 520;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.wholesale-login-hero .lead {
    display: grid;
    gap: 0.15rem;
    max-width: 720px;
    font-size: clamp(1rem, 1.45vw, 1.15rem);
    line-height: 1.45;
}

.wholesale-locked-preview__benefits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.4rem, 4vw, 3.25rem);
    margin-top: 1.15rem;
}

.wholesale-locked-preview__benefit {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #30343b;
    font-size: 0.9rem;
    font-weight: 520;
    line-height: 1.2;
    white-space: nowrap;
}

.wholesale-locked-preview__benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: #f1f1ef;
    color: #17191d;
}

.wholesale-locked-preview__benefit-icon i {
    font-size: 1.05rem;
}

.wholesale-login-divider {
    height: 1px;
    margin: 1.35rem 0 1rem;
    background: rgba(3, 3, 5, 0.1);
}

.wholesale-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: 0;
    align-items: stretch;
}

.wholesale-login-form {
    min-width: 0;
    padding: 0.35rem 1.5rem 0.15rem 0;
    border-right: 1px solid rgba(3, 3, 5, 0.09);
}

.wholesale-login-form h2,
.wholesale-login-apply-card h2 {
    margin: 0;
    color: #111318;
    font-family: "Rubik", sans-serif;
    font-size: 1.2rem;
    font-weight: 570;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.wholesale-login-form form {
    display: grid;
    gap: 0;
    margin-top: 1.15rem;
}

.wholesale-login-fields {
    display: grid;
    gap: 1rem;
}

.wholesale-auth-input-wrap {
    position: relative;
}

.wholesale-auth-input-wrap .wholesale-auth-control {
    min-height: 52px;
    padding-right: 3rem;
    border-color: rgba(3, 3, 5, 0.14);
    border-radius: 12px;
    background: #ffffff;
    font-size: 0.96rem;
}

.wholesale-auth-input-wrap > i {
    position: absolute;
    top: 50%;
    right: 1rem;
    color: #696e77;
    font-size: 1rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.wholesale-login-form__submit,
.wholesale-login-apply-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin-top: 1rem;
    padding: 0.65rem 1.2rem;
    border-radius: 11px;
    line-height: 1.2;
}

.wholesale-login-form__forgot {
    justify-self: center;
    margin-top: 0.8rem;
    color: #4a4e56;
    font-size: 0.9rem;
    font-weight: 470;
    text-underline-offset: 0.18em;
}

.wholesale-login-pending-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    margin-top: 1rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(20, 50, 95, 0.12);
    border-radius: 12px;
    background: #f7f9fc;
    color: #525966;
    font-size: 0.8rem;
    line-height: 1.42;
}

.wholesale-login-pending-note__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e7edf6;
    color: #14325f;
    font-size: 0.9rem;
}

.wholesale-login-pending-note strong,
.wholesale-login-pending-note span {
    display: block;
}

.wholesale-login-pending-note strong {
    margin-bottom: 0.15rem;
    color: #20242b;
    font-size: 0.84rem;
    font-weight: 620;
}

.wholesale-login-apply-card {
    display: grid;
    justify-items: center;
    align-content: center;
    min-width: 0;
    margin-left: 1.25rem;
    padding: 1.25rem 1.2rem;
    border: 1px solid rgba(97, 80, 53, 0.12);
    border-radius: 15px;
    background: #faf8f4;
    text-align: center;
}

.wholesale-login-apply-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    background: #f0ece4;
    color: #1f2126;
    font-size: 1.2rem;
}

.wholesale-login-apply-card > p:not(.wholesale-login-apply-card__staff) {
    max-width: 25ch;
    margin: 0.65rem 0 0;
    color: #666a72;
    font-size: 0.96rem;
    line-height: 1.45;
}

.wholesale-login-apply-card__button {
    margin-top: 1rem;
    background: #ffffff;
    color: #15171b;
    border-color: #3e424a;
}

.wholesale-login-apply-card__button:hover,
.wholesale-login-apply-card__button:focus {
    background: #f3f3f1;
    color: #030305;
    border-color: #030305;
}

.wholesale-login-apply-card__staff {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.95rem 0 0;
    color: #565b64;
    font-size: 0.8rem;
    line-height: 1.35;
}

.wholesale-login-apply-card__staff a,
.wholesale-login-footer a {
    color: inherit;
    text-underline-offset: 0.18em;
}

.wholesale-login-footer {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 1.1rem;
    color: #5d626b;
    font-size: 0.86rem;
    text-align: center;
}

.wholesale-login-form__forgot:focus-visible,
.wholesale-login-apply-card a:focus-visible,
.wholesale-login-footer a:focus-visible,
.wholesale-login-form .wholesale-auth-btn:focus-visible {
    outline: 3px solid #030305;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #ffc43a;
}

@media (max-width: 767.98px) {
    .wholesale-auth-shell--locked-preview {
        min-height: calc(100vh - 10rem);
        padding: 1rem;
        border-radius: 22px;
    }

    .wholesale-locked-preview__catalog {
        padding: 1rem;
    }

    .wholesale-locked-preview__nav,
    .wholesale-locked-preview__status {
        display: none;
    }

    .wholesale-locked-preview__hero {
        min-height: 180px;
        align-items: center;
    }

    .wholesale-locked-preview__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wholesale-locked-preview__product:nth-child(n + 3) {
        display: none;
    }

    .wholesale-locked-preview__product-art {
        min-height: 180px;
    }

    .wholesale-locked-preview__dialog {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .wholesale-login-hero__logo {
        width: 112px;
        height: 112px;
        margin-bottom: 0.8rem;
    }

    .wholesale-locked-preview__dialog .wholesale-login-hero h1 {
        font-size: clamp(2rem, 9vw, 2.55rem);
    }

    .wholesale-locked-preview__benefits {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .wholesale-locked-preview__benefit {
        display: grid;
        justify-items: center;
        gap: 0.35rem;
        font-size: 0.75rem;
        text-align: center;
        white-space: normal;
    }

    .wholesale-login-divider {
        margin-top: 1.1rem;
    }

    .wholesale-login-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .wholesale-login-form {
        padding: 0;
        border-right: 0;
    }

    .wholesale-login-apply-card {
        margin-left: 0;
        padding: 1.25rem;
    }

    .wholesale-login-footer {
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    .wholesale-locked-preview__benefits {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .wholesale-locked-preview__benefit {
        display: flex;
        text-align: left;
    }
}

.wholesale-auth-shell--confirmation {
    width: min(900px, 100%);
    padding-top: clamp(1.5rem, 4vw, 4rem);
}

.wholesale-auth-shell--confirmation .wholesale-auth-panel {
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.6rem);
    border-color: rgba(20, 50, 95, 0.1);
    background:
        radial-gradient(circle at 92% 4%, rgba(255, 196, 58, 0.16), transparent 28%),
        #ffffff;
    box-shadow: 0 24px 60px rgba(3, 3, 5, 0.1);
}

.wholesale-auth-shell--confirmation .wholesale-auth-panel__intro {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.wholesale-application-confirmation {
    display: grid;
    gap: 1.3rem;
    max-width: 760px;
    margin: 1.75rem auto 0;
}

.wholesale-application-confirmation__status {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    gap: 0.5rem;
    padding: 0.48rem 0.8rem;
    border: 1px solid #ead591;
    border-radius: 999px;
    background: #fff3cf;
    color: #77500a;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.wholesale-application-confirmation__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(47, 141, 70, 0.18);
    border-radius: 16px;
    background: #f2faf4;
}

.wholesale-application-confirmation__summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #2f8d46;
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 10px 22px rgba(47, 141, 70, 0.18);
}

.wholesale-application-confirmation__summary strong,
.wholesale-application-confirmation__summary p {
    display: block;
}

.wholesale-application-confirmation__summary strong {
    color: #183c23;
    font-size: 1rem;
    font-weight: 650;
}

.wholesale-application-confirmation__summary p {
    margin: 0.25rem 0 0;
    color: #53645a;
    font-size: 0.9rem;
    line-height: 1.48;
}

.wholesale-application-confirmation__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wholesale-application-confirmation__steps li {
    display: grid;
    gap: 0.8rem;
    align-content: start;
    min-width: 0;
    padding: 1.1rem;
    border: 1px solid rgba(3, 3, 5, 0.08);
    border-radius: 16px;
    background: #fafafb;
}

.wholesale-application-confirmation__step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #e8edf5;
    color: #14325f;
    font-size: 1.1rem;
}

.wholesale-application-confirmation__steps strong,
.wholesale-application-confirmation__steps span {
    display: block;
}

.wholesale-application-confirmation__steps strong {
    margin-bottom: 0.35rem;
    color: #20242b;
    font-size: 0.92rem;
    font-weight: 650;
}

.wholesale-application-confirmation__steps li div > span {
    color: #686e78;
    font-size: 0.82rem;
    line-height: 1.45;
}

.wholesale-application-confirmation__access-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 1rem 1.1rem;
    border-left: 4px solid #14325f;
    border-radius: 0 14px 14px 0;
    background: #f2f5f9;
}

.wholesale-application-confirmation__access-note > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #14325f;
    color: #ffffff;
}

.wholesale-application-confirmation__access-note strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #17263b;
    font-size: 0.92rem;
    font-weight: 650;
}

.wholesale-application-confirmation__access-note p {
    margin: 0;
    color: #566376;
    font-size: 0.86rem;
    line-height: 1.5;
}

.wholesale-application-confirmation__email {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.wholesale-application-confirmation__email.is-sent {
    border: 1px solid #b9d5ec;
    background: #e8f2fb;
    color: #174b7a;
}

.wholesale-application-confirmation__email.is-not-sent {
    border: 1px solid #ead591;
    background: #fff8e4;
    color: #6d4b0a;
}

.wholesale-application-confirmation__email i {
    margin-top: 0.08rem;
    font-size: 1rem;
}

.wholesale-application-confirmation__actions {
    display: flex;
    justify-content: center;
    padding-top: 0.2rem;
}

.wholesale-application-confirmation__actions .wholesale-auth-btn {
    gap: 0.55rem;
}

.wholesale-application-confirmation__actions a:focus-visible {
    outline: 3px solid #030305;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #ffc43a;
}

@media (max-width: 767.98px) {
    .wholesale-auth-shell--confirmation {
        padding-top: 0;
    }

    .wholesale-auth-shell--confirmation .wholesale-auth-panel {
        border-radius: 20px;
    }

    .wholesale-application-confirmation__steps {
        grid-template-columns: 1fr;
    }

    .wholesale-application-confirmation__steps li {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.85rem;
    }

    .wholesale-application-confirmation__summary,
    .wholesale-application-confirmation__access-note {
        align-items: start;
    }
}

@media (max-width: 420px) {
    .wholesale-application-confirmation__summary {
        grid-template-columns: 1fr;
    }
}

.wholesale-auth-panel,
.wholesale-auth-card,
.wholesale-panel {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(3, 3, 5, 0.06);
    box-shadow: 0 10px 26px rgba(3, 3, 5, 0.045);
    padding: 1.5rem;
}

.wholesale-shell-main--not-found {
    display: grid;
    min-height: calc(100vh - 5rem);
}

.wholesale-not-found {
    display: grid;
    justify-items: center;
    width: min(720px, 100%);
    margin: auto;
    padding: clamp(2.25rem, 6vw, 4.75rem) clamp(1.5rem, 6vw, 4.5rem);
    overflow: hidden;
    border: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 196, 58, 0.2), transparent 38%),
        var(--wholesale-surface, #ffffff);
    color: var(--wholesale-text, #030305);
    box-shadow: 0 22px 60px var(--wholesale-shadow, rgba(3, 3, 5, 0.12));
    text-align: center;
}

.wholesale-not-found__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin-bottom: 1.3rem;
    border-radius: 24px;
    background: #ffc43a;
    color: #2f2410;
    font-size: 2.2rem;
    box-shadow: 0 16px 34px rgba(255, 196, 58, 0.22);
}

.wholesale-not-found__eyebrow {
    color: var(--wholesale-text-muted, #666b75);
    font-size: 0.78rem;
    font-weight: 720;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wholesale-not-found h1 {
    margin: 0.45rem 0 0;
    color: var(--wholesale-text-strong, #111318);
    font-size: clamp(2.35rem, 6vw, 4.5rem);
    font-weight: 520;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.wholesale-not-found > p {
    max-width: 48ch;
    margin: 1.15rem 0 0;
    color: var(--wholesale-text-muted, #666b75);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.55;
}

.wholesale-not-found > .wholesale-not-found__support {
    margin-top: 0.45rem;
    color: var(--wholesale-text, #030305);
    font-size: 0.94rem;
    font-weight: 560;
}

.wholesale-not-found__action {
    min-width: 220px;
    min-height: 48px;
    margin-top: 1.75rem;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    font-weight: 620;
}

@media (max-width: 575.98px) {
    .wholesale-shell-main--not-found {
        min-height: calc(100vh - 2rem);
    }

    .wholesale-not-found {
        padding: 2.25rem 1.2rem;
        border-radius: 22px;
    }

    .wholesale-not-found__icon {
        width: 70px;
        height: 70px;
        border-radius: 20px;
        font-size: 1.85rem;
    }

    .wholesale-not-found__action {
        width: 100%;
        min-width: 0;
    }
}

.wholesale-account-page {
    display: grid;
    gap: 1.25rem;
    width: min(1240px, 100%);
    margin: 0 auto;
}

.wholesale-account-page__intro {
    display: grid;
    gap: 0.4rem;
    max-width: 760px;
    padding: 0.35rem 0 0.5rem;
}

.wholesale-account-page__eyebrow,
.wholesale-account-card__eyebrow,
.wholesale-address-card__eyebrow,
.wholesale-account-identity__copy > span:first-child {
    color: var(--wholesale-text-muted, #666b75);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.wholesale-account-page__intro h1 {
    margin: 0;
    color: var(--wholesale-text-strong, #111318);
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    font-weight: 470;
    letter-spacing: -0.045em;
    line-height: 1;
}

.wholesale-account-page__intro p {
    max-width: 68ch;
    margin: 0;
    color: var(--wholesale-text-muted, #666b75);
    font-size: 1rem;
    line-height: 1.55;
}

.wholesale-account-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1.25rem;
    align-items: stretch;
}

.wholesale-account-card {
    position: relative;
    display: grid;
    gap: 1.3rem;
    align-content: start;
    min-width: 0;
    margin: 0;
}

.wholesale-panel.wholesale-account-card--security {
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--wholesale-info-surface, #e8f2fb) 64%, transparent), transparent 42%),
        var(--wholesale-surface, #ffffff);
}

.wholesale-account-card__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding-right: 7rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
}

.wholesale-account-card__header h2 {
    margin: 0.25rem 0 0;
    color: var(--wholesale-text-strong, #111318);
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
    font-weight: 560;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.wholesale-account-card__header p {
    max-width: 62ch;
    margin: 0.45rem 0 0;
    color: var(--wholesale-text-muted, #666b75);
    font-size: 0.9rem;
    line-height: 1.45;
}

.wholesale-account-card__edit {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--wholesale-border-strong, rgba(3, 3, 5, 0.16));
    border-radius: 10px;
    background: var(--wholesale-surface-soft, #fafafb);
    color: var(--wholesale-text, #030305);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1;
    appearance: none;
    cursor: pointer;
    user-select: none;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}


.wholesale-account-card__edit:hover {
    border-color: var(--wholesale-border-strong, rgba(3, 3, 5, 0.24));
    background: var(--wholesale-surface-hover, #f7f7f8);
}

.wholesale-account-card__edit:focus-visible {
    outline: 3px solid #ffc43a;
    outline-offset: 3px;
}

.wholesale-account-card__edit > span {
    align-items: center;
    gap: 0.4rem;
}

.wholesale-account-card__edit-closed {
    display: inline-flex;
}

.wholesale-account-card__edit-open {
    display: none;
}

.wholesale-account-card.is-editing > .wholesale-account-card__edit .wholesale-account-card__edit-closed {
    display: none;
}

.wholesale-account-card.is-editing > .wholesale-account-card__edit .wholesale-account-card__edit-open {
    display: inline-flex;
}

.wholesale-account-card__editor {
    display: none;
}

.wholesale-account-card.is-editing > .wholesale-account-card__view {
    display: none;
}

.wholesale-account-card.is-editing > .wholesale-account-card__editor {
    display: block;
}

.wholesale-account-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
    border-radius: 18px;
    background: var(--wholesale-surface-soft, #fafafb);
}

.wholesale-account-identity__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--wholesale-active-bg, #030305);
    color: var(--wholesale-active-text, #ffffff);
    font-size: 1.35rem;
    box-shadow: 0 10px 22px var(--wholesale-shadow, rgba(3, 3, 5, 0.12));
}

.wholesale-account-identity__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.wholesale-account-identity__copy strong {
    min-width: 0;
    color: var(--wholesale-text-strong, #111318);
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    font-weight: 620;
    letter-spacing: -0.035em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.wholesale-account-identity__copy a,
.wholesale-account-detail a,
.wholesale-address-card__phone,
.wholesale-address-card__map a {
    color: var(--wholesale-link, #0d6efd);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
}

.wholesale-account-identity__copy a {
    width: fit-content;
    max-width: 100%;
    font-size: 0.86rem;
}

.wholesale-account-identity__missing {
    color: var(--wholesale-text-subtle, #858a93);
    font-size: 0.84rem;
}

.wholesale-account-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0;
}

.wholesale-account-detail {
    min-width: 0;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
    border-radius: 14px;
    background: var(--wholesale-surface, #ffffff);
}

.wholesale-account-detail dt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.35rem;
    color: var(--wholesale-text-muted, #666b75);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.wholesale-account-detail dd {
    margin: 0;
    color: var(--wholesale-text-strong, #111318);
    font-size: 0.94rem;
    font-weight: 560;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wholesale-security-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid var(--wholesale-info-border, #b9d5ec);
    border-radius: 18px;
    background: color-mix(in srgb, var(--wholesale-info-surface, #e8f2fb) 72%, var(--wholesale-surface, #ffffff));
}

.wholesale-security-summary__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--wholesale-info-surface, #e8f2fb);
    color: var(--wholesale-info-text, #174b7a);
    font-size: 1.4rem;
}

.wholesale-security-summary__status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    color: var(--wholesale-success-text, #1f6a37);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.wholesale-security-summary strong {
    display: block;
    color: var(--wholesale-text-strong, #111318);
    font-size: 1.05rem;
    font-weight: 620;
    line-height: 1.3;
}

.wholesale-security-summary p {
    margin: 0.4rem 0 0;
    color: var(--wholesale-text-muted, #666b75);
    font-size: 0.88rem;
    line-height: 1.5;
}

.wholesale-account-edit-form {
    display: grid;
    gap: 1rem;
}

.wholesale-account-edit-form .form-label {
    color: var(--wholesale-text-muted, #666b75);
    font-size: 0.76rem;
    font-weight: 650;
}

.wholesale-account-save {
    justify-self: start;
    min-width: 180px;
    min-height: 44px;
    border-radius: 11px;
    font-weight: 600;
}

.wholesale-account-form-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    color: var(--wholesale-text-muted, #666b75);
    font-size: 0.8rem;
    line-height: 1.45;
}

.wholesale-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.wholesale-address-card {
    display: grid;
    grid-template-rows: auto 220px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
    border-radius: 20px;
    background: var(--wholesale-surface-soft, #fafafb);
}

.wholesale-address-card.is-empty,
.wholesale-address-card.is-editing {
    grid-template-rows: 1fr;
}

.wholesale-address-card__content {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-width: 0;
    padding: 1.15rem;
}

.wholesale-address-card__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
}

.wholesale-address-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--wholesale-surface-muted, #f0f1f3);
    color: var(--wholesale-text-strong, #111318);
    font-size: 1.05rem;
}

.wholesale-address-card__heading h2,
.wholesale-address-card__heading h3 {
    margin: 0.15rem 0 0;
    color: var(--wholesale-text-strong, #111318);
    font-size: 1.12rem;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.wholesale-address-card__same {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.34rem 0.55rem;
    border: 1px solid var(--wholesale-info-border, #b9d5ec);
    border-radius: 999px;
    background: var(--wholesale-info-surface, #e8f2fb);
    color: var(--wholesale-info-text, #174b7a);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.wholesale-address-card__view {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.wholesale-address-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
    flex-wrap: wrap;
}

.wholesale-address-card__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 38px;
    padding: 0.42rem 0.65rem;
    border-radius: 9px;
    font-size: 0.76rem;
    font-weight: 650;
    white-space: nowrap;
}

.wholesale-address-section__editor {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
}

.wholesale-address-card__editor {
    width: 100%;
    margin-top: 0;
}

.wholesale-address-section__editor[hidden],
[data-wholesale-billing-fields][hidden],
[data-wholesale-billing-same-note][hidden] {
    display: none !important;
}

.wholesale-address-edit-form {
    width: min(920px, 100%);
}

.pac-container {
    z-index: 1600 !important;
    border-radius: 10px;
    box-shadow: 0 14px 34px var(--wholesale-shadow, rgba(3, 3, 5, 0.18));
    font-family: "Rubik", system-ui, sans-serif;
}

.wholesale-address-card__address {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
    margin: 0;
    color: var(--wholesale-text-muted, #666b75);
    font-size: 0.9rem;
    font-style: normal;
    line-height: 1.42;
}

.wholesale-address-card__address strong {
    margin-bottom: 0.1rem;
    color: var(--wholesale-text-strong, #111318);
    font-size: 1rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.wholesale-address-card__address span {
    overflow-wrap: anywhere;
}

.wholesale-address-card__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    max-width: 100%;
    font-size: 0.84rem;
    font-weight: 560;
}

.wholesale-address-card__empty {
    display: grid;
    justify-items: start;
    gap: 0.35rem;
    padding: 0.4rem 0 0.2rem;
    color: var(--wholesale-text-muted, #666b75);
}

.wholesale-address-card__empty i {
    margin-bottom: 0.25rem;
    color: var(--wholesale-text-subtle, #858a93);
    font-size: 1.6rem;
}

.wholesale-address-card__empty strong {
    color: var(--wholesale-text-strong, #111318);
    font-size: 0.96rem;
}

.wholesale-address-card__empty span {
    font-size: 0.84rem;
    line-height: 1.45;
}

.wholesale-address-card__map {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-top: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
    background: var(--wholesale-surface-muted, #f0f1f3);
}

.wholesale-address-card__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.wholesale-address-card__map a {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--wholesale-border-strong, rgba(3, 3, 5, 0.16));
    border-radius: 9px;
    background: color-mix(in srgb, var(--wholesale-surface, #ffffff) 94%, transparent);
    box-shadow: 0 8px 20px var(--wholesale-shadow, rgba(3, 3, 5, 0.12));
    font-size: 0.75rem;
    font-weight: 650;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.wholesale-address-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.wholesale-address-editor {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
    border-radius: 18px;
    background: var(--wholesale-surface-soft, #fafafb);
}

.wholesale-address-editor legend {
    float: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: auto;
    margin: 0;
    color: var(--wholesale-text-strong, #111318);
    font-size: 1rem;
    font-weight: 650;
}

.wholesale-address-editor > p {
    margin: 0.35rem 0 1rem;
    color: var(--wholesale-text-muted, #666b75);
    font-size: 0.8rem;
    line-height: 1.45;
}

.wholesale-address-editor__same {
    margin: 0 0 1rem;
    padding: 0.75rem;
    border: 1px solid var(--wholesale-info-border, #b9d5ec);
    border-radius: 12px;
    background: var(--wholesale-info-surface, #e8f2fb);
    color: var(--wholesale-info-text, #174b7a);
}

.wholesale-address-editor__same .form-check-input {
    margin-left: 0;
}

.wholesale-address-editor__same .form-check-label {
    padding-left: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .wholesale-account-overview,
    .wholesale-address-grid,
    .wholesale-address-editor-grid {
        grid-template-columns: 1fr;
    }

    .wholesale-address-card {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
        grid-template-rows: auto;
    }

    .wholesale-address-card.is-empty,
    .wholesale-address-card.is-editing {
        grid-template-columns: 1fr;
    }

    .wholesale-address-card__map {
        min-height: 250px;
        border-top: 0;
        border-left: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
    }
}

@media (max-width: 767.98px) {
    .wholesale-account-detail-grid {
        grid-template-columns: 1fr;
    }

    .wholesale-address-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto 210px;
    }

    .wholesale-address-card__map {
        min-height: 0;
        border-top: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
        border-left: 0;
    }
}

@media (max-width: 575.98px) {
    .wholesale-account-page {
        gap: 1rem;
    }

    .wholesale-account-card {
        padding: 1.15rem;
        border-radius: 20px;
    }

    .wholesale-account-card__header {
        padding-right: 5.7rem;
    }

    .wholesale-account-card__edit {
        top: 1rem;
        right: 1rem;
        min-height: 40px;
        padding-inline: 0.62rem;
    }

    .wholesale-account-identity,
    .wholesale-security-summary {
        grid-template-columns: 1fr;
    }

    .wholesale-account-identity__mark,
    .wholesale-security-summary__icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .wholesale-address-card__heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .wholesale-address-card__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .wholesale-address-card__edit {
        min-height: 42px;
    }

    .wholesale-account-save {
        width: 100%;
        justify-self: stretch;
    }
}

.wholesale-status {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.32rem;
    width: min(100%, 18rem);
    min-width: 0;
    vertical-align: top;
}

.wholesale-status__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    max-width: 100%;
    padding: 0.32rem 0.62rem;
    border: 1px solid #d7dbe0;
    border-radius: 999px;
    background: #eef0f3;
    color: #4e5561;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.15;
}

.wholesale-status__marker {
    width: 0.48rem;
    height: 0.48rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: currentColor;
}

.wholesale-status__label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.wholesale-status__guidance {
    color: #606671;
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wholesale-status--info .wholesale-status__badge {
    border-color: #b9d5ec;
    background: #e8f2fb;
    color: #174b7a;
}

.wholesale-status--success .wholesale-status__badge {
    border-color: #b9dfc4;
    background: #e7f5eb;
    color: #1f6a37;
}

.wholesale-status--warning .wholesale-status__badge {
    border-color: #ead591;
    background: #fff3cf;
    color: #77500a;
}

.wholesale-status--danger .wholesale-status__badge {
    border-color: #e8bcbc;
    background: #fbeaea;
    color: #8a2b2b;
}

.wholesale-order-history {
    overflow: hidden;
    padding: 0;
}

.wholesale-order-history__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(3, 3, 5, 0.08);
}

.wholesale-order-history__header h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 520;
    letter-spacing: -0.02em;
}

.wholesale-order-history__header p {
    margin: 0.35rem 0 0;
    color: #646a74;
    font-size: 0.92rem;
    line-height: 1.45;
}

.wholesale-order-history__header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wholesale-order-history__count {
    flex: 0 0 auto;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    background: #f0f1f3;
    color: #4f5560;
    font-size: 0.78rem;
    font-weight: 650;
}

.wholesale-order-history__view-switch {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.32rem 0.62rem;
    border: 1px solid rgba(3, 3, 5, 0.1);
    border-radius: 999px;
    background: #ffffff;
    color: #555b65;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
}

.wholesale-order-history__view-switch:hover,
.wholesale-order-history__view-switch:focus {
    border-color: rgba(3, 3, 5, 0.24);
    background: #f7f7f8;
    color: #030305;
}

.wholesale-order-history__empty {
    display: grid;
    gap: 0.3rem;
    padding: 2rem 1.5rem;
    color: #646a74;
}

.wholesale-order-history__empty strong {
    color: #030305;
    font-size: 1rem;
    font-weight: 600;
}

.wholesale-order-history__table-wrap {
    margin: 0;
}

.wholesale-orders-table {
    min-width: 1180px;
    margin: 0;
}

.wholesale-orders-table thead th {
    padding: 0.78rem 1rem;
    border-bottom: 1px solid rgba(3, 3, 5, 0.1);
    background: #f7f7f8;
    color: #616771;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wholesale-orders-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(3, 3, 5, 0.075);
    vertical-align: top;
}

.wholesale-orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.wholesale-orders-table tbody tr:hover td {
    background: #fcfcfd;
}

.wholesale-order-card__date,
.wholesale-order-card__items,
.wholesale-order-card__po {
    color: #5d636d;
    font-size: 0.9rem;
    white-space: nowrap;
}

.wholesale-order-number,
.wholesale-order-total {
    display: inline-block;
    color: #030305;
    font-weight: 650;
    white-space: nowrap;
}

.wholesale-order-number {
    font-size: 1rem;
}

.wholesale-order-total {
    font-size: 1.05rem;
}

.wholesale-order-item-count {
    white-space: nowrap;
}

.wholesale-order-card__statuses {
    width: 46%;
    min-width: 35rem;
}

.wholesale-order-statuses {
    display: grid;
    grid-template-columns: repeat(3, minmax(10.5rem, 1fr));
    gap: 0.9rem;
}

.wholesale-order-status {
    display: grid;
    gap: 0.42rem;
    align-content: start;
    min-width: 0;
}

.wholesale-order-status__type {
    color: #656b75;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wholesale-order-status .wholesale-status {
    width: 100%;
    max-width: none;
}

.wholesale-order-card__actions {
    text-align: right;
    white-space: nowrap;
}

.wholesale-order-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.wholesale-order-actions form {
    margin: 0;
}

.wholesale-order-invoice-action,
.wholesale-order-checkout-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8.5rem;
    min-height: 44px;
    padding: 0.58rem 0.85rem;
    border-radius: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.wholesale-order-checkout-action {
    gap: 0.42rem;
}

.wholesale-order-archive-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(3, 3, 5, 0.1);
    border-radius: 10px;
    background: #ffffff;
    color: #656b75;
}

.wholesale-order-archive-action:hover,
.wholesale-order-archive-action:focus {
    border-color: rgba(3, 3, 5, 0.24);
    background: #f5f5f6;
    color: #030305;
}

.wholesale-order-history__view-switch:focus-visible,
.wholesale-order-invoice-action:focus-visible,
.wholesale-order-checkout-action:focus-visible,
.wholesale-order-archive-action:focus-visible {
    outline: 3px solid #030305;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #ffc43a;
}

.wholesale-order-card__mobile-label,
.wholesale-order-card__section-label {
    display: none;
}

.wholesale-certificate-summary .wholesale-status {
    width: min(100%, 30rem);
}

@media (max-width: 767.98px) {
    .wholesale-order-history {
        overflow: visible;
        padding: 1rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .wholesale-order-history__header {
        align-items: start;
        padding: 0 0 1rem;
        border-bottom: 0;
    }

    .wholesale-order-history__header p {
        max-width: 34rem;
    }

    .wholesale-order-history__table-wrap {
        overflow: visible;
    }

    .wholesale-orders-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .wholesale-orders-table,
    .wholesale-orders-table tbody,
    .wholesale-orders-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .wholesale-orders-table tbody {
        display: grid;
        gap: 1rem;
    }

    .wholesale-orders-table .wholesale-order-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "date date"
            "number total"
            "items total"
            "statuses statuses"
            "po po"
            "actions actions";
        gap: 0.35rem 1rem;
        width: 100%;
        padding: 1rem;
        border: 1px solid rgba(3, 3, 5, 0.09);
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 8px 22px rgba(3, 3, 5, 0.05);
    }

    .wholesale-orders-table tbody td,
    .wholesale-orders-table tbody tr:last-child td,
    .wholesale-orders-table tbody tr:hover td {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .wholesale-order-card__date {
        grid-area: date;
        margin-bottom: 0.35rem;
        color: #6a707a;
        font-size: 0.8rem;
        font-weight: 560;
    }

    .wholesale-order-card__number {
        grid-area: number;
        min-width: 0;
    }

    .wholesale-order-card__items {
        grid-area: items;
        color: #5f6570;
        font-size: 0.86rem;
    }

    .wholesale-order-card__total {
        grid-area: total;
        justify-self: end;
        text-align: right;
    }

    .wholesale-order-card__statuses {
        grid-area: statuses;
        width: auto;
        min-width: 0;
        margin-top: 0.75rem;
        padding-top: 0.85rem !important;
        border-top: 1px solid rgba(3, 3, 5, 0.08) !important;
    }

    .wholesale-order-statuses {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .wholesale-order-status {
        grid-template-columns: minmax(5.5rem, 30%) minmax(0, 1fr);
        gap: 0.75rem;
    }

    .wholesale-order-status__type {
        padding-top: 0.32rem;
    }

    .wholesale-order-card__po {
        grid-area: po;
        display: flex !important;
        align-items: baseline;
        gap: 0.65rem;
        margin-top: 0.55rem;
        padding-top: 0.75rem !important;
        border-top: 1px solid rgba(3, 3, 5, 0.08) !important;
        white-space: normal;
    }

    .wholesale-order-card__po.is-empty {
        display: none !important;
    }

    .wholesale-order-card__actions {
        grid-area: actions;
        margin-top: 0.75rem;
        text-align: left;
    }

    .wholesale-order-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.5rem;
        width: 100%;
    }

    .wholesale-order-checkout-form {
        grid-column: 1 / -1;
    }

    .wholesale-order-invoice-action,
    .wholesale-order-checkout-action {
        width: 100%;
        min-width: 0;
        min-height: 48px;
    }

    .wholesale-order-archive-form {
        grid-column: 2;
    }

    .wholesale-order-archive-action {
        width: 48px;
        height: 48px;
    }

    .wholesale-order-card__mobile-label,
    .wholesale-order-card__section-label {
        display: block;
        margin-bottom: 0.18rem;
        color: #6a707a;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .wholesale-order-card__section-label {
        margin-bottom: 0.65rem;
    }

    .wholesale-order-number {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: 1.12rem;
    }

    .wholesale-order-total {
        font-size: 1.22rem;
    }

    .wholesale-status {
        width: 100%;
        max-width: none;
    }
}

.wholesale-rep-page {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.wholesale-rep-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 196, 58, 0.24), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8f8fb 100%);
}

.wholesale-rep-hero__eyebrow,
.wholesale-rep-stat__label {
    font-size: 0.76rem;
    font-weight: 560;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5e636d;
}

.wholesale-rep-hero__rate {
    display: grid;
    gap: 0.25rem;
    align-content: start;
    justify-items: end;
}

.wholesale-rep-hero__rate-label {
    font-size: 0.82rem;
    color: #6b707a;
}

.wholesale-rep-hero__rate strong,
.wholesale-rep-stat__value {
    font-size: clamp(1.45rem, 2.4vw, 2.3rem);
    font-weight: 470;
    line-height: 1;
}

.wholesale-rep-stat {
    display: grid;
    gap: 0.45rem;
    min-height: 100%;
}

.wholesale-rep-stat__note,
.wholesale-rep-page__count {
    color: #6b707a;
    font-size: 0.92rem;
}

.wholesale-rep-customer-card {
    display: grid;
    gap: 0.4rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(3, 3, 5, 0.07);
    border-radius: 18px;
    background: #fbfbfc;
}

.wholesale-rep-customer-card__title {
    font-size: 1rem;
    font-weight: 470;
    line-height: 1.2;
}

.wholesale-rep-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(3, 3, 5, 0.07);
}

.wholesale-rep-summary-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/* Portal-local implementation of the shared STAT LIST, SEMANTIC TEXT, and
 * TIMELINE contracts. The wholesale portal remains outside internal Kinetic
 * stylesheet scope while using the same canonical class names and hierarchy. */
.k-stat-list.wholesale-customer-insight-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(3, 3, 5, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

.k-stat-list__item.wholesale-customer-insight {
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) minmax(190px, 0.65fr) minmax(280px, 1.3fr);
    gap: 1.25rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(3, 3, 5, 0.08);
}

.k-stat-list__item.wholesale-customer-insight:last-child {
    border-bottom: 0;
}

.wholesale-customer-insight__identity,
.wholesale-customer-insight__status,
.wholesale-customer-insight__context {
    margin: 0;
    min-width: 0;
}

.wholesale-customer-insight__identity {
    display: grid;
    gap: 0.22rem;
}

.wholesale-customer-insight__link {
    color: #030305;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

.wholesale-customer-insight__link:hover {
    text-decoration-color: #ffc43a;
}

.wholesale-customer-insight__link:focus-visible,
.wholesale-customer-back-link:focus-visible,
.wholesale-customer-contact-action:focus-visible,
.wholesale-account-timeline__record-link:focus-visible,
.wholesale-customer-activity-submit:focus-visible {
    outline: 3px solid #ffc43a;
    outline-offset: 3px;
}

.wholesale-customer-insight__company {
    font-size: 1.04rem;
    font-weight: 620;
}

.wholesale-customer-insight__contact,
.wholesale-customer-insight__brands {
    color: #686d76;
    font-size: 0.88rem;
    font-weight: 420;
}

.wholesale-customer-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: currentColor;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
}

.wholesale-customer-status-tag__marker {
    width: 0.52rem;
    height: 0.52rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.72);
}

.wholesale-customer-status-tag.k-type--success {
    color: #176b3a;
    background: #e7f5ec;
}

.wholesale-customer-status-tag.k-type--warning {
    color: #735100;
    background: #fff2c7;
}

.wholesale-customer-status-tag.k-type-muted {
    color: #5f636b;
    background: #eceef1;
}

.wholesale-customer-insight__context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1rem;
    color: #5f646e;
    font-size: 0.86rem;
}

.wholesale-customer-insight__context span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.wholesale-customer-insight__context strong {
    display: block;
    color: #30343b;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wholesale-empty-state {
    display: grid;
    place-items: center;
    gap: 0.45rem;
    min-height: 180px;
    padding: 2rem;
    border: 1px dashed rgba(3, 3, 5, 0.22);
    border-radius: 16px;
    background: #fafafb;
    color: #5f646e;
    text-align: center;
}

.wholesale-empty-state > i {
    font-size: 1.7rem;
    color: #30343b;
}

.wholesale-customer-detail__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    gap: 2rem;
    align-items: start;
}

.wholesale-customer-badges,
.wholesale-customer-contact-actions,
.wholesale-account-timeline__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.wholesale-customer-contact-card {
    display: grid;
    gap: 0.2rem;
    align-content: start;
    justify-items: start;
    padding: 1rem;
    border: 1px solid rgba(3, 3, 5, 0.08);
    border-radius: 14px;
    background: #fafafb;
}

.wholesale-customer-contact-name {
    color: #30343b;
    font-size: 1rem;
    font-weight: 650;
}

.wholesale-customer-contact-actions {
    margin-top: 0.65rem;
}

.wholesale-customer-contact-action {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 36px;
}

.wholesale-customer-detail__layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.45fr);
    gap: 1.25rem;
    align-items: start;
}

.wholesale-customer-activity-form {
    position: sticky;
    top: 8.5rem;
    align-self: start;
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.wholesale-customer-activity-fields {
    display: grid;
    gap: 1rem;
}

.wholesale-customer-activity-section {
    min-width: 0;
    margin: 0;
    padding: 0 0 1rem;
    border: 0;
    border-bottom: 1px solid rgba(3, 3, 5, 0.09);
}

.wholesale-customer-activity-section--last {
    padding-bottom: 0;
    border-bottom: 0;
}

.wholesale-customer-activity-section legend {
    float: none;
    width: auto;
    margin: 0 0 0.15rem;
    color: #30343b;
    font-size: 0.78rem;
    font-weight: 720;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.wholesale-customer-activity-section > p {
    margin: 0 0 0.8rem;
    color: #747983;
    font-size: 0.82rem;
    line-height: 1.4;
}

.wholesale-customer-activity-form .form-control,
.wholesale-customer-activity-form .form-select {
    min-height: 44px;
}

.wholesale-customer-activity-submit {
    min-height: 48px;
    min-width: 132px;
    justify-self: start;
}

.wholesale-customer-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #30343b;
    font-weight: 560;
    text-decoration: none;
}

.k-timeline.wholesale-account-timeline {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.k-timeline.wholesale-account-timeline::before {
    content: "";
    position: absolute;
    top: 1.05rem;
    bottom: 1.05rem;
    left: 1rem;
    width: 2px;
    background: #dfe1e5;
}

.k-timeline__item.wholesale-account-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.85rem;
    padding-bottom: 1.1rem;
}

.k-timeline__item.wholesale-account-timeline__item:last-child {
    padding-bottom: 0;
}

.k-timeline__marker.wholesale-account-timeline__marker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #30343b;
    color: #ffffff;
    box-shadow: 0 0 0 1px #d4d7dc;
}

.wholesale-account-timeline__item[data-activity-type="order"] .wholesale-account-timeline__marker {
    background: #176b3a;
}

.wholesale-account-timeline__item[data-activity-type="email"] .wholesale-account-timeline__marker,
.wholesale-account-timeline__item[data-activity-type="text"] .wholesale-account-timeline__marker {
    background: #385f8e;
}

.wholesale-account-timeline__item[data-activity-type="call"] .wholesale-account-timeline__marker,
.wholesale-account-timeline__item[data-activity-type="meeting"] .wholesale-account-timeline__marker {
    background: #735100;
}

.k-timeline__content.wholesale-account-timeline__content {
    min-width: 0;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(3, 3, 5, 0.08);
    border-radius: 14px;
    background: #ffffff;
}

.wholesale-account-timeline__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.wholesale-account-timeline__badges .badge {
    font-size: 0.7rem;
    font-weight: 680;
    letter-spacing: 0.025em;
}

.wholesale-account-timeline__title {
    margin: 0.45rem 0 0;
    color: #20242a;
    font-size: 1.08rem;
    font-weight: 680;
    line-height: 1.3;
}

.wholesale-account-timeline__time {
    flex: 0 0 auto;
    color: #6b707a;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.wholesale-account-timeline__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin-top: 0.5rem;
    color: #858a93;
    font-size: 0.78rem;
}

.wholesale-account-timeline__meta span + span::before {
    content: "•";
    margin-right: 0.9rem;
    color: #a0a4ab;
}

.wholesale-account-timeline__details,
.wholesale-account-timeline__outcome {
    margin: 0.8rem 0 0;
    color: #3d4148;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.wholesale-account-timeline__outcome {
    padding: 0.65rem 0.75rem;
    border-left: 3px solid #ffc43a;
    background: #fffaf0;
}

.wholesale-account-timeline__record-link {
    display: inline-flex;
    margin-top: 0.8rem;
    color: #030305;
    font-weight: 600;
    text-underline-offset: 0.2em;
}

@media (max-width: 991.98px) {
    .k-stat-list__item.wholesale-customer-insight {
        grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
    }

    .wholesale-customer-insight__context {
        grid-column: 1 / -1;
    }

    .wholesale-customer-detail__layout {
        grid-template-columns: 1fr;
    }

    .wholesale-customer-activity-form {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 767.98px) {
    .wholesale-customer-detail__header,
    .k-stat-list__item.wholesale-customer-insight {
        grid-template-columns: 1fr;
    }

    .wholesale-customer-insight__status,
    .wholesale-customer-insight__context {
        grid-column: auto;
    }

    .wholesale-customer-insight__context {
        grid-template-columns: 1fr;
    }

    .wholesale-account-timeline__header {
        display: grid;
    }

    .wholesale-account-timeline__time {
        grid-row: 1;
    }
}

@media (max-width: 575.98px) {
    .k-stat-list__item.wholesale-customer-insight,
    .k-timeline__content.wholesale-account-timeline__content {
        padding: 0.95rem;
    }

    .k-timeline.wholesale-account-timeline::before {
        left: 0.87rem;
    }

    .k-timeline__item.wholesale-account-timeline__item {
        grid-template-columns: 1.8rem minmax(0, 1fr);
        gap: 0.65rem;
    }

    .k-timeline__marker.wholesale-account-timeline__marker {
        width: 1.75rem;
        height: 1.75rem;
    }
}

.wholesale-auth-panel {
    padding: clamp(1.4rem, 2vw, 2.1rem);
}

.wholesale-auth-panel__intro {
    max-width: 720px;
}

.wholesale-auth-panel__intro h1 {
    font-family: "Rubik", sans-serif;
    font-size: clamp(1.9rem, 3vw, 3rem);
    font-weight: 430;
    letter-spacing: 0.01em;
    line-height: 1.04;
}

.wholesale-auth-panel .lead {
    font-size: clamp(0.98rem, 1.45vw, 1.18rem);
    font-weight: 340;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: #6b707a;
}

.wholesale-auth-choice-card {
    border: 1px solid rgba(3, 3, 5, 0.06) !important;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(3, 3, 5, 0.035);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.wholesale-auth-choice-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(3, 3, 5, 0.05);
    border-color: rgba(3, 3, 5, 0.1) !important;
}

.wholesale-auth-choice-card h2 {
    font-family: "Rubik", sans-serif;
    font-size: clamp(1.3rem, 1.85vw, 1.7rem);
    font-weight: 430;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #030305;
}

.wholesale-auth-choice-card p {
    font-size: 0.96rem;
    line-height: 1.5;
    color: #6b707a !important;
}

.wholesale-auth-section {
    display: grid;
    gap: 0.95rem;
}

.wholesale-auth-section + .wholesale-auth-section {
    padding-top: 1.35rem;
    border-top: 1px solid rgba(3, 3, 5, 0.07);
}

.wholesale-auth-section__label {
    font-size: 0.76rem;
    font-weight: 560;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5e636d;
}

.wholesale-auth-label {
    margin-bottom: 0.38rem;
    font-size: 1rem;
    font-weight: 430;
    letter-spacing: 0.02em;
    color: #373a43;
}

.wholesale-auth-control {
    min-height: 3rem;
    border-radius: 14px;
    border-color: rgba(3, 3, 5, 0.1);
    padding-inline: 0.95rem;
    box-shadow: none;
}

.wholesale-auth-control:focus,
.wholesale-auth-panel .form-check-input:focus {
    border-color: rgba(3, 3, 5, 0.25);
    box-shadow: 0 0 0 0.24rem rgba(3, 3, 5, 0.08);
}

.wholesale-auth-panel .form-select.wholesale-auth-control {
    padding-right: 2.5rem;
}

.wholesale-auth-panel .form-text {
    margin-top: 0.38rem;
    font-size: 0.76rem;
    font-weight: 360;
    color: #6b707a;
}

.wholesale-auth-inline-toggle .form-check-input {
    margin-top: 0;
}

.wholesale-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    min-width: 210px;
    border-radius: 14px;
    font-family: "Rubik", sans-serif;
    font-size: 0.98rem;
    font-weight: 470;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
}

.wholesale-auth-btn--primary {
    box-shadow: 0 10px 20px rgba(3, 3, 5, 0.12);
}

.wholesale-auth-actions {
    padding-top: 0.35rem;
}

.wholesale-auth-actions .small,
.wholesale-auth-panel .small {
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.wholesale-preview-banner {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 1200;
    margin: 0;
    max-width: min(420px, calc(100vw - 2.5rem));
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    background: rgba(255, 255, 255, 0.82);
    color: #030305;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(3, 3, 5, 0.1);
}

.wholesale-welcome-shell {
    display: grid;
    gap: 1.4rem;
}

.wholesale-welcome-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.35rem;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(255, 196, 58, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 249, 0.95));
}

.wholesale-welcome-hero__icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2f8d46;
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 16px 32px rgba(47, 141, 70, 0.18);
}

.wholesale-welcome-hero__eyebrow {
    font-size: 0.76rem;
    font-weight: 560;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5e636d;
    margin-bottom: 0.55rem;
}

.wholesale-welcome-hero h1 {
    margin: 0;
    font-family: "Rubik", sans-serif;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    font-weight: 430;
    line-height: 1.02;
    letter-spacing: 0.01em;
    color: #030305;
}

.wholesale-welcome-hero p {
    margin: 0.7rem 0 0;
    max-width: 56rem;
    font-size: 1rem;
    font-weight: 350;
    line-height: 1.55;
    color: #666b75;
}

.wholesale-welcome-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wholesale-welcome-card {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-height: 100%;
}

.wholesale-welcome-card__content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.wholesale-welcome-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

.wholesale-welcome-card--certificate .wholesale-welcome-card__icon {
    background: rgba(255, 196, 58, 0.2);
    color: #a86d00;
}

.wholesale-welcome-card--catalog .wholesale-welcome-card__icon {
    background: rgba(47, 141, 70, 0.14);
    color: #2f8d46;
}

.wholesale-welcome-card--profile .wholesale-welcome-card__icon {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.wholesale-welcome-card__content h2 {
    margin: 0 0 0.55rem;
    font-family: "Rubik", sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    font-weight: 430;
    line-height: 1.08;
    color: #030305;
}

.wholesale-welcome-card__content p {
    margin: 0 0 1rem;
    font-size: 0.96rem;
    line-height: 1.52;
    color: #666b75;
}

.wholesale-welcome-card__action {
    margin-top: auto;
    padding-inline: 1rem;
    border-radius: 10px;
    font-family: "Rubik", sans-serif;
    font-weight: 470;
}

.wholesale-catalog-toolbar {
    --wholesale-catalog-collapse-distance: 8.65rem;
    display: grid;
    grid-template-columns: max-content 34px minmax(0, 1fr) max-content;
    grid-template-rows: 114px auto;
    grid-template-areas:
        "brand brand brand brand"
        "nav account tiers end";
    align-items: center;
    gap: 1.25rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    isolation: isolate;
    width: 100%;
    padding: 0.9rem 1.5rem;
    margin-bottom: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.wholesale-catalog-toolbar::before {
    content: "";
    position: absolute;
    top: var(--wholesale-catalog-collapse-distance);
    right: 0;
    left: 0;
    z-index: -1;
    height: 5.25rem;
    border-bottom: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
    background: var(--wholesale-toolbar-bg, rgba(243, 243, 245, 0.96));
    box-shadow: 0 10px 28px var(--wholesale-shadow, rgba(3, 3, 5, 0.08));
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
    will-change: opacity;
}

.wholesale-catalog-toolbar > * {
    pointer-events: auto;
}

body.wholesale-portal-body .wholesale-catalog-toolbar.is-scrolled {
    border-bottom-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: translate3d(0, calc(var(--wholesale-catalog-collapse-distance) * -1), 0);
}

.wholesale-catalog-toolbar.is-scrolled::before {
    opacity: 1;
}

.wholesale-catalog-brand {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    min-width: 0;
    max-width: min(600px, 72vw);
    height: 114px;
    overflow: hidden;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center top;
    transition:
        opacity 260ms ease,
        transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.wholesale-catalog-brand__logo {
    display: block;
    width: auto;
    max-width: min(600px, 72vw);
    height: 114px;
    object-fit: contain;
}

.wholesale-catalog-brand__logo--dark {
    display: none;
}

html[data-wholesale-theme="dark"] .wholesale-catalog-brand__logo--light {
    display: none;
}

html[data-wholesale-theme="dark"] .wholesale-catalog-brand__logo--dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    html[data-wholesale-theme="system"] .wholesale-catalog-brand__logo--light {
        display: none;
    }

    html[data-wholesale-theme="system"] .wholesale-catalog-brand__logo--dark {
        display: block;
    }
}

.wholesale-catalog-brand__fallback {
    color: #111318;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.wholesale-catalog-toolbar.is-scrolled .wholesale-catalog-brand {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -8px, 0) scale(0.0088);
}

.wholesale-catalog-toolbar__end {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wholesale-catalog-toolbar__start {
    display: contents;
}

.wholesale-tier-copy {
    grid-area: tiers;
    align-self: center;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
    transform: translate3d(clamp(11rem, 14vw, 15rem), 0, 0);
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.wholesale-catalog-toolbar.is-scrolled .wholesale-tier-copy {
    transform: translate3d(0, 0, 0);
}

.wholesale-catalog-toolbar__end {
    grid-area: end;
    position: relative;
    z-index: 2;
    align-self: center;
    justify-self: end;
    transform: translate3d(0, calc(var(--wholesale-catalog-collapse-distance) * -1), 0);
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.wholesale-catalog-toolbar.is-scrolled .wholesale-catalog-toolbar__end {
    transform: translate3d(0, 0, 0);
}

.wholesale-catalog-nav .wholesale-catalog-nav__link,
.wholesale-account-menu__toggle,
.wholesale-catalog-total__bubble,
.wholesale-catalog-checkout-bubble {
    border-radius: 10px;
}

.wholesale-catalog-nav {
    grid-area: nav;
    align-self: center;
    display: flex;
    flex-wrap: nowrap;
}

.wholesale-catalog-nav .wholesale-catalog-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    font-family: "Rubik", sans-serif;
    font-size: clamp(9px, 1.1vw, 19px);
    font-weight: 430;
    color: #fff;
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    padding: 0.45rem 1.05rem;
    opacity: 0.82;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        opacity 160ms ease;
}

.wholesale-catalog-nav .wholesale-catalog-nav__link:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.wholesale-catalog-nav .wholesale-catalog-nav__link:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.wholesale-catalog-nav .wholesale-catalog-nav__link:hover,
.wholesale-catalog-nav .wholesale-catalog-nav__link:focus {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: #fff;
    opacity: 1;
}

.wholesale-catalog-nav .wholesale-catalog-nav__link.is-active {
    background: #14325f;
    border-color: #14325f;
    color: #fff;
    opacity: 1;
}

.wholesale-account-shortcuts {
    grid-area: account;
    align-self: center;
    justify-self: start;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    width: max-content;
    min-width: 0;
    padding: 0.2rem;
    border: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
    border-radius: 12px;
    background: var(--wholesale-surface, rgba(255, 255, 255, 0.88));
    box-shadow: 0 8px 20px var(--wholesale-shadow, rgba(3, 3, 5, 0.08));
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: left center;
    transition:
        opacity 220ms ease,
        transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.wholesale-account-shortcuts__icon,
.wholesale-account-shortcuts__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 9px;
}

.wholesale-account-shortcuts__icon {
    width: 34px;
    flex: 0 0 34px;
    background: #14325f;
    color: #eef4ff;
    font-size: 1.15rem;
    cursor: default;
    user-select: none;
}

.wholesale-account-shortcuts__link {
    padding: 0.42rem 0.72rem;
    color: var(--wholesale-text, #030305);
    font-size: 0.82rem;
    font-weight: 560;
    line-height: 1;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.wholesale-account-shortcuts__link:hover,
.wholesale-account-shortcuts__link:focus {
    background: var(--wholesale-surface-hover, #f0f1f3);
    color: var(--wholesale-text-strong, #111318);
}

.wholesale-account-shortcuts__link:focus-visible {
    outline: 3px solid #ffc43a;
    outline-offset: 2px;
}

.wholesale-account-menu {
    grid-area: account;
    position: relative;
    z-index: 2;
    align-self: center;
    justify-self: start;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.82);
    transform-origin: center;
    transition:
        opacity 300ms ease,
        transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 400ms;
}

.wholesale-catalog-toolbar.is-scrolled .wholesale-account-shortcuts {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -4px, 0) scale(0.94);
}

.wholesale-catalog-toolbar.is-scrolled .wholesale-account-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    transition-delay: 100ms, 0ms, 0s;
}

.wholesale-account-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    min-width: 34px;
    min-height: 34px;
    padding: 0.2rem 0.45rem;
    font-size: 1.35rem;
    line-height: 1;
    color: #eef4ff;
    background: #14325f;
    border-color: #14325f;
    box-shadow: 0 10px 20px rgba(20, 50, 95, 0.2);
}

.wholesale-account-menu__toggle::after {
    display: none;
}

.wholesale-account-menu__toggle:hover,
.wholesale-account-menu__toggle:focus,
.wholesale-account-menu__toggle:active {
    color: #ffffff;
    background: #1a427d;
    border-color: #1a427d;
}

.wholesale-tier-copy {
    display: grid;
    gap: 0.18rem;
    justify-items: center;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.wholesale-tier-copy__tier {
    transition: color 180ms ease;
}

.wholesale-tier-copy__tier--reached {
    color: #2f8d46;
}

.wholesale-tier-copy__tier--next {
    color: #030305;
}

.wholesale-tier-copy__tier--future {
    color: #9e9e9e;
}

.wholesale-tier-copy strong {
    font-weight: 460;
}

.wholesale-tier-copy__mobile {
    display: none;
}

.wholesale-catalog-minimum-order__label--mobile {
    display: none;
}

@media (max-width: 1130px) {
    .wholesale-tier-copy__desktop {
        display: none;
    }

    .wholesale-tier-copy__mobile {
        display: inline;
    }

    .wholesale-catalog-minimum-order__label--desktop {
        display: none;
    }

    .wholesale-catalog-minimum-order__label--mobile {
        display: inline;
    }

    .wholesale-catalog-total__label {
        display: none;
    }
}

.wholesale-catalog-total {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.wholesale-catalog-checkout-cta {
    display: flex;
    align-items: center;
}

.wholesale-catalog-checkout-cta.is-minimum-reached .wholesale-catalog-minimum-order {
    display: none;
}

.wholesale-catalog-checkout-cta.is-minimum-unreached .wholesale-catalog-checkout-bubble {
    display: none;
}

.wholesale-catalog-total__label {
    font-size: 1.05rem;
    font-weight: 300;
    color: #757575;
}

.wholesale-catalog-total__bubble,
.wholesale-catalog-checkout-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    font-weight: 470;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(3, 3, 5, 0.12);
}

.wholesale-money {
    display: inline-flex;
    align-items: flex-start;
    line-height: 1;
    white-space: nowrap;
}

.wholesale-money__sign,
.wholesale-money__symbol,
.wholesale-money__whole {
    display: inline-block;
}

.wholesale-money__cents {
    font-size: 0.48em;
    line-height: 1;
    vertical-align: super;
    margin-left: 0.06em;
    top: -0.08em;
    position: relative;
}

.wholesale-money-range-separator {
    color: currentColor;
    opacity: 0.72;
}

.wholesale-catalog-total__bubble .wholesale-money__cents {
    font-size: 0.42em;
}

.wholesale-catalog-total__bubble {
    background: #2f8d46;
    color: #fff;
    font-size: clamp(1.15rem, 1.55vw, 1.65rem);
    letter-spacing: -0.03em;
}

.wholesale-catalog-checkout-bubble {
    background: #ffc43a;
    color: #2f2410;
    font-size: 1.15rem;
}

.wholesale-catalog-minimum-order {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 10px;
    background: rgba(255, 196, 58, 0.18);
    color: #2f2410;
}

.wholesale-catalog-minimum-order__label {
    font-size: 0.82rem;
    font-weight: 360;
    line-height: 1.1;
}

.wholesale-catalog-minimum-order__amount {
    font-size: 1.2rem;
    font-weight: 480;
    line-height: 1;
}

.wholesale-catalog-minimum-order__amount .wholesale-money__cents {
    font-size: 0.42em;
}

.wholesale-catalog-minimum-progress {
    display: block;
    flex-basis: 100%;
    width: 100%;
}

.wholesale-catalog-minimum-progress__track {
    display: block;
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(47, 36, 16, 0.16);
}

.wholesale-catalog-minimum-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #c58d00;
    transition: width 240ms ease-out;
}

.wholesale-catalog-checkout-bubble:hover,
.wholesale-catalog-checkout-bubble:focus {
    color: #2f2410;
    background: #ffcf5c;
    text-decoration: none;
}

.wholesale-catalog-list {
    display: grid;
    gap: 2rem;
    padding: 0 1.5rem;
}

.wholesale-catalog-category-sentinel {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.wholesale-catalog-end-sentinel {
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.wholesale-catalog-category-heading {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    scroll-margin-top: calc(var(--wholesale-catalog-visible-toolbar-height, var(--wholesale-catalog-sticky-offset)) + 20px);
    background: var(--wholesale-page-bg, #f3f3f5);
}

.wholesale-catalog-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.55rem, 1.2vw, 0.9rem);
    width: 100%;
    margin: clamp(1.25rem, 2.6vw, 2.25rem) 0;
    color: var(--wholesale-text-strong, #111318);
    font-family: "Rubik", sans-serif;
    font-size: clamp(1.7rem, 3.8vw, 4.45rem);
    font-weight: 250;
    letter-spacing: clamp(0.035em, 0.12vw, 0.075em);
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.6;
}

.wholesale-catalog-section-title::before,
.wholesale-catalog-section-title::after {
    content: "–";
    color: var(--wholesale-text-muted, #666b75);
    font-weight: 400;
}

.wholesale-product-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 30%) minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    scroll-margin-top: calc(var(--wholesale-catalog-visible-toolbar-height, var(--wholesale-catalog-sticky-offset)) + 20px);
    background: #f1f1f1;
    padding: 1rem;
    border-radius: 24px;
}

.wholesale-product-row.is-deep-link-highlight {
    outline: 3px solid #c58d00;
    outline-offset: -3px;
}

@media (prefers-reduced-motion: no-preference) {
    .wholesale-product-row.is-deep-link-highlight {
        animation: wholesale-product-deep-link-scale 950ms ease-in-out 1;
        transform-origin: center top;
    }

    @keyframes wholesale-product-deep-link-scale {
        0%, 100% { transform: scale(1); }
        45% { transform: scale(1.015); }
    }
}

.wholesale-product-row:nth-child(odd) {
    background: #f3f3f5;
}

body.wholesale-portal-body .wholesale-product-row--plain {
    --wholesale-quantity-input-bg: inherit;
    --wholesale-control-bg: inherit;
    --wholesale-control-hover: inherit;
    background: var(--wholesale-page-bg, #f3f3f5);
}

body.wholesale-portal-body .wholesale-product-row--striped {
    --wholesale-quantity-input-bg: var(--wholesale-quantity-input-striped-bg, #ffffff);
    --wholesale-control-bg: var(--wholesale-quantity-button-striped-bg, #e6e6e6);
    --wholesale-control-hover: var(--wholesale-quantity-button-striped-hover, #dadada);
    background: var(--wholesale-product-row-bg, #f1f1f1);
}

@media (prefers-reduced-motion: no-preference) {
    .wholesale-product-row.is-entry-pending,
    .wholesale-product-row.is-entry-visible {
        transition: opacity 200ms ease-out, transform 200ms ease-out;
    }

    .wholesale-product-row.is-entry-pending {
        opacity: 0;
        transform: translateY(6px);
    }

    .wholesale-product-row.is-entry-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

.wholesale-product-card {
    position: sticky;
    top: var(--wholesale-catalog-sticky-offset);
    align-self: start;
    z-index: 2;
    background: transparent;
    border-radius: 24px;
    padding: 1rem;
}

.wholesale-product-card__sticky {
    position: static;
    top: auto;
    z-index: auto;
}

.wholesale-product-card__primary {
    display: grid;
    gap: 0.85rem;
}

.wholesale-product-card__content {
    display: grid;
    gap: 0.45rem;
}

.wholesale-product-card h2 {
    margin: 0.95rem 0 0.35rem;
    font-family: "Rubik", sans-serif;
    font-size: clamp(12px, 2.6vw, 26px);
    font-weight: 360;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.wholesale-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.45rem;
}

.wholesale-product-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.wholesale-product-msrp {
    color: #7a7f88;
    font-size: 0.92rem;
    font-weight: 500;
}

.wholesale-product-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
    margin-top: 0.85rem;
}

.wholesale-product-gallery__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 5px;
}

.wholesale-product-gallery__thumb:hover,
.wholesale-product-gallery__thumb:focus-visible {
    transform: scale(1.04);
    box-shadow: 0 10px 26px rgba(3, 3, 5, 0.16);
}

.wholesale-product-card__image-trigger:hover .wholesale-product-card__image,
.wholesale-product-card__image-trigger:focus-visible .wholesale-product-card__image,
.wholesale-family-card__image-trigger:hover .wholesale-family-card__image,
.wholesale-family-card__image-trigger:focus-visible .wholesale-family-card__image {
    transform: scale(1.04);
}

.wholesale-product-gallery__thumb-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.wholesale-product-card__image-wrap {
    overflow: hidden;
}

.wholesale-image-modal-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: inherit;
}

.wholesale-product-card__image-trigger {
    width: 100%;
    max-width: 100%;
}

.wholesale-family-card__image-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.wholesale-image-frame {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #e5e7eb;
}

.wholesale-product-card__image-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.wholesale-image-frame [data-wholesale-image] {
    position: relative;
    z-index: 1;
    opacity: 0;
}

.wholesale-image-frame[data-image-state="loaded"] [data-wholesale-image] {
    opacity: 1;
}

.wholesale-image-placeholder,
.wholesale-image-error {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
}

.wholesale-image-placeholder {
    background: linear-gradient(135deg, #eceef1, #dfe2e7);
    opacity: 1;
    pointer-events: none;
}

.wholesale-image-placeholder__pulse {
    width: clamp(1.8rem, 18%, 3.4rem);
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
}

.wholesale-image-frame[data-image-state="loaded"] .wholesale-image-placeholder,
.wholesale-image-frame[data-image-state="error"] .wholesale-image-placeholder {
    opacity: 0;
}

.wholesale-image-error {
    gap: 0.4rem;
    align-content: center;
    padding: 0.75rem;
    background: #eceef1;
    color: #5f6570;
    font-size: 0.78rem;
    font-weight: 550;
    line-height: 1.25;
    text-align: center;
}

.wholesale-image-error[hidden] {
    display: none;
}

.wholesale-image-error i {
    font-size: 1.25rem;
}

.wholesale-product-gallery__thumb .wholesale-image-error {
    padding: 0.25rem;
}

.wholesale-product-gallery__thumb .wholesale-image-error span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .wholesale-product-gallery__thumb {
        transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .wholesale-image-frame [data-wholesale-image] {
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .wholesale-image-placeholder {
        transition: opacity 180ms ease;
    }

    .wholesale-image-placeholder__pulse {
        animation: wholesale-image-placeholder-pulse 1.4s ease-in-out infinite;
    }
}

@keyframes wholesale-image-placeholder-pulse {
    50% {
        transform: scale(0.92);
        box-shadow: 0 0 0 0.65rem rgba(255, 255, 255, 0);
    }
}

.wholesale-product-card__image-debug {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.44);
    color: #6d737d;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.wholesale-family-card__image-debug {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(150px, 100%);
    min-height: 150px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.44);
    color: #6d737d;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

.wholesale-image-debug-output {
    width: 100%;
    min-width: 0;
    min-height: 200px;
    height: 200px;
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(3, 3, 5, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    color: #030305;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 16px;
    line-height: 1.35;
    resize: vertical;
}

.wholesale-product-card__gradient {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.1), transparent);
}

.wholesale-product-card__image,
.wholesale-variant-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.wholesale-product-variants {
    display: grid;
    gap: 1.65rem;
    justify-items: start;
}

.wholesale-family-card {
    display: grid;
    grid-template-columns: minmax(220px, 260px) max-content;
    justify-content: start;
    gap: 1.5rem;
    align-items: start;
    padding: 0.35rem 0;
}

.wholesale-family-card__media {
    display: grid;
    width: min(250px, 100%);
    justify-items: center;
    justify-self: center;
    text-align: center;
    gap: 0.5rem;
}

.wholesale-family-card__content {
    display: grid;
    align-items: start;
    justify-items: end;
    justify-self: end;
}

.wholesale-family-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-height: none;
}

body.wholesale-portal-body .modal {
    --bs-modal-zindex: 1500;
    z-index: var(--bs-modal-zindex);
}

body.wholesale-portal-body .modal-backdrop {
    --bs-backdrop-zindex: 1490;
    z-index: var(--bs-backdrop-zindex);
}

.wholesale-gallery-modal__dialog {
    max-width: min(1100px, calc(100vw - 1.5rem));
}

.wholesale-gallery-modal__content {
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 80px rgba(3, 3, 5, 0.22);
}

.wholesale-gallery-modal__header {
    border-bottom: 0;
    padding: 0.85rem 1rem 0;
}

.wholesale-gallery-modal__title {
    font-family: "Rubik", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wholesale-gallery-modal__body {
    padding: 0.5rem 1rem 1rem;
}

.wholesale-gallery-modal__carousel {
    border-radius: 14px;
    overflow: hidden;
    background: #eef0f4;
}

.wholesale-gallery-modal__inner {
    min-height: min(78vh, 860px);
}

.wholesale-gallery-modal__carousel .carousel-item {
    min-height: min(78vh, 860px);
    padding: 1rem;
}

.wholesale-gallery-modal__carousel.carousel-fade .carousel-item {
    transform: none;
    transition: opacity 150ms ease;
}

.wholesale-gallery-modal__carousel.carousel-fade .carousel-item.active,
.wholesale-gallery-modal__carousel.carousel-fade .carousel-item-next.carousel-item-start,
.wholesale-gallery-modal__carousel.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.wholesale-gallery-modal__image-frame {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: min(74vh, 820px);
    background: #eef0f4;
}

.wholesale-gallery-modal__image {
    width: 100%;
    height: min(74vh, 820px);
    max-height: min(74vh, 820px);
    object-fit: contain;
    object-position: center;
}

.wholesale-gallery-modal__control {
    width: 12%;
}

.wholesale-gallery-modal__control .carousel-control-prev-icon,
.wholesale-gallery-modal__control .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background-color: rgba(3, 3, 5, 0.44);
    background-size: 58%;
}

.wholesale-gallery-modal__indicators {
    margin-bottom: 1.2rem;
    gap: 0.42rem;
}

.wholesale-gallery-modal__indicators [data-bs-target] {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background-color: rgba(3, 3, 5, 0.28);
    border-top: 0;
    border-bottom: 0;
}

.wholesale-gallery-modal__indicators .active {
    background-color: rgba(3, 3, 5, 0.72);
}

@media (max-width: 767.98px) {
    .wholesale-product-gallery {
        gap: 0.4rem;
    }
}

.wholesale-family-card__details {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
}

.wholesale-family-card__title {
    font-size: clamp(18px, 1.5vw, 90px);
    font-weight: 440;
    line-height: 1.2;
}

.wholesale-family-card__price {
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    font-weight: 380;
    letter-spacing: 0.02em;
    color: #030305;
}

.wholesale-family-card__price-stack {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
}

.wholesale-family-card__price-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.35rem 1rem;
    border-radius: 14px;
    background: #ffc43a;
    color: #2f2410;
    font-size: clamp(12px, 2.3vw, 30px);
    font-weight: 600;
    line-height: 1;
}

.wholesale-price--sale {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    color: #999999;
    font-weight: 460;
}

.wholesale-price--sale span {
    color: #999999;
}

.wholesale-price--sale s {
    color: #999999;
    text-decoration: line-through;
}

.wholesale-price--sale s .wholesale-money,
.wholesale-price--sale s .wholesale-money__sign,
.wholesale-price--sale s .wholesale-money__symbol,
.wholesale-price--sale s .wholesale-money__whole,
.wholesale-price--sale s .wholesale-money__cents {
    color: inherit;
    text-decoration: inherit;
}

.wholesale-family-card__controls {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    justify-self: end;
    width: max-content;
}

.wholesale-size-row {
    display: grid;
    grid-template-columns: minmax(40px, 56px) minmax(126px, 142px) 72px;
    align-items: center;
    gap: 0.7rem;
}

.wholesale-size-row__label {
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1;
    text-align: right;
    letter-spacing: -0.03em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wholesale-size-row__notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: auto;
    max-width: 72px;
    min-height: 30px;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: #6c6c6c;
    color: #F3F3F5;
    font-size: clamp(8px, 1vw, 15px);
    font-weight: 420;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease;
}

.wholesale-size-row__notice--hidden {
    opacity: 0;
    transform: translateY(2px);
}

.wholesale-size-row__notice--visible {
    opacity: 1;
    transform: translateY(0);
}

.wholesale-quantity-form--catalog {
    display: grid;
    grid-template-columns: 38px minmax(50px, 66px) 38px;
    gap: 0;
    align-items: stretch;
}

.wholesale-quantity-form__button,
.wholesale-quantity-form__input {
    min-height: 32px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.wholesale-quantity-form__button {
    background: #e6e6e6;
    color: #a6a6a6;
    font-size: 1.55rem;
    line-height: 1;
    padding: 0;
}

.wholesale-quantity-form__button:first-of-type {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.wholesale-quantity-form__button:last-of-type {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.wholesale-quantity-form__button:hover,
.wholesale-quantity-form__button:focus {
    background: #dadada;
    color: #030305;
}

.wholesale-quantity-form__button:disabled,
.wholesale-quantity-form__input:disabled {
    background: #d3d3d3;
    color: #8d8d8d;
}

.wholesale-quantity-form__input {
    background: #ffffff;
    text-align: center;
    font-size: 1.23rem;
    font-weight: 460;
    padding: 0.08rem 0.35rem;
    appearance: textfield;
    -moz-appearance: textfield;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.wholesale-size-row.is-save-confirmed .wholesale-quantity-form__input {
    background: #e7f5ea;
    box-shadow: inset 0 0 0 2px rgba(47, 141, 70, 0.18);
}

.wholesale-quantity-form__input::-webkit-outer-spin-button,
.wholesale-quantity-form__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wholesale-quantity-form__input:focus {
    border: 0;
    box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.16);
}

.wholesale-family-card__subtotal {
    display: grid;
    grid-template-columns: minmax(40px, 56px) minmax(126px, 142px) 72px;
    justify-content: initial;
    align-items: baseline;
    gap: 0.55rem;
    margin-top: 0.35rem;
    color: #8f8f93;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 1;
    transition: opacity 220ms ease;
}

.wholesale-family-card__subtotal--empty {
    opacity: 0;
}

.wholesale-family-card__subtotal span,
.wholesale-family-card__subtotal strong {
    grid-column: 2;
}

.wholesale-family-card__subtotal span {
    display: inline-flex;
    align-items: baseline;
    justify-self: center;
    gap: 0.55rem;
    white-space: nowrap;
    font-weight: 480;
}

.wholesale-family-card__subtotal strong {
    font-size: clamp(1.32rem, 1.92vw, 1.88rem);
    font-weight: 520;
    letter-spacing: -0.04em;
    color: #7c7d80;
}

.wholesale-family-card__subtotal strong .wholesale-money,
.wholesale-family-card__subtotal strong .wholesale-money__sign,
.wholesale-family-card__subtotal strong .wholesale-money__symbol,
.wholesale-family-card__subtotal strong .wholesale-money__whole,
.wholesale-family-card__subtotal strong .wholesale-money__cents {
    font-weight: 448;
}

@media (max-width: 991.98px) {
    .wholesale-welcome-grid {
        grid-template-columns: 1fr;
    }

    .wholesale-shell-main--catalog {
        padding-bottom: 1rem;
    }

    .wholesale-catalog-page {
        padding-top: 15.5rem;
    }

    .wholesale-catalog-page.is-toolbar-scrolled {
        padding-top: 15.5rem;
    }

    .wholesale-catalog-toolbar,
    .wholesale-catalog-list {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .wholesale-catalog-nav {
        flex-wrap: wrap;
    }

    .wholesale-catalog-toolbar__start,
    .wholesale-tier-copy,
    .wholesale-catalog-toolbar__end {
        justify-content: flex-start;
        justify-self: stretch;
        flex-wrap: wrap;
    }

    .wholesale-tier-copy {
        display: grid;
        justify-items: start;
        text-align: left;
    }

    .wholesale-product-card {
        position: static;
        top: auto;
    }

    .wholesale-product-card__sticky {
        position: static;
        top: auto;
        z-index: auto;
    }

    .wholesale-welcome-hero {
        grid-template-columns: 1fr;
    }

    .wholesale-welcome-hero__icon {
        width: 68px;
        height: 68px;
    }

    .wholesale-shell-main {
        padding: 1rem;
    }

    .wholesale-auth-shell {
        padding: 0 0 1.5rem;
    }

    .wholesale-auth-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .wholesale-catalog-toolbar {
        padding: 0.65rem max(0.35rem, env(safe-area-inset-right)) 0.65rem max(0.35rem, env(safe-area-inset-left));
    }

    .wholesale-catalog-list {
        padding-left: 2vw;
        padding-right: 2vw;
    }

    .wholesale-catalog-toolbar,
    .wholesale-shell-header {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .wholesale-gallery-modal__body {
        padding: 0.35rem 0.75rem 0.75rem;
    }

    .wholesale-gallery-modal__inner,
    .wholesale-gallery-modal__carousel .carousel-item {
        min-height: 0;
    }

    .wholesale-gallery-modal__carousel .carousel-item {
        padding: 0.5rem 0.5rem 1.75rem;
    }

    .wholesale-gallery-modal__image-frame {
        min-height: min(62vh, 420px);
    }

    .wholesale-gallery-modal__image {
        height: min(62vh, 420px);
        max-height: min(62vh, 420px);
    }

    .wholesale-gallery-modal__indicators {
        margin-bottom: 0.55rem;
    }

    .wholesale-catalog-page {
        padding-top: 18rem;
    }

    .wholesale-catalog-page.is-toolbar-scrolled {
        padding-top: 18rem;
    }

    .wholesale-catalog-toolbar,
    body.wholesale-portal-body .wholesale-catalog-toolbar.is-scrolled {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto;
        grid-template-areas:
            "nav nav nav"
            "account tiers end";
        align-items: center;
        gap: 0.6rem 0.5rem;
        padding: 0.65rem max(0.35rem, env(safe-area-inset-right)) 0.65rem max(0.35rem, env(safe-area-inset-left));
        transform: none;
        transition: none;
    }

    .wholesale-catalog-toolbar::before {
        display: none;
    }

    body.wholesale-portal-body .wholesale-catalog-toolbar.is-scrolled {
        border-bottom: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
        background: var(--wholesale-toolbar-bg, rgba(243, 243, 245, 0.96));
        box-shadow: 0 10px 28px var(--wholesale-shadow, rgba(3, 3, 5, 0.08));
    }

    .wholesale-catalog-toolbar:not(.is-scrolled) {
        grid-template-areas:
            "brand brand brand"
            "nav nav nav"
            "shortcuts shortcuts shortcuts"
            "tiers tiers end";
    }

    .wholesale-catalog-toolbar__start {
        display: contents;
    }

    .wholesale-catalog-toolbar__end,
    body.wholesale-portal-body .wholesale-catalog-toolbar.is-scrolled .wholesale-catalog-toolbar__end {
        position: static;
        top: auto;
        right: auto;
        opacity: 1;
        transform: none;
    }

    .wholesale-catalog-toolbar.is-scrolled .wholesale-catalog-brand {
        display: none;
    }

    .wholesale-account-shortcuts {
        max-width: none;
        overflow: visible;
        opacity: 1;
        transform: none;
    }

    .wholesale-catalog-toolbar.is-scrolled .wholesale-account-shortcuts {
        display: none;
    }

    .wholesale-account-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .wholesale-catalog-toolbar.is-scrolled .wholesale-account-menu {
        display: block;
        transform: none;
    }

    .wholesale-catalog-nav {
        grid-area: nav;
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .wholesale-catalog-nav .wholesale-catalog-nav__link {
        flex: 1 1 0;
        min-width: 0;
        min-height: 42px;
        padding: 0.55rem 0.2rem;
        font-size: clamp(0.86rem, 3.8vw, 1rem);
        white-space: nowrap;
    }

    .wholesale-catalog-nav .wholesale-catalog-nav__link--mobile-hidden {
        display: none;
    }

    .wholesale-catalog-nav .wholesale-catalog-nav__link:nth-last-child(2) {
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .wholesale-catalog-toolbar__start > .dropdown {
        grid-area: account;
        justify-self: start;
    }

    .wholesale-catalog-brand,
    .wholesale-catalog-brand__logo {
        max-width: min(540px, 86vw);
        height: 96px;
    }

    .wholesale-account-shortcuts {
        grid-area: shortcuts;
        width: 100%;
        min-width: 0;
    }

    .wholesale-account-shortcuts__link {
        flex: 1 1 0;
        min-width: 0;
        min-height: 42px;
        padding-inline: 0.3rem;
        font-size: clamp(0.76rem, 3.2vw, 0.9rem);
    }

    .wholesale-account-shortcuts__icon {
        width: 42px;
        min-height: 42px;
        flex-basis: 42px;
    }

    .wholesale-account-menu__toggle {
        width: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
        font-size: 1.2rem;
    }

    .wholesale-tier-copy {
        grid-area: tiers;
        min-width: 0;
        justify-self: start;
        align-self: center;
        gap: 0.08rem;
        font-size: clamp(0.66rem, 2.65vw, 0.78rem);
        line-height: 1.12;
        white-space: nowrap;
    }

    .wholesale-catalog-toolbar__end {
        grid-area: end;
        justify-self: end;
        align-self: center;
        gap: 0.35rem;
        flex-wrap: nowrap;
    }

    .wholesale-catalog-total {
        gap: 0;
    }

    .wholesale-catalog-total__bubble,
    .wholesale-catalog-checkout-bubble {
        min-height: 42px;
        padding: 0.42rem 0.65rem;
    }

    .wholesale-catalog-total__bubble {
        font-size: clamp(1.05rem, 4.2vw, 1.22rem);
    }

    .wholesale-catalog-checkout-bubble {
        font-size: 1rem;
    }

    .wholesale-catalog-minimum-order {
        min-height: 42px;
        padding: 0.35rem 0.5rem;
        gap: 0.25rem;
    }

    .wholesale-product-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.85rem;
    }

    .wholesale-product-card {
        padding: 0.35rem;
    }

    .wholesale-product-card__primary {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: start;
        gap: 0.9rem;
    }

    .wholesale-product-card__image-trigger {
        width: 100%;
    }

    .wholesale-product-card h2 {
        margin: 0;
        text-align: center;
        font-size: clamp(15px, 4.8vw, 22px);
    }

    .wholesale-product-meta,
    .wholesale-product-tags {
        justify-content: center;
    }

    .wholesale-product-gallery {
        margin-top: 0.15rem;
        gap: 0.4rem;
    }

    .wholesale-family-card {
        grid-template-columns: minmax(112px, 36vw) minmax(0, 1fr);
        gap: clamp(0.65rem, 3vw, 0.9rem);
    }

    .wholesale-family-card__media {
        width: 100%;
        justify-items: center;
        text-align: center;
    }

    .wholesale-family-card__image-trigger {
        width: min(36vw, 145px);
    }

    .wholesale-family-card__content {
        min-width: 0;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        justify-items: end;
    }

    .wholesale-family-card__details,
    .wholesale-family-card__price-stack {
        justify-items: center;
        text-align: center;
    }

    .wholesale-family-card__image {
        width: 100%;
        max-height: 200px;
    }

    .wholesale-family-card__controls {
        justify-self: end;
        width: max-content;
        max-width: 100%;
    }

    .wholesale-size-row {
        position: relative;
        grid-template-columns: minmax(28px, 40px) minmax(110px, 122px);
        grid-template-areas:
            "label quantity"
            ". notice";
        gap: 0.35rem 0.5rem;
        width: max-content;
        max-width: 100%;
        justify-content: end;
        justify-items: stretch;
    }

    .wholesale-size-row__label {
        grid-area: label;
        font-size: clamp(1rem, 4vw, 1.2rem);
        text-align: right;
    }

    .wholesale-quantity-form--catalog {
        grid-area: quantity;
        grid-template-columns: 34px minmax(42px, 54px) 34px;
    }

    .wholesale-size-row__notice {
        grid-area: notice;
        max-width: 122px;
        justify-self: end;
    }

    .wholesale-size-row__notice--hidden {
        display: none;
    }

    .wholesale-size-row__notice--visible {
        display: inline-flex;
    }

    .wholesale-family-card__subtotal {
        grid-template-columns: minmax(28px, 40px) minmax(110px, 122px);
        width: max-content;
        max-width: 100%;
        margin-top: 0.1rem;
        text-align: initial;
        justify-content: end;
    }

    .wholesale-family-card__subtotal span,
    .wholesale-family-card__subtotal strong {
        grid-column: 2;
        justify-self: center;
    }
}

/* Phase 18.1 — Skip-to-main-content link. Purely additive —
   does not touch the existing portal chrome per Decision 6.
   Same visually-hidden-until-focused pattern as the admin
   skip link, but in the portal's own color palette (Gruff
   Pup yellow on dark text, matching the existing
   `.wholesale-shell-brand__badge` token). The target is
   `<main id="wholesale-portal-main">` set by
   `WholesalePortalLayout.php`. */
.wholesale-skip-link {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1080;
    padding: 0.6rem 1rem;
    background: #ffc43a;
    color: #030305;
    border: 2px solid #030305;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.wholesale-skip-link:focus,
.wholesale-skip-link:focus-visible {
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
    overflow: visible;
    white-space: normal;
    outline: 2px solid #030305;
    outline-offset: 4px;
    box-shadow: 0 0 0 4px #f3f3f5;
}

/* Suppress the `<main>` focus ring so the user doesn't see a
   giant yellow box around the catalog after activating the
   skip link. Inner elements keep their own focus rings. */
#wholesale-portal-main:focus,
#wholesale-portal-main:focus-visible {
    outline: none;
    box-shadow: none;
}

.wholesale-cart-page {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.wholesale-checkout-failure {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    margin: 0 auto 1.5rem;
    padding: 1.25rem;
    border: 2px solid #9f1d20;
    border-left-width: 8px;
    border-radius: 16px;
    background: #fff4f3;
    box-shadow: 0 14px 34px rgba(57, 8, 10, 0.12);
    color: #2b090b;
}

.wholesale-checkout-failure__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: #9f1d20;
    color: #fff;
    font-size: 1.2rem;
}

.wholesale-checkout-failure__eyebrow {
    display: block;
    margin-bottom: 0.2rem;
    color: #7a171a;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wholesale-checkout-failure h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.wholesale-checkout-failure p {
    margin: 0 0 0.65rem;
}

.wholesale-checkout-failure__guidance {
    font-weight: 600;
}

.wholesale-checkout-failure__status {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.85rem;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(159, 29, 32, 0.08);
}

.wholesale-checkout-failure__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}

.wholesale-checkout-failure__contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #651114;
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
    .wholesale-checkout-failure {
        grid-template-columns: 1fr;
    }

    .wholesale-checkout-failure__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wholesale-checkout-failure__actions .btn,
    .wholesale-checkout-failure__contact {
        width: 100%;
        justify-content: center;
    }
}

.wholesale-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.72fr);
    gap: 1.5rem;
    align-items: start;
}

.wholesale-cart-items-panel {
    padding: 0;
    overflow: hidden;
}

.wholesale-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid rgba(3, 3, 5, 0.08);
}

.wholesale-cart-header h1,
.wholesale-cart-product__title,
.wholesale-cart-style__title,
.wholesale-cart-summary h2 {
    font-family: "Rubik", sans-serif;
}

.wholesale-cart-header h1 {
    margin: 0.15rem 0 0;
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
    font-weight: 470;
    letter-spacing: -0.035em;
}

.wholesale-cart-eyebrow {
    color: #666b75;
    font-size: 0.72rem;
    font-weight: 680;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.wholesale-cart-count {
    flex: 0 0 auto;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    background: #f0f1f3;
    color: #555b65;
    font-size: 0.82rem;
    font-weight: 650;
}

.wholesale-cart-products {
    display: grid;
}

.wholesale-cart-product {
    padding: 0.9rem 1.5rem;
}

.wholesale-cart-product__title {
    margin: 0 0 1rem;
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    font-weight: 560;
    letter-spacing: -0.025em;
}

.wholesale-cart-product__styles {
    display: grid;
    gap: 1rem;
}

.wholesale-cart-style {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 0.9rem;
    border: 1px solid rgba(3, 3, 5, 0.075);
    border-radius: 18px;
    background: #fafafb;
}

.wholesale-cart-style__media {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    width: 112px;
    min-width: 0;
}

.wholesale-cart-style__image-frame {
    width: 112px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: #eceef1;
}

.wholesale-cart-style__image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wholesale-cart-style__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #858a94;
    font-size: 1.5rem;
}

.wholesale-cart-style__details {
    min-width: 0;
}

.wholesale-cart-style__title {
    width: 100%;
    margin: 0;
    color: #565c66;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}

.wholesale-cart-size-list {
    display: grid;
    gap: 0.15rem;
}

.wholesale-cart-size-row {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) minmax(90px, auto) minmax(110px, auto);
    gap: 0.8rem;
    align-items: center;
    min-height: 44px;
    padding: 0.45rem 0;
}

.wholesale-cart-size-row__size strong,
.wholesale-cart-size-row__price strong {
    font-weight: 620;
}

.wholesale-cart-size-row__quantity {
    color: #626873;
    font-size: 0.9rem;
}

.wholesale-cart-size-row__price {
    text-align: right;
}

.wholesale-cart-size-row__mobile-label {
    display: none;
}

.wholesale-cart-summary {
    position: sticky;
    top: 1.5rem;
}

.wholesale-cart-summary h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 560;
}

.wholesale-cart-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
}

.wholesale-cart-total-row--grand {
    margin-top: 0.35rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(3, 3, 5, 0.12);
    font-size: 1.15rem;
}

.wholesale-checkout-address-stack {
    display: grid;
    gap: 1rem;
}

.wholesale-checkout-address-card {
    width: 100%;
}

.wholesale-checkout-address-editor {
    width: 100%;
    margin-top: 0;
}

.wholesale-checkout-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    font-size: 1.3rem;
    font-weight: 650;
    line-height: 1.1;
    box-shadow: 0 14px 30px rgba(3, 3, 5, 0.18);
}

.wholesale-checkout-primary-action:focus-visible,
.wholesale-cart-continue-link:focus-visible {
    outline: 3px solid #ffc43a;
    outline-offset: 3px;
}

.wholesale-cart-continue-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 1rem;
    color: #4f5560;
    font-size: 0.9rem;
    font-weight: 560;
    text-decoration: none;
}

.wholesale-cart-continue-link:hover {
    color: #030305;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.wholesale-cart-continue-link--top {
    justify-content: flex-start;
    width: auto;
    margin: 0 0 1rem;
}

@media (max-width: 991.98px) {
    .wholesale-cart-layout {
        grid-template-columns: 1fr;
    }

    .wholesale-cart-summary {
        order: -1;
        position: static;
    }

    .wholesale-checkout-address-column {
        order: 0;
    }

    .wholesale-checkout-summary-column {
        order: 1;
    }
}

@media (max-width: 575.98px) {
    .wholesale-cart-header,
    .wholesale-cart-product {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .wholesale-cart-style {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .wholesale-cart-style__media,
    .wholesale-cart-style__image-frame {
        width: 82px;
    }

    .wholesale-cart-size-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "size price"
            "quantity price";
        gap: 0.15rem 0.75rem;
        padding: 0.65rem 0;
    }

    .wholesale-cart-size-row__size {
        grid-area: size;
    }

    .wholesale-cart-size-row__quantity {
        grid-area: quantity;
    }

    .wholesale-cart-size-row__price {
        grid-area: price;
    }
}

.wholesale-legacy-invitation {
    width: min(100%, 36rem);
    margin: 0 auto;
}

.wholesale-legacy-invitation__identity {
    display: grid;
    gap: 0.25rem;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid rgba(3, 3, 5, 0.12);
    background: #f7f8fa;
}

.wholesale-legacy-invitation__identity span,
.wholesale-customer-insight__legacy-invite > strong {
    color: #686d76;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wholesale-customer-insight__legacy-invite {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.wholesale-customer-insight__legacy-invite form {
    margin: 0;
}

.wholesale-invites-page {
    display: grid;
    gap: 0;
}

.wholesale-invites-hero {
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.14), transparent 35%),
        linear-gradient(135deg, var(--wholesale-surface-raised, #ffffff), var(--wholesale-surface-soft, #fafafb));
}

.wholesale-invites-workspace {
    min-height: 12rem;
}

.wholesale-invites-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 9rem;
    color: var(--wholesale-text-muted, #666b75);
}

.wholesale-invites-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
}

.wholesale-invites-card-header h2 {
    color: var(--wholesale-text-strong, #111318);
    font-weight: 620;
    letter-spacing: -0.025em;
}

.wholesale-invites-table-wrap {
    margin: 0 -1.5rem -1.5rem;
}

.wholesale-invites-table thead th {
    padding: 0.8rem 1.25rem;
    border-bottom-color: var(--wholesale-border, rgba(3, 3, 5, 0.08));
    background: var(--wholesale-surface-soft, #fafafb);
    color: var(--wholesale-text-muted, #666b75);
    font-size: 0.72rem;
    font-weight: 720;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wholesale-invites-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom-color: var(--wholesale-border, rgba(3, 3, 5, 0.08));
    color: var(--wholesale-text, #030305);
}

.wholesale-invites-table tbody tr:last-child td {
    border-bottom: 0;
}

.wholesale-invite-recipient {
    display: inline-block;
    max-width: 20rem;
    overflow-wrap: anywhere;
}

.wholesale-invite-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 8.8rem;
    min-height: 42px;
    font-weight: 620;
}

.wholesale-invite-action .htmx-indicator,
.wholesale-invite-activity-item__action .htmx-indicator {
    width: 0.85rem;
    height: 0.85rem;
}

.wholesale-invite-activity-list {
    display: grid;
    gap: 0;
}

.wholesale-invite-activity-item {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(170px, 0.8fr) minmax(150px, 0.65fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
}

.wholesale-invite-activity-item:first-child {
    padding-top: 0;
}

.wholesale-invite-activity-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.wholesale-invite-activity-item__identity,
.wholesale-invite-activity-item__status {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.wholesale-invite-activity-item__identity strong {
    color: var(--wholesale-text-strong, #111318);
    font-weight: 650;
}

.wholesale-invite-activity-item__identity span,
.wholesale-invite-activity-item__time {
    color: var(--wholesale-text-muted, #666b75);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.wholesale-invite-activity-item__status .badge {
    justify-self: start;
}

.wholesale-invite-activity-item__action {
    justify-self: end;
}

.wholesale-invite-preview-modal .modal-body {
    min-height: 26rem;
}

.wholesale-invite-preview-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wholesale-invite-preview-meta > div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
    border-radius: 12px;
    background: var(--wholesale-surface-soft, #fafafb);
}

.wholesale-invite-preview-meta span {
    color: var(--wholesale-text-muted, #666b75);
    font-size: 0.7rem;
    font-weight: 720;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.wholesale-invite-preview-meta strong {
    color: var(--wholesale-text-strong, #111318);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.wholesale-invite-preview-frame {
    display: block;
    width: 100%;
    min-height: 660px;
    border: 1px solid var(--wholesale-border-strong, rgba(3, 3, 5, 0.16));
    border-radius: 12px;
    background: #ffffff;
}

@media (max-width: 991.98px) {
    .wholesale-invite-activity-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .wholesale-invite-activity-item__time {
        grid-column: 1;
    }

    .wholesale-invite-activity-item__action {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 767.98px) {
    .wholesale-invites-card-header {
        display: grid;
    }

    .wholesale-invites-table-wrap {
        margin: 0;
        overflow: visible;
    }

    .wholesale-invites-table,
    .wholesale-invites-table tbody,
    .wholesale-invites-table tr,
    .wholesale-invites-table td {
        display: block;
        width: 100%;
    }

    .wholesale-invites-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
    }

    .wholesale-invites-table tbody {
        display: grid;
        gap: 1rem;
    }

    .wholesale-invites-table tbody tr {
        padding: 1rem;
        border: 1px solid var(--wholesale-border, rgba(3, 3, 5, 0.08));
        border-radius: 16px;
        background: var(--wholesale-surface-soft, #fafafb);
    }

    .wholesale-invites-table tbody td {
        display: grid;
        grid-template-columns: minmax(6rem, 34%) minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.45rem 0;
        border: 0;
        text-align: left !important;
    }

    .wholesale-invites-table tbody td::before {
        content: attr(data-label);
        color: var(--wholesale-text-muted, #666b75);
        font-size: 0.7rem;
        font-weight: 720;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .wholesale-invites-table tbody td form,
    .wholesale-invite-action {
        width: 100%;
    }

    .wholesale-invite-activity-item {
        grid-template-columns: 1fr;
    }

    .wholesale-invite-activity-item__time,
    .wholesale-invite-activity-item__action {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
    }

    .wholesale-invite-preview-meta {
        grid-template-columns: 1fr;
    }

    .wholesale-invite-preview-frame {
        min-height: 520px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wholesale-portal-body *,
    .wholesale-portal-body *::before,
    .wholesale-portal-body *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .wholesale-product-gallery__thumb:hover,
    .wholesale-product-gallery__thumb:focus-visible,
    .wholesale-product-card__image-trigger:hover .wholesale-product-card__image,
    .wholesale-product-card__image-trigger:focus-visible .wholesale-product-card__image,
    .wholesale-family-card__image-trigger:hover .wholesale-family-card__image,
    .wholesale-family-card__image-trigger:focus-visible .wholesale-family-card__image {
        transform: none;
    }

    .wholesale-product-row.is-entry-pending,
    .wholesale-product-row.is-entry-visible {
        opacity: 1 !important;
        transform: none !important;
    }

    .wholesale-gallery-modal__carousel .carousel-item,
    .wholesale-gallery-modal__carousel .carousel-item-start,
    .wholesale-gallery-modal__carousel .carousel-item-end {
        transition: none !important;
    }
}
