.samo_popup {
    border: 2px solid gray;
    border-radius: 5px;
    position: absolute;
    display: none;
    z-index: 1003;
    padding: 10px;
    background: white;
    text-align: justify;
    box-shadow: 0px 0px 10px white;
    color: black;
    cursor: default;
    box-sizing: border-box;
}

div.samo_veil {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0px;
    top: 0px;
    display: none;
    background: black;
    filter: alpha(opacity = 60);
    opacity: 0.6;
    z-index: 999;
    cursor: wait;
}


div.samo_popup_close_form {
    cursor: pointer;
    color: #999;
    margin: 5px;
    font-size: 11px;
    display: inline-block;
	text-align: right;
	padding: 5px;
	float: right;
	text-transform: uppercase;
}

div.samo_popup_close_form:hover {
    color: black;
}

div.samo_popup_container {
    padding: 5px;
    box-sizing: border-box;
}

@media screen and (max-width: 800px) {
    .samo_popup {

        padding: 0 !important;
        border: 0 !important;

        display: block;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        position: fixed !important;
    }

    .samo_popup > table {
        width: 100% !important;
        background: white;
    }

    .samo_popup .samo_popup_container {
        width: calc(100vw - 9px) !important;
        height: calc(100vh - 45px) !important;
        overflow-y: auto;
    }


    body.popup_open {
        max-width:100%;
        max-height:100%;
        overflow:hidden;
    }

}