@media only screen
and (min-device-width : 320px) and (max-device-width : 480px) {
    #callback-button-form {
        font-size: 10px;
        width: 300px;
        height: 150px;
    }
}

@media only screen
and (min-device-width : 800px) and (max-device-width : 1280px) {
    #callback-button-form {
        font-size: 12px;
        width: 700px;
        height: 300px;
    }
}

@media only screen
    and (min-device-width: 768px) and (max-device-width: 1366px){


}

@media only screen and (max-device-width : 1920px) and (min-device-width : 1080px) {
    #callback-button-form {
        font-size: 20px;
        width: 800px;
        height: 300px;
    }


}

/*input:-webkit-autofill {
    -webkit-box-shadow: inset 0 0 0px 9999px white;
}*/


#callback-button {
    position: fixed;
    cursor: pointer;
    border: 1px solid  #000000;
    display: block;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 8px;
    width: 66px;
    max-width: 200px;
    background: #fff; /* запасной цвет для старых браузеров */
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease-out;
	box-sizing: border-box;
}
#callback-button:hover {
    background: #fff;
    color: #000;
    transition: all 0.5s ease-in;
    text-decoration: none;
    /*
    background-color: #ccc;
    */
}

#callback-button-fon {
    position: fixed;
    top:0;
    left:0;
    bottom:0;
    right:0;
    background-color: #B9B9BC;
    opacity:.5;
    z-index: 1000;
}

/* * {
    box-sizing: border-box;
}*/

#callback-button-form{
    position: absolute;
    width: 390px;
    height: 270px;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    z-index: 1001;
    display: block;
    background-color: #ffffff;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    left: 50%;
    top: 50%;
    margin-left: -195px;
    margin-top: -135px;
	box-sizing: border-box;
}

/*a{
    cursor: pointer;
}*/

.page1 {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    width: 100%;
    height: 100%;
    padding: 10px 20px 0;
    z-index: 3;
    display: inline-flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content:center;
	box-sizing: border-box;
}
.page2 {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    width: 100%;
    height: 100%;
    border: solid 1px #ccc;
    z-index: 3;
    display: none   ;
    flex-direction: column;
    justify-content:center;
    align-items: center;
	box-sizing: border-box;
}

/*input, textarea, select {
    -webkit-appearance: none;
    -webkit-border-radius: 0;
    outline:none;
    border-radius: 0;
}
*/

.greetings {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 0 25px 0x;
	box-sizing: border-box;
}

.greetings:before {
    content: '';
    background: #333;
    -webkit-mask: url('../templates/default/images/sprite.svg#support') center no-repeat;
    mask: url('../templates/default/images/sprite.svg#support') center no-repeat;
    -webkit-mask-size: cover;
    mask-size: cover;
    display: block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.inputButton{
    display: flex;
    flex-direction: column;
    align-self: center;
    width:80%;
    height: 25%;
	box-sizing: border-box;
}

#phoneNumber {
    background: #F3F3F3;
    align-self: center;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-align: center;
    width:100%;
    height: 14%;
    margin-bottom: 12px;
    border: 1px solid #DCE0E3;
	box-sizing: border-box;
}

#phoneNumber:focus { background: #fff; }

#send-number, .successOk {
	cursor: pointer;
    display: block;
    align-self: center;
	background: #7fbf40;
    box-shadow: 0 1px 0 #6faf37;
    color: #fff;
    font: 700 18px/36px 'Roboto Condensed';
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    display: block;
    width: 100%;
    height: 36px;    
    box-sizing: border-box;
}

#send-number:hover, .successOk:hover {
    background: #7ece30;
    box-shadow: 0 1px 0 #a6a6a6;
    text-decoration: none;
}

/*
#send-number:active{
    color: rgb(51,51,51);
    border: 1px solid rgb(204,204,204);
    background: rgb(238,238,238) linear-gradient(rgb(238,238,238), rgb(224,224,224));
    box-shadow: 0 1px 2px rgba(0,0,0,.1) inset;
}
*/

#send-number, 
#phoneNumber:focus {
    outline-width: 0;
}

#advertising{
    margin-top: 30px;
    align-self: center;
    font-size: 15px;
    color: #7FBF40;
	box-sizing: border-box;
    text-decoration: underline;
}

#advertising:hover { text-decoration: none; }

#alertMsg {
    font-size: 13px;
    color: white;
    background: #F13D3E;
    position: absolute;
    top: 96px;
    line-height: 32px;
    height: 32px;
    left: calc(100% - 10px);
    padding: 0 7px;
    border-radius: 3px;
    box-sizing: border-box;
    visibility: hidden;
    white-space: nowrap;
	box-sizing: border-box;
}

#alertMsg:after {
    content: "";
    display: block;
    width: 6px;
    height: 12px;
    position: absolute;
    top: 50%;
    margin-top: -6px;
    left: -6px;
    background: url(https://elmag.com.ua/site/templates/default/css/../images/sprite.png?v=1509477811) no-repeat -122px -162px;
}

.gratitude{
    margin-bottom: 10%;
    font-size: 28px;
	box-sizing: border-box;
	text-align: center;
	line-height: 34px;
}


.successOk{
	width: auto;
    min-width: 100px;
}


#callback-close {
    background: #000;
    -webkit-mask: url(../templates/default/images/sprite.svg#close_button) center no-repeat;
    mask: url(../templates/default/images/sprite.svg#close_button) center no-repeat;
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s linear;
}

#callback-close:hover {
    opacity: 0.7;
}

#callback-close:focus {
    outline-width: 0;
}

#CloudCallsImg{
    position: absolute;
    bottom: 5px;
    right: 5px;
    margin: 10px;
    width: 140px;
    height: 45px;
	box-sizing: border-box;
}

@media screen and (max-width: 790px) {

    #send-number {
        margin-top: 25px;
    }

    #alertMsg {
    top: 114px;
    left: 20px;
    right: 200px;
}

#alertMsg:after {
    transform: rotate(90deg);
    left: 10px;
    top: -9px;
    margin-top: 0;
    }

#advertising {
    margin-top: 20px;
    }
}

@media screen and (max-width: 415px) {
    #callback-button-form {
        position: absolute;
        width: 310px;
        margin-left: -155px;
    }

    .greetings {
        font-size: 15px;
        margin: 0 -11px 27px -5px;
    }

    #alertMsg {
        right: 110px;
    }
}