@import '../common/vars.less';


.user-panel {
    top: 0;
    position: fixed;
    bottom: 0;
    width: 274px;
    background: @panelBg;
    left: -274px;
    .transition(left 0.3s);
    .side-menu-opened & {
        left: 0;
    }
    @media @tablet {
        font-size: 13px;
    }
}
.links-list {

    li {
        border-bottom: 1px solid #000;
        height: 59px;
        line-height: 59px;
        position: relative;
        .transition(background 0.3s);
        [class^='icon-'] {
            position: absolute;
            right: 18px;
            top: 50%;
            margin-top: -28px;
            font-size: 20px;
        }
        &:hover {
            mark {
                color: #fff;
            }
        }
    }
    a {
        text-decoration: none;
        .transition(color 0.3s);
    }
    mark {
        color: #388196;
        display: inline-block;
        vertical-align: middle;
        .transition(color 0.3s);
    }
    .user-name-sidebar {
        max-width: 140px;
        color: @titleColor;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        display: inline-block;
        vertical-align: middle;
        .transition(color 0.3s);
    }
    .marked {
        li {
            background: @mainColorScheme;
            &:hover {
                background: @buttonHoverBg;
            }
        }
        .sign-out-link {
            padding-left: 18px;
            mark {
                a {
                    color: #388196;
                    &:hover {
                        color: @buttonTextColor;
                    }
                }
            }
            &:hover {
                background: @mainColorScheme;
                color: @buttonTextColor;
            }
        }
        a {
            color: @titleColor;
            padding: 0 18px;
            display: block;
            white-space: nowrap;
            &:hover {
                color: #fff;
            }
        }
        mark {
            a {
                padding: 0;
            }
        }
        .basket {
            [class^='icon-'] {
                display: none;
            }
            &:after {
                position: absolute;
                top: 50%;
                margin: -9px 0 0;
                content: '';
                background: url(@sprite) -264px -178px no-repeat;
                width: 22px;
                height: 17px;
                right: 14px;
                @media @tablet {
                    background-image: url(@sprite2x);
                    background-size: 47px;
                    background-position: bottom right;
                }
            }
            &:hover:after {
                background-position: -264px -216px;
                @media @tablet {
                    background-position: top right;
                }
            }
        }
    }

    .cms-links {
        li {
            background: @titleColor;
            &:hover {
                background: @tableColor;
            }
        }
        a {
            color: #fff;
            padding: 0 18px;
            display: block;
        }
    }

    .currency {
        li {
            background: @titleColor;
            padding: 0 18px;
        }
        .currency-title {
            display: inline-block;
            vertical-align: middle;
            color: #fff;
        }
        .currency-item {
            display: inline-block;
            vertical-align: middle;
            color: #afafaf;
            line-height: 1.35;
            position: relative;
            padding: 0 1px 0 3px;
            margin: 0 5px;

            &:nth-child(2),
            &:nth-child(3) {
                &:after {
                    position: absolute;
                    content: '';
                    display: block;
                    width: 1px;
                    height: 18px;
                    background: #afafaf;
                    top: 0;
                    right: -8px;
                }
            }
            &:hover {
                color: @mainColorScheme;
                text-decoration: none;
            }
            &.active {
                border-bottom: 1px solid @white;
                text-decoration: none;
                color: @white;
            }
        }
        .default:before {
            content: '£';
        }
        .us_dollar_view:before {
            content: '$';
        }
        .euro_view:before {
            content: '€';
        }
    }

}

.nav-overlay {
    position: fixed;
    background: transparent;
    left: 0;
    top: 59px;
    width: 100%;
    height: 100%;
    z-index: -1;
}