.pWrapper .pWin.angularTemplate{
    visibility:hidden;
}

.pWrapper{
    position:fixed;
    top:0px;
    left:0px;
    width:100%;
    height:100%;
    display:block;
    overflow:hidden;
    z-index:999999999;
}

.flex{
    width:100%;
    height:100%;
    display:-webkit-flex;
    display:flex;
    justify-content:center;
    -webkit-flex-direction:column;
    flex-direction:column;
}

.pWrapper .pBg{
    position:absolute;
    top:0px;
    left:0px;
    width:100%;
    height:100%;
    display:block;
    background:#333;
    opacity:0.5;
    z-index:1000;
}

[dir="rtl"] .pWrapper .pBg{
    right:0;
    left:auto;
}

.pWrapper .pWin{
    position:relative;
    float:none;
    margin:0px auto;
    width:96%;
    max-height:90%;
    max-width:1100px;
    background:rgba(255,255,255,.95);
    z-index:10001;
    border:1px solid #eee;
    box-shadow:0 0 10px rgba(0, 0, 0, 0.5);
    border-radius:0;
}

.pWrapper .pWin.overflow{
    height:90%;
}

.pWrapper .pWin.withBtn{
    padding-bottom:61px;
}

.pWrapper .pWin.overflow img{
    max-width:100%;
}

.pWrapper .pWin .pText{
    position:relative;
    width:100%;
    float:left;
    padding:2px 10px;
    box-sizing:border-box;
    margin:0px;
    overflow-y:scroll;
    -webkit-perspective:0;
    -webkit-overflow-scrolling:touch;
}

.pWrapper .pWin.overflow .pText{
    position:absolute;
    width:calc(100% - 20px);
    height:calc(100% - 20px);
    overflow-y:scroll;
    -webkit-overflow-scrolling:touch;
}

.pWrapper .pWin.withBtn:not(#__dispatchCountry__) .pText{
    height:calc(100% - 70px);
}

.pWrapper .pWin .pText img{
    margin:0 auto;
}

.panelPopupTitle{
    font-size:20px;
    padding:0 0 10px;
}

.pWrapper .pWin .pButtons{
    position:absolute;
    overflow:hidden;
    z-index:1234;
    bottom:10px;
    left:10px;
    right:10px;
    padding:10px 0 0;
}

.pWrapper .pWin.debugActive .pButtons,
.pWrapper .pWin.debugActive .pClose{
    display:none;
}

.pWrapper .pWin.debugActive{
    height:32px !important;
    padding:0px !important;
}

.pWrapper .pWin.debugActive .pText{
    line-height:30px;
    margin:0px;
    text-align:center;
    overflow:hidden;
    white-space:nowrap;
}

.pWrapper .pClose{
    position:absolute;
    top:-37px;
    right:-1px;
    width:36px;
    height:36px;
    z-index:333;
    cursor:pointer;
    background:rgba(255,255,255,.95);
    box-shadow:0 -5px 10px 0px rgba(0, 0, 0, 0.2);
}

.pWrapper .pClose:before{
    content:'x';
    float:left;
    width:36px;
    height:36px;
    line-height:36px;
    font-size:17px;
    text-align:center;
    font-weight:600;
}

[dir="rtl"] .pWrapper .pClose{
    right:auto;
    left:-1px;
}

.br5{
    -webkit-border-radius:5px;
    -moz-border-radius:5px;
    border-radius:5px;
}

.pWrapper .pWin.flexbox {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    max-height: 90%;
    position: relative;
}

.pWrapper .pWin.flexbox .pText {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.hideThis{
    display:none;
}

.popupClose,
.close{
    position:absolute;
    top:-15px;
    right:-15px;
    width:30px;
    height:30px;
    z-index:333;
    cursor:pointer;
}

.popupClose:before,
.close:before{
    content:'x';
    float:left;
    width:30px;
    height:30px;
    line-height:30px;
    font-size:17px;
    text-align:center;
    font-weight:600;
}

#lightContent{
    text-align:center;
    min-width:150px;
    min-height:150px;
}

#lightControl{
    position:absolute;
    top:50%;
    left:10px;
    right:10px;
    height:30px;
    margin-top:-15px;
}

#lightControl span{
    width:30px;
    height:30px;
    background-repeat:no-repeat;
    cursor:pointer;
}

#prevLight{
    content:'\e81c';
    line-height:30px;
    color:inherit;
    font-family:'tsoft';
    font-style:normal;
    font-weight:normal;
    text-decoration:inherit;
    font-variant:normal;
    text-align:center;
    text-transform:none;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    speak:none;
}

#nextLight{
    content:'\e81d';
    line-height:30px;
    color:inherit;
    font-family:'tsoft';
    font-style:normal;
    font-weight:normal;
    text-decoration:inherit;
    font-variant:normal;
    text-align:center;
    text-transform:none;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    speak:none;
}

.popupTitle,
.videoTitle{
    border-bottom:1px solid #ececec !important;
    font-size:16px !important;
    color:#666 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    font-weight:600;
}

.popupBtns,
.modal-footer{
    border-top:1px solid #ececec;
}

.memberPopupWrapper{
    max-width:580px;
}

.memberPopupWrapper .col,
.memberPopupWrapper .box{
    margin:0;
}

.memberPopupWrapper .popupInnerBlock{
    width:100%;
}

.videoPopup{
    width:668px;
    margin-top:-10px;
    margin-bottom:-10px;
}

.popupMain,
.popupTitle,
.popupInner,
.popupBtns{
    clear:both;
    width:100%;
}

@media screen and (min-width: 769px){

    .ie .pWrapper .pWin.overflow{
        margin-top:40px !important;
    }

}

@media screen and (max-width: 768px){

    .pWrapper .pClose{
        box-shadow:none;
    }

    body:not(.flexPopup) .pWrapper .pClose{
        top:5px;
        right:10px;
    }

    body:not(.flexPopup) .pWrapper .pWin{
        width:100% !important;
        height:100% !important;
        max-width:none;
        max-height:none;
        border-radius:0;
    }

    .pWrapper .pWin{
        max-width:90%;
    }

    .pWrapper .pWin .pButtons{
        padding-top:0;
    }

    .pWrapper .pWin .pButtons button{
        margin-top:10px;
    }

    .pWrapper .pWin.withBtn .pText{
        height:100%;
    }

    .pWrapper .pWin.overflow .pText{
        position:relative;
        width:100%;
    }

}

div#login-popup .pClose.close {
    display: none;
}

div#login-popup, div#membership-popup {
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: 0 11px 33px -9px rgba(0, 0, 0, 0.5);
    max-height: 90%;
    overflow-y: auto;
    max-width: 90%;
}

div#login-popup .pText.col.col-12, div#membership-popup .pText.col.col-12 {
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.login-popup {
    display: flex;
    align-items: center;
}

a#popup-member-register {
    font-size: 0;
    line-height: 1;
}

.login-popup .col.col-7.col-sm-12 {
    padding: 0 40px;
}

.popup-title {
    font-size: 23px;
    font-weight: bold;
    height: 40px;
    display: flex;
    align-items: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.login-popup-title:after, .membership-popup-title:before {content: '';width: 44px;height: 40px;margin-left: auto;background: url(popup-user-title.svg) no-repeat center;}

.login-popup span.icon.icon-mail, div#membership-popup span.icon.icon-mail {
    left: auto;
    right: 0;
    background: url(popup-mail-icon.svg) no-repeat center;
}

.login-popup span.icon.icon-pass {
    left: auto;
    right: 0;
    background: url(popup-sifre-icon.svg) no-repeat center;
}

.remember-me {
    height: 60px;
    display: flex;
    align-items: center;
}

.remember-me input#pop-remember {
    width: 20px;
    height: 20px;
    border: solid 1px #979797;
    padding: 0;
    position: relative;
    margin: 0;
    margin-right: 20px;
}

.remember-me span.textalan {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me span.textalan label {
    font-size: 15px;
    font-weight: bold;
}

a#popup-member-login {
    height: 60px;
    background-color: #1f1f1f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 15px;
    font-weight: bold;
    border: 0;
    box-sizing: border-box;
}

.remember-me input#pop-remember[type=checkbox]:checked {
    background: url(checkbox-selected.svg) no-repeat center;
    border-color: transparent;
    background-size: 100%;
}

a#popup-member-forgot-password {
    font-size: 12px;
    font-weight: 300;
    color: #1f1f1f;
}

.login-popup input#pop-email, .login-popup input#pop-password {
    padding-left: 15px;
}

div#membership-popup .popupInnerBlock {
    padding: 20px;
    box-sizing: border-box;
}

.membership-popup-title:before {background: url(popup-membership.svg) no-repeat center;margin-left: 0;margin-right: 20px;}

a#without-membership {
    height: 60px;
    background-color: #ec640d;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}


div#membership-popup input#without-email {
    padding-left: 15px;
}

div#membership-popup .pClose.close {
    display: none;
}

@media screen and (max-width:768px) { 
.login-popup {
    display: block;
}

.login-popup .col.col-7.col-sm-12 {
    padding: 20px;

}

.popup-title {
    font-size: 16px;
    height: 20px;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.login-popup-title:after, .membership-popup-title:before {
    width: 22px;
    height: 20px;
    background-size: 100%;
}

.remember-me {
    height: 45px;
}

a#popup-member-login {
    height: 45px;
}

div#membership-popup {
    height: auto !important;
}

a#without-membership {
    height: 45px;
}

}