.account-page {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 25px;
    gap: 60px;
}

.account-page_nav {
    display: flex;
    flex-direction: column;
    max-width: 120px;
    padding-top: 55px;
    gap: 16px;
}
.account-page_nav-item {
    white-space: nowrap;
    color: #919191;
}
.account-page_nav-item:hover,
.account-page_nav-item.active {
    color: var(--color-orange);
}

.account-page_content {
    width: 100%;
    max-width: 920px;
}

.account-page_title {
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #E9E9E9;
}

.account-page_form {
    max-width: 740px;
    margin-bottom: 65px;
}
.account-page_form .grid {
    gap: 20px;
}

.account-page_form .btn {
    margin-top: 20px;
}

.account-page_address-list {
    display: flex;
    margin-bottom: 60px;
    gap: 30px 20px;
}
.account-page_address-item {
    width: 100%;
    max-width: 290px;
}
.account-page_address-item .checkbox-group label {
    align-items: flex-start;
    gap: 10px;
}
.account-page_address-item-btns {
    display: flex;
    margin-top: 14px;
    padding-left: 39px;
    opacity: 0;
    gap: 10px;
}
.account-page_address-item:hover .account-page_address-item-btns {
    opacity: 1;
}

/* Orders */
.order-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}
.order-item {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 0 0 0;
    border-bottom: 1px solid #E9E9E9;
}
.order-item_thumbs {
    display: flex;
    gap: 20px;
    width: 50%;
    height: 200px;
    overflow: hidden;
}
.order-item.active .order-item_thumbs {
    height: 0;
}
.order-item_thumb {
    width: 160px;
    max-width: 40%;
    flex-shrink: 0;
}
.order-item_thumb img {
    width: 100%;
    display: block;
}

.order-item_info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    height: 200px;
    width: 50%;
}
.order-item.active .order-item_info {
    height: 0;
    margin-top: 0;
}
.order-item_number {
    display: flex;
    margin-bottom: 12px;
    text-transform: uppercase;
    gap: 10px;
}
.order-item_date {
    margin-bottom: 20px;
    color: var(--color-gray);
}
.order-item_total {
    margin-bottom: 16px;
}

.order-detail {
    display: flex;
    flex-direction: column;
    width: 50%;
    /* margin-top: -240px; */
    margin-bottom: 40px;
    background: #F5F5F5;
}
.order-item.active .order-detail {
    opacity: 1;
}

.order-products {
    display: flex;
    flex-direction: column;
    margin: 0 0 32px 0;
    gap: 32px;
}

.order-product {
    display: flex;
    gap: 20px;
}
.order-product_thumb {
    width: 160px;
    max-width: 40%;
    flex-shrink: 0;
}
.order-product_thumb img {
    display: block;
    width: 100%;
}
.order-product_data {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.order-product_name {
    margin-bottom: 12px;
}

.order-product_data-item {
    display: flex;
    gap: 4px;
}
.order-product_data-item div:first-child {
    color: #919191;
}

.order-item_btn-more {
    margin-top: auto;
    margin-left: auto;
    transform: translate(0, -100%);
}
.order-item_btn-more span:last-child {
    display: none;
}

.order-item.active .order-item_btn-more span:first-child {
    display: none;
}
.order-item.active .order-item_btn-more span:last-child {
    display: block;
}

.order-totals {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 17px;
}
.order-total {
    display: flex;
    gap: 4px;
}
.order-total div:first-child {
    color: #919191;
}

@media (max-width: 768px) {
    .account-page {
        flex-direction: column;
        padding-top: 8px;
        padding-bottom: 25px;
        gap: 32px;
    }

    .account-page_nav {
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        padding: 12px 0;
        border-top: 1px solid #E9E9E9;
        border-bottom: 1px solid #E9E9E9;
        gap: 24px;
    }

    .account-page_title {
        margin-bottom: 20px;
        padding-bottom: 6px;
        font-size: 18px;
        font-weight: 500;
        line-height: 22px;
    }

    .account-page_form {
        max-width: 100%;
        margin-bottom: 45px;
    }

    .account-page_form .grid {
        gap: 12px;
    }

    .account-page_form .btn {
        margin-top: 32px;
    }

    .order-item {
        padding: 24px 0 0 0;
    }
    .order-item_thumbs {
        width: 100%;
        height: auto;
    }
    .order-item_info {
        align-items: flex-start;
        width: 100%;
        height: auto;
        margin-top: 20px;
    }

    .order-detail {
        width: 100%;
        margin-top: -40px;
    }

    .order-item_btn-more {
        margin-bottom: -20px;
    }

    .order-products {
        margin: 24px 0;
        gap: 24px;
    }
}