.account-auth-page,
.account-page {
    width: min(1170px, calc(100% - 40px));
    min-height: 65vh;
    margin: 0 auto;
    padding: 34px 0 80px;
}

.account-breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 28px;
    color: #777;
    font-size: 14px;
}

.account-breadcrumbs a:hover,
.account-breadcrumbs a:focus-visible {
    color: #263b39;
    text-decoration: underline;
}

.account-auth-card {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 44px;
    border: 1px solid #dfe5df;
    background: #f7faf7;
}

.account-auth-card--wide {
    width: min(100%, 720px);
}

.account-eyebrow,
.account-section-heading p {
    margin: 0 0 8px;
    color: #557168;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.2px;
}

.account-auth-card h1,
.account-page-header h1 {
    margin: 0;
    color: #172925;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
}

.account-intro,
.account-page-header > p:last-child {
    margin: 14px 0 28px;
    color: #68736d;
    line-height: 1.8;
}

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

.account-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.account-form-grid__full {
    grid-column: 1 / -1;
}

.account-form label {
    display: grid;
    gap: 7px;
    color: #263b39;
    font-weight: 700;
}

.account-form label > span em {
    color: #7c847f;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
}

.account-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    color: #232323;
    border: 1px solid #bdc9c1;
    border-radius: 0;
    background: #fff;
}

.account-form input:focus {
    border-color: #263b39;
    outline: 2px solid rgba(38, 59, 57, .14);
    outline-offset: 1px;
}

.account-form input[readonly] {
    color: #65706a;
    background: #edf1ed;
}

.account-form small {
    min-height: 18px;
    color: #727b75;
    font-size: 12px;
    font-weight: 400;
}

.account-form small > span:not(:empty),
.account-validation {
    color: #a52d2d;
}

.account-check {
    display: flex !important;
    gap: 9px !important;
    align-items: center;
    width: max-content;
    font-weight: 400 !important;
}

.account-check input {
    width: 17px;
    min-height: 17px;
}

.account-primary-button,
.account-external-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid #263b39;
    border-radius: 0;
    color: #fff;
    background: #263b39;
    font-weight: 700;
    cursor: pointer;
}

.account-primary-button:hover,
.account-primary-button:focus-visible {
    background: #172925;
}

.account-external-logins {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.account-external-form {
    margin: 0;
}

.account-external-button {
    width: 100%;
    color: #263b39;
    background: #fff;
}

.account-external-button svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex: 0 0 auto;
}

.account-external-button--google:hover,
.account-external-button--google:focus-visible {
    background: #f6f8f7;
}

.account-external-button--apple {
    border-color: #000;
    color: #fff;
    background: #000;
}

.account-external-button--apple svg {
    fill: currentColor;
}

.account-external-button--apple:hover,
.account-external-button--apple:focus-visible {
    border-color: #282828;
    background: #282828;
}

.account-divider {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 22px;
    color: #7a837e;
    font-size: 12px;
}

.account-divider::before,
.account-divider::after {
    flex: 1;
    height: 1px;
    content: "";
    background: #d8ded9;
}

.account-auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 14px;
}

.account-auth-links a,
.account-switch a,
.account-section-heading a {
    color: #2f5c5d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-switch {
    margin: 26px 0 0;
    text-align: center;
}

.account-alert {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid;
}

.account-alert--success {
    color: #224b36;
    border-color: #b9d8c3;
    background: #eff8f1;
}

.account-alert--error {
    color: #7e2828;
    border-color: #e0baba;
    background: #fff1f1;
}

.account-message-card {
    text-align: center;
}

.account-message-card > p:not(.account-eyebrow) {
    margin: 22px 0;
    color: #68736d;
    line-height: 1.8;
}

.account-message-actions {
    display: flex;
    justify-content: center;
}

.account-page-header {
    margin-bottom: 32px;
    padding-bottom: 26px;
    border-bottom: 1px solid #dde4de;
}

.account-page-header > p:last-child {
    margin-bottom: 0;
}

.account-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 42px;
}

.account-nav {
    display: flex;
    flex-direction: column;
    height: max-content;
    border-top: 1px solid #d9e0da;
}

.account-nav > a,
.account-nav form button {
    display: block;
    width: 100%;
    padding: 13px 10px;
    border: 0;
    border-bottom: 1px solid #d9e0da;
    color: #263b39;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.account-nav > a:hover,
.account-nav > a:focus-visible,
.account-nav form button:hover,
.account-nav form button:focus-visible {
    padding-left: 15px;
    background: #f0f5f0;
}

.account-nav > a.account-nav__active,
.account-nav > a.account-nav__active:hover,
.account-nav > a.account-nav__active:focus-visible {
    color: #fff;
    background: #263b39;
    font-weight: 700;
}

.account-nav__admin {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    color: #263b39 !important;
    background: #eef3ef !important;
    font-weight: 700 !important;
}

.account-nav__admin:hover,
.account-nav__admin:focus-visible {
    background: #e1ebe3 !important;
}

.account-content {
    min-width: 0;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.account-stats article {
    padding: 22px;
    border: 1px solid #dfe5df;
    background: #f7faf7;
}

.account-stats span {
    display: block;
    color: #6d7670;
}

.account-stats strong {
    display: block;
    margin-top: 8px;
    color: #263b39;
    font-size: 34px;
}

.account-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.account-section-heading h2 {
    margin: 0;
    font-size: 24px;
}

.account-order-list {
    border-top: 1px solid #d9e0da;
}

.account-order-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 24px;
    padding: 20px 12px;
    border-bottom: 1px solid #d9e0da;
    color: #263b39;
}

.account-order-card:hover,
.account-order-card:focus-visible {
    background: #f5f8f5;
}

.account-order-card:focus-visible {
    outline: 2px solid #54765f;
    outline-offset: -2px;
}

.account-order-card__main {
    min-width: 0;
}

.account-order-card__header {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(190px, auto);
    gap: 20px;
    align-items: start;
}

.account-order-card__identity,
.account-order-card__state,
.account-order-card__total,
.account-order-item__copy,
.account-order-item__amount {
    display: grid;
    gap: 4px;
}

.account-order-card__identity strong {
    font-size: 16px;
    overflow-wrap: anywhere;
}

.account-order-card__identity time,
.account-order-card small {
    color: #737c76;
    font-size: 13px;
}

.account-order-card__state {
    justify-items: end;
    text-align: right;
}

.account-order-card__state strong {
    color: #294b39;
}

.account-order-items {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.account-order-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    background: #f7faf7;
}

.account-order-item__image {
    display: block;
    width: 60px;
    height: 60px;
    overflow: hidden;
    background: #e8eee8;
}

.account-order-item__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-order-item__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #63806c;
    font-size: 13px;
}

.account-order-item__copy {
    min-width: 0;
}

.account-order-item__copy strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-order-item__amount {
    justify-items: end;
    padding-left: 10px;
    white-space: nowrap;
}

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

.account-order-items__more {
    padding: 4px 8px 0 80px;
    color: #647169;
    font-size: 13px;
}

.account-order-card__total {
    align-content: center;
    justify-items: end;
    text-align: right;
}

.account-order-card__total > strong {
    color: #1f3532;
    font-size: 18px;
}

.account-order-card__total > span {
    margin-top: 14px;
    color: #2f5c5d;
    font-size: 13px;
    font-weight: 700;
}

.account-order-card__pay {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px 7px;
    align-items: center;
    padding: 7px 10px;
    background: #294b39;
    color: #fff !important;
}

.account-order-card__pay > small {
    grid-column: 1 / -1;
    color: #dce9df;
    font-size: 11px;
    font-weight: 500;
}

.account-empty {
    padding: 32px;
    border: 1px solid #dfe5df;
    background: #f7faf7;
}

.account-empty p {
    margin: 0 0 18px;
    color: #65706a;
    line-height: 1.8;
}

.account-empty a {
    color: #2f5c5d;
    text-decoration: underline;
}

.account-profile-form {
    max-width: 640px;
}

.account-pagination {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    color: #6d7670;
    font-size: 14px;
}

.account-pagination a {
    color: #2f5c5d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .account-auth-page,
    .account-page {
        width: min(100% - 28px, 1170px);
        padding-top: 24px;
    }

    .account-auth-card {
        padding: 28px 20px;
    }

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

    .account-shell {
        gap: 28px;
    }

    .account-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .account-nav > a,
    .account-nav form button {
        border-right: 1px solid #d9e0da;
    }

    .account-stats {
        gap: 10px;
    }

    .account-stats article {
        padding: 16px;
    }

    .account-order-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 8px;
    }

    .account-order-card__header {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .account-order-card__state {
        justify-items: start;
        text-align: left;
    }

    .account-order-card__total {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid #e0e6e1;
        text-align: left;
    }

    .account-order-card__total > small {
        display: none;
    }

    .account-order-card__total > span {
        margin-top: 0;
    }
}

@media (max-width: 420px) {
    .account-form-grid,
    .account-stats,
    .account-nav {
        grid-template-columns: 1fr;
    }

    .account-auth-links {
        gap: 12px;
        flex-direction: column;
    }

    .account-order-item {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 10px;
    }

    .account-order-item__image {
        width: 54px;
        height: 54px;
    }

    .account-order-item__copy strong {
        white-space: normal;
    }

    .account-order-item__amount {
        grid-column: 2;
        grid-template-columns: auto auto;
        justify-content: start;
        justify-items: start;
        padding-left: 0;
    }

    .account-order-items__more {
        padding-left: 72px;
    }
}
