.account-alert {
    max-width: 760px;
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    background: #f7f7f7;
    line-height: 1.45;
}

.account-alert--error {
    border-color: #b73d4b;
    color: #8f2632;
    background: #fff6f7;
}

.account-alert--success {
    border-color: #2c7a48;
    color: #23623a;
    background: #f4fbf6;
}

.account-success-page .form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.account-success__icon {
    display: flex;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid #2c7a48;
    border-radius: 50%;
    color: #2c7a48;
    font-size: 32px;
    line-height: 1;
}

.account-success__message {
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

.account-success__message p + p {
    margin-top: 12px;
}

.account-field-error {
    display: block;
    margin-top: 5px;
    color: #b73d4b;
    font-size: 12px;
}

/*
 * formPage.css uses .error for a hidden, page-level message. Registration
 * also uses .error on a field wrapper, so the original rule hid the entire
 * invalid field and its explanation.
 */
.form-page.login .form .form-group.error {
    display: block !important;
    margin-bottom: 24px;
    padding: 0;
    border: 0;
    color: inherit;
    text-align: left;
}

.form-page.login .form .form-group.error input {
    border-bottom-color: #b73d4b;
}

.form-page .form .checkbox {
    margin-top: 18px;
    margin-bottom: 18px;
}

.form-page .form .checkbox label {
    display: block;
}

.form-page .form .checkbox a {
    display: inline;
    text-decoration: underline;
}

.cabinet-page .cabinet-content {
    min-width: 0;
}

.cabinet-page .cabinet-content .form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #eaeaea;
    background: #fff;
    color: #1b1b1b;
}

.cabinet-page .cabinet-content .form .form-label {
    display: block;
    margin-bottom: 7px;
    color: #575757;
    font-size: 12px;
}

.account-dashboard__intro {
    max-width: 720px;
    margin-bottom: 24px;
}

.account-dashboard__name {
    margin-bottom: 8px;
}

.account-dashboard__details {
    display: grid;
    gap: 8px;
    margin: 22px 0 30px;
}

.account-dashboard__details span {
    color: #757575;
}

.account-dashboard__actions {
    display: grid;
    gap: 10px;
    max-width: 620px;
}

.account-dashboard__actions .btn-base-light {
    width: 100%;
}

.account-empty {
    max-width: 680px;
    padding: 24px 0;
}

.account-empty p {
    margin-bottom: 18px;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.account-actions .btn-base,
.account-actions .btn-base-light {
    width: auto;
    min-width: 170px;
}

.address-card {
    padding: 18px 0;
    border-bottom: 1px solid #eaeaea;
}

.address-card:first-of-type {
    border-top: 1px solid #eaeaea;
}

.address-card__text {
    margin-bottom: 14px;
    line-height: 1.65;
}

.address-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.cabinet-page .cabinet-content.wish .list-item .item-remove {
    z-index: 3;
}

.cabinet-page .cabinet-content.wish .list-item .bottom .link-underline {
    display: inline-block;
}

.order-summary {
    display: grid;
    gap: 8px;
    padding: 16px 0 8px;
}

.order-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
}

.order-status--complete {
    color: #2c7a48;
}

.order-status--cancelled {
    color: #b73d4b;
}

.order-detail__grid {
    display: grid;
    gap: 18px;
    margin: 24px 0;
}

.order-detail__card {
    padding: 18px;
    border: 1px solid #eaeaea;
}

.order-detail__card .h4 {
    margin-bottom: 14px;
}

.order-detail__card p + p {
    margin-top: 8px;
}

.order-detail__address {
    line-height: 1.65;
}

.order-table-wrap {
    max-width: 100%;
    margin: 24px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.order-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.order-table th,
.order-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #eaeaea;
    text-align: left;
    vertical-align: top;
}

.order-table__option {
    display: block;
    margin-top: 6px;
    color: #757575;
}

.order-detail__history {
    margin-top: 28px;
}

.order-detail__history > .h4 {
    margin-bottom: 12px;
}

.order-history__row {
    display: grid;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid #eaeaea;
}

.pagination {
    margin-top: 25px;
}

@media screen and (min-width: 768px) {
    .account-dashboard__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .order-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-detail__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-history__row {
        grid-template-columns: 130px 180px minmax(0, 1fr);
    }
}
