@import "account/_my-orders";
@import "account/_my-downloads";
@import "account/_my-wishlist";
@import "account/_my-reviews";
@import "account/_my-addresses";
@import "account/_my-profile";

%account-common-buttons {
    display: inline-flex;
    margin-top: -2px;
    padding: 0;
    letter-spacing: 2px;

    &:hover {
        color: $color-default;
        color: var(--color-primary);
    }

    > i {
        margin: 5px 10px 0 0;
    }
}

.account-wrap {
    margin-top: 42px;

    .account-left {
        min-width: 267px;
    }

    .account-right {
        width: 100%;
        margin-left: 30px;
        overflow: hidden;
    }
}

.account-wrap-inner {
    display: flex;
}

.account-sidebar {
    li {
        &.active {
            a {
                font-weight: var(--font-medium);
                color: $color-default;
                color: var(--color-primary);

                &:after {
                    position: absolute;
                    content: "";
                    left: 0;
                    top: 17px;
                    height: 15px;
                    width: 7px;
                    background: $color-default;
                    background: var(--color-primary);
                    border-top-right-radius: 12px;
                    border-bottom-right-radius: 12px;
                }
            }
        }

        a {
            font-size: 16px;
            line-height: 36px;
            position: relative;
            display: inline-block;
            color: $color-black;
            padding: 8px 0 8px 28px;

            .count {
                position: absolute;
                font-size: 10px;
                line-height: 16px;
                top: 6px;
                right: -14px;
                height: 16px;
                width: 16px;
                color: #ffffff;
                background: #e23e1d;
                text-align: center;
                border-radius: 50%;
                display: none;
            }

            &:hover {
                color: $color-default;
                color: var(--color-primary);
            }

            > i {
                font-size: 24px;
                vertical-align: top;
                margin-top: 5px;
                margin: 5px 12px 0 0;
                color: $color-gray;
            }
        }
    }
}

.account-wrap {
    .pagination {
        margin: 17px -13px -15px 0;
    }

    .empty-message {
        padding: 64px 15px 63px;
        text-align: center;

        > h3 {
            font-weight: var(--font-normal);
        }
    }
}

@media screen and (max-width: 1400px) {
    .account-wrap {
        .account-left {
            min-width: 245px;
        }
    }
}

@media screen and (max-width: $lg) {
    .account-wrap {
        margin-top: 23px;

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

        .account-right {
            margin: 30px 0 0 0 !important;
        }
    }

    .account-wrap-inner {
        flex-direction: column;
    }

    .account-sidebar {
        li {
            a {
                .count {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }
        }
    }
}
