.account {
    display: flex;
}

@media (max-width: 768px) {
    .account {
        flex-direction: column;
    }
}

.account-side {
    flex: 0 0 240px;
    padding: 0 0 24px 0;
}

@media (max-width: 768px) {
    .account-side {
        flex-basis: auto;
        padding-bottom: 0;
    }
}

.account-user {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #f0f0f4;
    gap: 16px;
    padding: 16px;
}

.account-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dedede;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.account-nav {
    display: flex;
    gap: 4px;
    flex-direction: column;
    padding: 16px;
}

.account-nav-link {
    color: #0e0e0e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    font-size: 14px;
    border-radius: 6px;
    background: transparent;
    border: none;
}

.account-nav-link:hover {
    background: #f0f0f4;
}

.account-nav-link svg {
    display: block;
    width: 20px;
    height: 20px;
}

.account-nav-link.active {
    background: #f0d0aa;
}

.account-content {
    flex-grow: 1;
    border-left: 2px solid #f0f0f4;
    padding: 24px 36px 36px 36px;
    min-height: 320px;
}

@media (max-width: 768px) {
    .account-content {
        border-left: none;
        border-top: 2px solid #f0f0f4;
        padding: 24px 16px 36px 16px;
    }
}

.account-content-item {
    display: none;
}

.account-content-item.is-active {
    display: block;
}

.account-content-title {
    font-weight: 400;
    margin-bottom: 16px;
    font-family: "Museo Cyrl", serif;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: .04em;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0;
    padding: 0;
}

.order-item {
    border: 1px solid #e2e2e9;
    border-radius: 12px;
    overflow: hidden;
    /*background: #f0f0f487;*/
}

.order-item.is-opened {
    border-color: #c4c4d4;
    box-shadow: 0 4px 10px -3px rgba(0, 0, 0, 0.1);
}

.order-item.is-opened .order-item-icon {
    transform: rotate(180deg);
}

.order-item.is-opened .order-item-body {
    display: block;
}

.order-item-header {
    display: flex;
    align-items: center;
    gap: 24px;
    cursor: pointer;
    padding: 18px 16px;
}

@media (max-width: 768px) {
    .order-item-header {
        padding: 12px 16px;
    }
}

.order-item-header:hover {
    background-color: #f9f9f9;
}

.order-item-number {
    color: #000;
    white-space: nowrap;
}

.order-item-date {
    color: #606060;
    font-weight: 300;
    font-size: 0.9em;
    white-space: nowrap;
}

.order-item-total {
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

.order-item-body {
    display: none;
    padding: 16px;
    border-top: 1px solid #c4c4d4;
}

.order-item-product {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 15px;
}

.order-item-product:not(:last-child) {
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e2e9;
}

.order-item-product-image {
    width: 46px;
    height: 46px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}

.order-item-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-item-product-name {
    flex-grow: 1;
}

.order-item-product-name a {
    color: #000;
    text-decoration: none;
}

.order-item-product-name a:hover {
    color: #CB856C;
}

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

.order-item-product-price {
    font-weight: 600;
    white-space: nowrap;
}

.image-placeholder {
    width: 46px;
    height: 46px;
    background: #f9f9f9;
    border-radius: 6px;
}

.load-more-container {
    padding: 16px;
    display: none;
    justify-content: center;
}

.load-more-container.is-visible {
    display: flex;
}


@media (max-width: 480px) {
    .order-item-product {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .order-item-product:not(:last-child) {
        padding-bottom: 6px;
    }

    .order-item-product-name {
        width: calc(100% - 46px);
    }

    .order-item-product-count {
        flex-grow: 1;
    }

    .order-item-product-image {
        width: 34px;
        height: 34px;
    }
}

#personal-data {
    width: 100%;
}

.form-fieldset label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.form-fieldset input {
    width: 100%;
}

.account-content-password-wrap {
    padding: 16px;
    border: 1px solid #d6d6e1;
    margin-top: 24px;
    background: #f9f9fb;
}

.account-content-password-wrap h3 {
    margin-bottom: 12px;
    margin-top: 0;
    font-weight: 600;
    font-size: 15px;
    padding: 0;
}

.account-content-password-wrap p {
    font-size: 14px;
    margin-bottom: 12px;
}

.add-product-to-cart {
    position: relative;
    width: 32px;
    height: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0d0aa;
    border: none;
    border-radius: 4px;

    &:hover {
        background: #e6b58c;
    }

    &[data-state="default"] {
        .added, .spinner-loader {
            display: none;
        }
    }

    &[data-state="loading"] {
        opacity: 0.8;
        pointer-events: none;

        .default, .added {
            display: none;
        }
    }

    &[data-state="added"] {
        .default, .spinner-loader {
            display: none;
        }
    }

    &[data-state="disabled"] {
        background: #e2e2e9;
        opacity: .5;
        pointer-events: none;

        .added, .spinner-loader {
            display: none;
        }
    }

    .spinner-loader {
        border: 2px solid #d6c0a6;
        border-top-color: #000000;
    }
}