@color_1: #ffffff;
@background_color_1: #4CAF50;
@background_color_2: #f44336;
@color_blue1: #17244D;
@aqua1: #4a4b53;
@aqua2: #4a4b53;
@aqua3: #4a4b53;



//
//  Common
//  _____________________________________________

& when (@media-common = true) {
	body {
		position: relative;
	}
    /****Popup Login ****/
    .mini-login {
        position: relative;
        float: right;
        font-weight: 600;
        font-size: 14px;
        width: max-content;
        left: 0;
        top: 0;
        display: inline-block;

        .header {
            &.links {
                margin: 0;
                padding: 0;
                text-align: center;
                width: max-content;
                float: left;

                li {
                    &:first-child {
                        /*position: absolute;
                        width: 300px;
                        right: -90px;
                        top: -24px;*/
                    }
                    font-weight: 400;
                    color: @color-white;
                    list-style: none;
                    .not-logged-in {
                        display: none;
                    }
                    &.greet.welcome {
                        .logged-in {
                            cursor: pointer;
                        }
                    }
                    &.customer-welcome {
                        /*display: none;*/
                        .customer-name {
                            .action.switch {
                                background: none;
                                border: none;
                                padding: 0;
                              &:after {
                                  content: ' ';
                                  background-image: url('../images/usuario-click.svg');
                                  background-repeat: no-repeat;
                                  background-size: 25px 25px;
                                  padding: 15px 15px;
                                  position: relative;
                                  top: 0;
                                  left: 0;
                                  max-width: 26px;
                                  text-align: center;

                              }
                            }
                        }

                        &.active {
                            .customer-menu {
                                .header.links {
                                    &:before {
                                        right: 67px;
                                        top: -12px;
                                    }
                                    display: flex;
                                    flex-wrap: wrap;
                                    flex-direction: column-reverse;
                                    text-align: left;
                                    max-width: 100px;
                                    right: -61px;
                                    li {
                                        color: #000000;
                                        &:first-child {
                                            order: 2;
                                        }
                                        &:nth-of-type(2) {
                                            order: 1;
                                        }
                                        &:nth-of-type(3) {
                                            order: 3;
                                        }
                                        &.link.authorization-link {
                                            .trigger-ajax-login {
                                                font-size: 14px;
                                                height: auto;
                                                width: 100%;
                                                &:before {
                                                    content: none;
                                                }
                                            }
                                        }
                                        &:hover {
                                            background: #ffffff;
                                        }
                                    }
                                    .greet.welcome {
                                        .logged-in {
                                            display: block;
                                            padding: 8px;
                                        }
                                        display: block;
                                        border-bottom: solid 1px #EEEEEE;
                                    }
                                    &:after {
                                        right: 67px;
                                        top: -14px;
                                    }
                                }

                            }
                        }
                    }


                    /*a {
                        color: #505660;
                        text-decoration: none;
                        display: ruby;
                    }

                    a.account {
                        &.loggedout {
                            &:before {
                                background-image: none;
                            }

                            &:after {
                                background-image: none;
                            }
                        }

                        &:before {
                            content: ' ';
                            background-image: url('../images/user-login.svg');
                            padding: 3px 13px;
                            padding-right: 15px;
                            background-repeat: no-repeat;
                        }

                        &:after {
                            content: ' ';
                            background-image: url('../images/chevron-down.svg');
                            padding: 3px 13px;
                            margin-left: 2px;
                            background-repeat: no-repeat;
                        }

                        &:hover {
                            color: #505660;
                            border-color: #FFFFFF;
                        }

                        &:focus {
                            color: #505660;
                            border-color: #FFFFFF;
                        }

                        &.loggedin {
                            &:before {
                                content: ' ';
                                background-image: url('../images/user-circle-orange.svg');
                                padding: 3px 13px;
                                padding-right: 15px;
                                background-repeat: no-repeat;
                            }

                            &:after {
                                background-image: none;
                                padding: 0;
                            }
                        }
                    }

                    span {
                        cursor: pointer;

                        &.loggedin {
                            &:after {
                                content: ' ';
                                background-image: url('../images/chevron-down.svg');
                                background-size: 20px;
                                padding: 3px 13px;
                                margin-left: 2px;
                                background-repeat: no-repeat;
                            }

                            &.active {
                                &:after {
                                    background-image: url('../images/chevron-up.svg');
                                }
                            }
                        }
                    }*/

                    &.logout {
                        display: none;
                        position: absolute;
                        left: -1.7rem;
                        width: max-content;

                        a.logout {
                            text-transform: capitalize;
                            margin-left: 3rem;

                            &:after {
                                content: ' ';
                                background-image: url('../images/logout.svg');
                                padding: 3px 13px;
                                margin-left: 2px;
                                background-repeat: no-repeat;
                            }
                        }
                    }
                }

                li.customer-welcome + li.authorization-link {
                    > .trigger-ajax-login {
                        display: none;
                        &:before {
                            background-image: url('../images/ico-logout.svg');
                            background-size: 32px 32px;
                            padding: 16px 16px;
                        }
                    }
                }

                > li.link {
                    &.authorization-link {
                        width: max-content;
                        margin-bottom: 0;
                        margin-top: 0;
                        margin-left: 0;
                        .trigger-ajax-login {
                            display: inline-block;
                            font-size: 14px;
                            height: 13px;
                            width: 100px;
                            text-align: center;

                            &:before {
                                content: ' ';
                                background-image: url('../images/usuario-up.svg');
                                background-repeat: no-repeat;
                                background-size: 28px 28px;
                                padding: 6px 15px;
                                position: relative;
                                top: 0;
                                left: 0;
                                max-width: 100px;
                                text-align: center;
                            }
                        }
                    }
                }


                /* .link {
                     &:first-child {
                         display: none;
                     }

                     &.wishlist, &.authorization-link {
                         //display: none;
                     }
                 }*/
            }
        }
    }

	.login-overlay {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 10;
		padding: 0;
		display: none;

	}

	.popup-login-form,
    .popup-forget-password,
	.popup-register-form {
		display: none;
	}

	.login-register-popup {
        zoom: 0.75;
        display: block;
        transition: 3s;
        position: relative;
        right: -52px;
        float: right;
        width: 441px;
        margin: 0 auto;
        background: #fff;
        margin-top: 44px;
        border: 1px solid #f1f1f1;
        -webkit-box-shadow: 0px 4px 39.9px -7px rgba(0, 0, 0, 0.25);
        box-shadow: 0px 4px 39.9px -7px rgba(0, 0, 0, 0.25);

		.response-msg {
			div {
			    margin: 5px 16px;
			    text-align: center;
			    padding: 5px 0;
			    border-radius: 3px;
				&.success {
				    color: #3c763d;
				    background-color: #dff0d8;
				    border-color: #d6e9c6;
				}
				&.error {
					color: #a94442;
				    background-color: #f2dede;
				    border-color: #ebccd1;
				}
			}
		}
		.login-link {
			margin-top: 10px;
		}



		.cancelbtn {
			width: auto;
			padding: 10px 18px;
			background-color: @background_color_2;
		}
		.imgcontainer {
			text-align: center;
			margin: 24px 0 12px 0;
		}
		img.avatar {
			width: 40%;
			border-radius: 50%;
		}
        .popup-login-form {
            #pass_log_id {
                padding-right: 30px;
            }
        }
        .popup-forget-password-form {
          .contain {
              height: 37rem;
              p {
                  font-weight: 400;
                  font-size: 16px;
              }
          }
        }
        .popup-register-form {
            .contain {
                button {
                    &.login {
                        display: block;
                        padding: 8px 18px;
                        margin-top: 25px;
                        margin-bottom: 32px;
                        max-width: 180px;
                        float: right;
                    }
                }
            }
        }
		.contain {
			padding: 32px;
            h4 {
                font-size: 20px;
                margin-top: 0;
                margin-bottom: 25px;
                color: #000000;
            }
            label {
                margin-top: 0;
                margin-bottom: 6px;
                b {
                    font-size: 16px;
                    font-weight: 400;
                }
                color: #000000;
            }
            input[type=text],
            input[type=password],
            input[type=email] {
                width: 100%;
                padding: 12px 20px;
                margin-top: 0;
                margin-bottom: 6px;
                display: inline-block;
                border: 1px solid #ccc;
                box-sizing: border-box;
            }
            .toggle-password {
                position: relative;
                right: 30px;
                cursor: pointer;
                &.fa-eye-slash {
                    &:before {
                        background-image: url('../images/eye-password-aqua.svg');
                    }
                }
                &:before {
                    content: ' ';
                    background-image: url('../images/eye-password.svg');
                    background-repeat: no-repeat;
                    background-size: 26px 26px;
                    padding: 13px 13px;
                    position: absolute;
                    top: -2px;
                    left: 0;
                    max-width: 26px;
                    text-align: center;
                }
            }
            .toggle-password1 {
                position: absolute;
                display: block;
                right: 0;
                margin-top: -32px;
                &.fa-eye-slash {
                    &:before {
                        background-image: url('../images/eye-password-aqua.svg');
                    }
                }
                &:before {
                    content: ' ';
                    background-image: url('../images/eye-password.svg');
                    background-repeat: no-repeat;
                    background-size: 26px 26px;
                    padding: 2px 13px;
                    position: relative;
                    top: 0;
                    left: -40px;
                    max-width: 26px;
                    text-align: center;
                    cursor: pointer;
                }
            }
            .toggle-password2 {
                position: absolute;
                display: block;
                right: 0;
                margin-top: -32px;
                &.fa-eye-slash {
                    &:before {
                        background-image: url('../images/eye-password-aqua.svg');
                    }
                }
                &:before {
                    content: ' ';
                    background-image: url('../images/eye-password.svg');
                    background-repeat: no-repeat;
                    background-size: 26px 26px;
                    padding: 2px 13px;
                    position: relative;
                    top: 0;
                    left: -40px;
                    max-width: 26px;
                    text-align: center;
                    cursor: pointer;
                }
            }
            .field {
                &.choice {
                    &.newsletter {
                        display: none;
                        font-size: 16px;
                        .checkbox {
                            display: inline;
                        }
                        .label {
                            display: inline;
                            color: #000000;
                            font-size: 14px;
                        }
                    }
                }
                &.captcha {
                    &.required {
                        .label {
                            color: #000000;
                            font-size: 14px;
                        }
                    }
                }
            }

            .forget-password-link {
                margin-top: 27px;
                margin-bottom: 20px;
                a {
                    color: @aqua1;
                    font-weight: 400;
                    font-size: 16px;
                }
            }
            .login-link {
                margin-top: 27px;
                margin-bottom: 20px;
                a {
                    color: @aqua1;
                    font-weight: 400;
                    font-size: 16px;
                }
            }

            button {
                background: @aqua1;
                color: @color_1;
                display: block;
                font-size: 14px;
                font-style: normal;
                font-weight: 400;
                padding: 14px 20px;
                margin: 8px auto;
                border: none;
                cursor: pointer;
                width: 100%;
                max-width: 200px;
                border-radius: 3px;
                -moz-border-radius: 3px;
                -webkit-border-radius: 3px;
                &:hover {
                    opacity: 0.8;
                    border: none;
                    background: @aqua1;

                }
                &:focus {
                    background: @aqua1;

                    border: none;
                }

                &:active {
                    background: @aqua1;

                    border: none;
                }



                &.forgetpassword {
                    display: block;
                    padding: 10px 20px;
                    margin-top: 25px;
                    margin-bottom: 32px;
                    max-width: 180px;
                    float: right;
                }

            }

            .captcha {
                .control {
                   &.captcha-image {
                       .captcha-img {
                           margin: 0 10px 0 0;
                       }
                       .captcha-reload {
                           display: inline;
                           max-width: 160px;
                           height: 55px;
                           padding: 0;
                           margin: auto;
                       }
                   }
                }

            }

            .register-link {
                background: @aqua2;
                color: @aqua3;
                display: block;
                font-size: 14px;
                font-style: normal;
                font-weight: 400;
                padding: 14px 20px;
                margin: 0 auto;
                margin-top: 25px;
                border: none;
                cursor: pointer;
                width: 100%;
                max-width: 200px;
                border-radius: 3px;
                -moz-border-radius: 3px;
                -webkit-border-radius: 3px;
                text-align: center;
                a {
                    color: @color_1;
                    text-decoration:  none;
                    &:hover{
                        color: @color_1;
                    }
                    &:visited {
                        color: @color_1;
                    }
                }
            }
            .login-link {
                background: @color_1;
                color: @color_blue1;
                display: block;
                font-size: 14px;
                font-style: normal;
                font-weight: 400;
                padding: 7.5px 20px;
                margin-top: 25px;
                border: solid 1px @color_blue1;
                cursor: pointer;
                width: 100%;
                max-width: 180px;
                border-radius: 3px;
                -moz-border-radius: 3px;
                -webkit-border-radius: 3px;
                text-align: center;
                float: left;
                margin-bottom: 32px;
                a {
                    color: @color_blue1;
                    font-weight: 400;
                    font-size: 16px;
                }
            }
		}
		span.psw {
			float: right;
			padding-top: 16px;
		}
	}
}

//
//  Mobile @screen__m
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {

}

//
//  Mobile @screen__s
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
    .login-register-popup {
		span.psw {
			display: block;
			float: none;
		}
		.cancelbtn {
			width: 100%;
		}
	}
}

//
//  Desktop
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {

}

@import "_responsive.less";
