.orx-account-page {
    display: block;
    box-sizing: border-box;
    float: none;
    width: 100%;
    max-width: none !important;
    min-width: 0;
    min-height: 78vh;
    margin: 0 !important;
    padding: 32px clamp(18px, 3vw, 44px) 64px;
    background: #f4f5f3;
}

.orx-account {
    --orx-account-ink: #172021;
    --orx-account-muted: #687372;
    --orx-account-border: #d8dfdc;
    --orx-account-accent: #1f6369;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--orx-account-border);
    border-radius: 8px;
    background: #fff;
    color: var(--orx-account-ink);
    font-size: 14px;
    line-height: 1.5;
}

.orx-account,
.orx-account * {
    box-sizing: border-box;
}

.orx-account :where(h1, h2, p, dl) {
    margin-top: 0;
}

.orx-account a {
    color: var(--orx-account-accent);
}

.orx-account--guest {
    max-width: 760px;
}

.orx-account-topbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    min-height: 72px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--orx-account-border);
}

.orx-account-topbar > strong {
    color: #0b2027;
    font-size: 18px;
    font-weight: 650;
}

.orx-account-identity {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.orx-account-avatar {
    width: 40px;
    height: 40px;
    border: 1px solid var(--orx-account-border);
    border-radius: 50%;
}

.orx-account-identity div,
.orx-account-identity strong,
.orx-account-identity span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.orx-account-identity span {
    color: var(--orx-account-muted);
    font-size: 12px;
}

.orx-account-layout {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    min-height: 680px;
}

.orx-account-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 14px 20px;
    border-right: 1px solid var(--orx-account-border);
    background: #f6f7f5;
}

.orx-account-nav {
    display: grid;
    gap: 2px;
}

.orx-account-nav a,
.orx-account-logout {
    display: flex;
    min-height: 42px;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #475467;
    font-weight: 600;
    text-decoration: none;
}

.orx-account-nav a:hover,
.orx-account-nav a.is-active {
    border-color: #c7d3d0;
    background: #fff;
    color: #124f55;
}

.orx-account-nav a:focus-visible,
.orx-account-logout:focus-visible,
.orx-account-button:focus-visible {
    outline: 3px solid rgb(31 99 105 / 20%);
    outline-offset: 2px;
}

.orx-account-logout {
    color: #9b2c24;
}

.orx-account-logout:hover {
    border-color: #efd6d3;
    background: #fff0ee;
}

.orx-account-nav__icon {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
}

.orx-account-nav__icon svg {
    display: block;
    width: 19px;
    height: 19px;
}

.orx-account-main {
    min-width: 0;
    padding: 34px 40px 56px;
}

.orx-account-section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    min-height: 72px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--orx-account-border);
}

.orx-account-section-head h1 {
    margin: 0;
    color: #0b2027;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 620;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.orx-account-eyebrow {
    display: block;
    color: var(--orx-account-muted);
    font-size: 12px;
    font-weight: 650;
}

.orx-account-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid #b8c4cf;
    border-radius: 8px;
    background: #fff;
    color: #25313d !important;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none !important;
}

.orx-account-button:hover {
    border-color: var(--orx-account-accent);
    color: var(--orx-account-accent) !important;
}

.orx-account-button--primary {
    border-color: var(--orx-account-accent);
    background: var(--orx-account-accent);
    color: #fff !important;
}

.orx-account-button--primary:hover {
    border-color: #164d52;
    background: #164d52;
    color: #fff !important;
}

.orx-account-notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 8px;
}

.orx-account-notice.is-success {
    border-color: #a9d3c5;
    background: #eff9f4;
    color: #145c43;
}

.orx-account-notice.is-error {
    border-color: #efc4bf;
    background: #fff3f2;
    color: #912018;
}

.orx-account-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--orx-account-border);
    border-radius: 8px;
}

.orx-account-metrics a {
    display: flex;
    min-width: 0;
    min-height: 96px;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
    border-right: 1px solid var(--orx-account-border);
    color: var(--orx-account-ink);
    text-decoration: none;
    transition: background-color 160ms ease;
}

.orx-account-metrics a:last-child {
    border-right: 0;
}

.orx-account-metrics a:hover {
    background: #f6f8f7;
}

.orx-account-metrics span,
.orx-account-orders small,
.orx-account-order-summary span {
    color: var(--orx-account-muted);
    font-size: 12px;
    font-weight: 600;
}

.orx-account-metrics strong {
    margin-top: 5px;
    color: #123f45;
    font-size: 28px;
    line-height: 1.1;
}

.orx-account-panel {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--orx-account-border);
    border-radius: 8px;
    background: #fff;
}

.orx-account-panel > header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
}

.orx-account-panel > header h2 {
    margin: 0;
    color: #0b2027;
    font-size: 20px;
    font-weight: 650;
}

.orx-account-overview-orders {
    margin-top: 30px;
    padding: 0;
    border: 0;
}

.orx-account-overview-orders > header {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--orx-account-border);
}

.orx-account-overview-orders > header a {
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.orx-account-orders {
    display: grid;
    border-bottom: 1px solid var(--orx-account-border);
}

.orx-account-orders > a {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(160px, 1fr) minmax(120px, .75fr) minmax(110px, .65fr);
    gap: 18px;
    align-items: center;
    min-width: 0;
    padding: 16px 4px;
    border-bottom: 1px solid var(--orx-account-border);
    color: var(--orx-account-ink);
    text-decoration: none;
}

.orx-account-orders > a:hover {
    background: #f7f9f8;
}

.orx-account-orders > a > span,
.orx-account-orders > a > span > :where(small, strong) {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.orx-account-orders__amount {
    text-align: right;
}

.orx-account-status {
    display: inline-flex !important;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef3f2;
    color: #31595d;
    font-size: 12px;
    font-weight: 700;
}

.orx-account-status.is-completed {
    background: #ebf8f1;
    color: #18734c;
}

.orx-account-status:is(.is-cancelled, .is-failed, .is-refunded) {
    background: #fff0ef;
    color: #9b2c24;
}

.orx-account-empty {
    min-height: 150px;
    padding: 34px 4px;
    color: var(--orx-account-muted);
}

.orx-account-empty h2 {
    margin-bottom: 6px;
    color: var(--orx-account-ink);
}

.orx-account-pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
}

.orx-account-pagination a {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--orx-account-border);
    border-radius: 8px;
    text-decoration: none;
}

.orx-account-quotes {
    display: grid;
    gap: 18px;
}

.orx-account-quote {
    padding: 22px 24px;
    border: 1px solid var(--orx-account-border);
    border-radius: 10px;
    background: #fff;
}

.orx-account-quote > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--orx-account-border);
}

.orx-account-quote > header span,
.orx-account-quote > header time,
.orx-account-quote__contact,
.orx-account-quote__items span {
    color: var(--orx-account-muted);
    font-size: 13px;
}

.orx-account-quote > header h2 {
    margin: 3px 0 0;
    color: var(--orx-account-ink);
    font-size: 20px;
}

.orx-account-quote__contact {
    margin: 14px 0 0;
}

.orx-account-quote__items {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.orx-account-quote__items > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 13px;
    border-radius: 7px;
    background: #f7f9f8;
}

.orx-account-quote__items a,
.orx-account-quote__items strong {
    color: var(--orx-account-ink);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.orx-account-quote__items a:hover {
    color: var(--orx-account-accent);
}

.orx-account-quote__message {
    margin: 16px 0 0;
    color: var(--orx-account-copy);
    font-size: 14px;
    line-height: 1.7;
}

.orx-account-back {
    display: inline-flex;
    margin-bottom: 18px;
    text-decoration: none;
}

.orx-account-order-head {
    align-items: center;
}

.orx-account-order-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid var(--orx-account-border);
    border-radius: 8px;
}

.orx-account-order-summary > div {
    display: flex;
    min-height: 84px;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    border-right: 1px solid var(--orx-account-border);
}

.orx-account-order-summary > div:last-child {
    border-right: 0;
}

.orx-account-order-items {
    display: grid;
}

.orx-account-order-items > div,
.orx-account-order-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--orx-account-border);
}

.orx-account-order-items span > :where(strong, small) {
    display: block;
}

.orx-account-order-items small {
    color: var(--orx-account-muted);
}

.orx-account-order-totals {
    width: min(420px, 100%);
    margin: 18px 0 0 auto;
}

.orx-account-order-totals dt,
.orx-account-order-totals dd {
    margin: 0;
}

.orx-account-order-totals dd {
    text-align: right;
    font-weight: 700;
}

.orx-account-order-addresses,
.orx-account-addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.orx-account-panel address {
    font-style: normal;
    line-height: 1.7;
}

.orx-account-form,
.orx-account-address-form {
    display: grid;
}

.orx-account-form .orx-account-panel > header span {
    color: var(--orx-account-muted);
    font-size: 11px;
}

.orx-account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.orx-account-form-grid label {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.orx-account-form-grid label.is-wide {
    grid-column: 1 / -1;
}

.orx-account-form-grid label > span,
.orx-account-login__form label > span {
    color: #344054;
    font-size: 12px;
    font-weight: 650;
}

.orx-account-form-grid :where(input, select),
.orx-account-login__form input:is([type="text"], [type="password"]) {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #b8c4cf;
    border-radius: 8px;
    background: #fff;
    color: var(--orx-account-ink);
    font: inherit;
}

.orx-account-form-grid :where(input, select):focus,
.orx-account-login__form input:focus {
    border-color: var(--orx-account-accent);
    outline: 3px solid rgb(31 99 105 / 12%);
}

.orx-account-login {
    display: grid;
}

.orx-account-login__intro {
    padding: 38px 48px 30px;
    border-bottom: 1px solid var(--orx-account-border);
    background: #f6f7f5;
}

.orx-account-login__intro h1 {
    margin: 5px 0 8px;
    color: #0b2027;
    font-size: clamp(30px, 4vw, 38px);
    font-weight: 620;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.orx-account-login__intro p {
    margin-bottom: 0;
    color: var(--orx-account-muted);
}

.orx-account-login__form {
    padding: 36px 48px 42px;
}

.orx-account-login__form form {
    display: grid;
    gap: 14px;
}

.orx-account-login__form form > label:not(.orx-account-login__remember) {
    display: grid;
    gap: 6px;
}

.orx-account-login__remember {
    display: flex;
    gap: 8px;
    align-items: center;
}

.orx-account-login__links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .orx-account-page {
        padding-right: 24px;
        padding-left: 24px;
    }

    .orx-account {
        font-size: 13px;
    }

    .orx-account-layout {
        grid-template-columns: 208px minmax(0, 1fr);
        min-height: 0;
    }

    .orx-account-main {
        padding: 24px 20px 32px;
    }

    .orx-account-addresses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .orx-account-page {
        padding: 18px 10px 36px;
    }

    .orx-account {
        font-size: 12.5px;
    }

    .orx-account-topbar > strong {
        display: none;
    }

    .orx-account-topbar {
        justify-content: flex-end;
        padding: 14px 16px;
    }

    .orx-account-layout {
        grid-template-columns: 1fr;
    }

    .orx-account-sidebar {
        display: block;
        padding: 0 14px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--orx-account-border);
    }

    .orx-account-nav {
        display: flex;
        width: max-content;
        min-width: 100%;
    }

    .orx-account-nav a {
        min-height: 46px;
        border: 0;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        white-space: nowrap;
    }

    .orx-account-nav a:hover,
    .orx-account-nav a.is-active {
        border-bottom-color: var(--orx-account-accent);
    }

    .orx-account-logout {
        display: none;
    }

    .orx-account-main {
        padding: 24px 14px 34px;
    }

    .orx-account-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .orx-account-section-head .orx-account-button {
        width: 100%;
    }

    .orx-account-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .orx-account-metrics a:nth-child(2) {
        border-right: 0;
    }

    .orx-account-metrics a:nth-child(-n+2) {
        border-bottom: 1px solid var(--orx-account-border);
    }

    .orx-account-orders > a {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .orx-account-orders > a > span:nth-child(2),
    .orx-account-orders__amount {
        display: none;
    }

    .orx-account-order-summary,
    .orx-account-order-addresses {
        grid-template-columns: 1fr;
    }

    .orx-account-order-summary > div {
        border-right: 0;
        border-bottom: 1px solid var(--orx-account-border);
    }

    .orx-account-order-summary > div:last-child {
        border-bottom: 0;
    }

    .orx-account-form-grid {
        grid-template-columns: 1fr;
    }

    .orx-account-form-grid > span:empty {
        display: none;
    }

    .orx-account-form-grid label.is-wide {
        grid-column: auto;
    }

    .orx-account-panel {
        padding: 20px 16px;
    }

    .orx-account-quote {
        padding: 18px 16px;
    }

    .orx-account-quote > header,
    .orx-account-quote__items > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .orx-account-login__intro,
    .orx-account-login__form {
        padding: 32px 24px;
    }

    .orx-account-login__links {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orx-account-metrics a {
        transition: none;
    }
}
