.popup{
    display:none;
    align-items: center;
    width: 400px;
    min-width: 400px;
    height: 300px;
    min-height: 300px;
    background-color: white;
    text-align: center;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin: auto;
    position: relative;
    margin: 50px auto;
    animation-name: shrinkpopup;
    animation-duration: 0.5s;
    /* margin-bottom: 200px; */
}

.popup.h340{
    height: 340px;
    min-height: 340px;
}

.popup.rtl{
    direction: rtl;
}

@keyframes shrinkpopup {
    20%  {transform: scaleX(1.05) translateY(10px);}
    60%  {transform: scaleX(0.95) translateY(-10px);}
    100% {transform: scaleX(1.0) translateY(0);}
}

.popup.tall{
    animation-name: shrinktallpopup;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-delay: 0.25s;
}

.popup.hide{
    animation-name: hideawaypopup;
    animation-duration: 0.25s;
    animation-fill-mode: forwards;
}

.popup.tall.hide{
    height: var(--pmControlHeight);
    animation-name: hideawaypopup;
    animation-duration: 0.25s;
    animation-fill-mode: forwards;
}

@keyframes hideawaypopup {
    100% {transform: scale(1.2); opacity:0%;}
}

@keyframes shrinktallpopup {
    100% {height: var(--pmControlHeight);}
}

.popuptitle{
    padding:20px 20px 0px 20px;
    color: var(--pmGrayFont);
    font-weight: 500;
    font-size: 20px;
}

.popupDiv{
    padding:10px 20px;
}

.popupInput {
    padding: 10px;
    margin: 20px 0px 0px 0px;
    width: calc(100% - 0px);
    border: 1px solid lightgray;
    border-radius: 3px;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.02);
    outline: none;
    box-sizing: border-box; 
    font-family: var(--mainFont);
}

#loginEmailInput.rtl{
    direction: ltr;
    text-align: right;
}

.popupInput:focus {
    background-color: white;
    outline: none;
    border: 2px solid var(--pmMainColor);
    padding: 9px;
}

.popupButton{
    margin: 10px auto 10px auto;
    padding: 10px;
    width: calc(100% - 150px);
    font-size: 14px;
    background-color: var(--pmMainColor);
    border:0px;
    border-radius: 5px;
    color:white;
    display:block;
    cursor: pointer;
    font-family: var(--mainFont);
}

.popupButton.cancel{
    background-color: #DC3545;
}

.popupButton.return{
    background-color: transparent;
    color: var(--pmMainColor);
    border: 1px;
    border-style: solid;
}

.popupButton:not([disabled]):hover {
    opacity:0.85;
}


.popupButton:disabled, .popupButton[disabled]{
    background-color:lightgray;
}

.popupErr{
    color:red;
    font-size:14px;
    text-align:left;
    margin-bottom: 5px;
    margin-top: 5px;
    opacity:0%;
    display: block;
}

.popupErr.rtl{
    text-align: right;
}

.popupText{
    color:gray;
    font-size:14px;
    display:block;
    margin: 0px 3px;
    text-align:left;
}

.popupText.rtl{
    text-align: justify;
}

.popupHead{
    color: gray;
    font-size: 20px;
    display: block;
    margin: 0px 3px;
    text-align: left;
    font-weight: 500;
}

.popupHead.rtl{
    text-align: justify;
}

.popupClosebutton{
    width: 22px;
    height: 22px;
    font-size: 12px;
    color: gray;
    background-color: transparent;
    border: 0px;
    position: absolute;
    right: 10px;
    top: 10px;
    text-align: left;
    z-index: 99;
}

.popupClosebutton.rtl{
    left: 10px;
    right: initial;
}

.popupButtons{
    display: flex;
    column-gap: 10px;
}

.popupButtons.rtl{
   flex-direction: row-reverse;
}