.popup,
.popup .title,
.popup-table-cell {
    box-sizing: border-box
}

.popup .title,
.popup-container .button {
    -webkit-touch-callout: none;
    -khtml-user-select: none
}

.popup-container a,
.popup-container a:active,
.popup-container a:hover,
.popup-container a:visited {
    color: #009688;
    font-weight: 500;
    text-decoration: none
}

::-webkit-scrollbar {
    width: 12px
}

.popup,
.popup .title,
.popup-table {
    left: 0;
    width: 100%
}

::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0)
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .1);
    background-clip: padding-box;
    border: solid transparent;
    border-width: 2px 3px
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, .15)
}

.popup-container {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, .6);
    -webkit-transition: opacity .1s linear;
    transition: opacity .1s linear;
    overflow-y: hidden;
    font-family: Roboto, sans-serif;
    color: #545454
}

.popup-container.hide {
    opacity: 0;
    pointer-events: none
}

.popup-table {
    position: absolute;
    top: 0;
    display: table;
    table-layout: fixed;
    height: 90%;
    -webkit-transition: -webkit-transform .3s ease;
    transition: transform .3s ease
}

.popup-container.hide .popup-table {
    opacity: 0;
    pointer-events: none;
    -webkit-transform: translateY(6px);
    transform: translateY(6px)
}

.popup-table-cell {
    display: table-cell;
    vertical-align: middle;
    padding: 16px
}

.popup {
    position: relative;
    margin: 0 auto;
    max-width: 900px;
    height: 100vh;
    max-height: 50vh;
    overflow-y: auto;
    overflow: hidden;
    padding: 66px 0 52px;
    background-color: #fafafa;
    border-radius: 2px;
    font-size: 100%;
    color: #303030
}

.popup .title {
    position: absolute;
    top: 0;
    height: 48px;
    min-width: 200px;
    line-height: 48px;
    padding: 0 12px;
    -webkit-transition: background-color .1s linear;
    transition: background-color .1s linear;
    font-weight: 500;
    border-bottom: 1px solid #EAEAEA;
    background-color: #09579b;
    color: #fff;
    border-radius: 2px 2px 0 0;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: 1.8em;
    text-align: center
}

.popup .content,
.popup .text {
    padding: 12px;
    box-sizing: border-box
}

a.fancybox.fancybox2 img {
    width: 28px
}

.popup .content {
    width: 100%;
    min-width: 161px;
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 0;
    margin: 0 auto
}

.popup .content p {
    margin-bottom: 10px
}

.popup .subtitle {
    color: #009688
}

.popup .text {
    line-height: 1.5em
}

.popup-container .buttons {
    padding: 10px;
    position: absolute;
    bottom: 40px;
    width: 100%;
    font-weight: 700;
    box-sizing: border-box;
    border-top: 1px solid #EAEAEA;
    background-color: #FAFAFA;
    border-radius: 0 0 2px 2px
}

.popup-container .button {
    box-sizing: border-box;
    min-width: 60px;
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    color: #fff;
    background: #09579b;
    cursor: pointer;
    border-radius: 3px;
    -webkit-transition: background-color .1s linear;
    transition: background-color .1s linear;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 0 auto!important;
    text-align: center!important;
    float: none;
    width: 10%;
    position: absolute;
    right: 46%;
    top: 49%
}

@media all and (max-width:1024px) {
    .popup .text {
        margin: 40px 0 0!important
    }
    .popup-container .button {
        right: 37%!important;
        bottom: 11%;
        width: 23%!important
    }
    .popup {
        position: relative;
        margin: 0 auto;
        width: 75%;
        overflow-y: auto;
        overflow: hidden;
        padding: 0 0 52px;
        max-height: 30vh;
        border-radius: 2px;
        box-sizing: border-box;
        font-size: 100%;
        color: #303030;
        left: 0
    }
}

@media all and (max-width:640px) {
    .popup .content {
        width: 100%;
        min-width: 161px;
        height: 100%;
        overflow: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
        border: 0;
        margin: 0 auto
    }
    .popup-container .button {
        width: 60%
    }
}

@media screen and (min-width:220px) and (max-width:560px) {
    .popup .text {
        margin: 0!important
    }
    a.fancybox.fancybox2 img {
        width: 28px
    }
    .popup-container .button {
        position: absolute;
        right: 0;
        top: 10px;
        box-sizing: border-box;
        min-width: 60px;
        height: 40px;
        line-height: 0;
        padding: 21px 15px;
        color: #fff;
        background: #09579b;
        cursor: pointer;
        border-radius: 3px;
        -webkit-transition: background-color .1s linear;
        transition: background-color .1s linear;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        margin: 0 auto!important;
        text-align: center!important;
        float: none;
        width: 30%!important
    }
    .popup {
        left: 0;
        position: relative;
        margin: 0 auto;
        width: 100%;
        overflow-y: auto;
        overflow: hidden;
        padding: 48px 0 52px;
        border-radius: 2px;
        box-sizing: border-box;
       font-size: 14px;
       max-height:72vh;
        color: #303030
    }
}

@media screen and (min-width:550px) and (max-width:800px) {
    .popup .text {
        margin: 0!important
    }
    .popup .content {
        width: 100%;
        min-width: 161px;
        height: 100%;
        overflow: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
        border: 0;
        margin: 0 auto
    }
    a.fancybox.fancybox2 img {
        width: 16px
    }
    .popup-container .button {
        right: 36%!important;
        top: 50%;
        box-sizing: border-box;
        min-width: 60px;
        height: 40px;
        line-height: 40px;
        padding: 0 15px;
        color: #fff;
        background: #09579b;
        cursor: pointer;
        border-radius: 3px;
        -webkit-transition: background-color .1s linear;
        transition: background-color .1s linear;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        margin: 0 auto!important;
        text-align: center!important;
        float: none;
        width: 50%;
        position: absolute
    }
    .popup {
        left: 0;
        position: relative;
        margin: 0 auto;
        width: 75%;
        overflow-y: auto;
		 max-height: 78vh;
        overflow: hidden;
        padding: 48px 0 52px;
        border-radius: 2px;
        box-sizing: border-box;
        font-size: 100%;
        color: #303030
    }
}

@media screen and (min-width:750px) and (max-width:770px) {
    .popup .text {
        margin: 0!important
    }
    .popup-container .button {
        right: 23%!important;
        top: 51%!important;
        box-sizing: border-box;
        min-width: 60px;
        height: 40px;
        line-height: 40px;
        padding: 0 15px;
        color: #fff;
        cursor: pointer;
        border-radius: 3px;
        -webkit-transition: background-color .1s linear;
        transition: background-color .1s linear;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        margin: 0 auto!important;
        text-align: center!important;
        float: none;
        width: 50%!important;
        position: absolute
    }
    a.fancybox.fancybox2 img {
        width: 28px
    }
    .popup {
        position: relative;
        margin: 0 auto;
        width: 83%;
        overflow-y: auto;
        overflow: hidden;
        padding: 48px 0 52px;
        border-radius: 2px;
        box-sizing: border-box;
	     max-height: 42vh;
        font-size: 100%;
        color: #303030
    }
}

@media screen and (min-width:768px) and (max-width:1366px) {
    .popup .text {
        margin: margin: 0 0!important
    }
    a.fancybox.fancybox2 img {
        width: 28px
    }
    .popup-container .button {
        box-sizing: border-box;
        min-width:0px;
        height: 40px;
        line-height: 40px;
        padding: 0 15px;
        color: #fff;
        background: #09579b;
        cursor: pointer;
        border-radius: 3px;
        -webkit-transition: background-color .1s linear;
        transition: background-color .1s linear;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        margin: 0 auto!important;
        text-align: center!important;
        float: none;
        width: 18%;
        position: absolute;
        right:41%;
        top: 49%
    }
    .popup .content {
        width: 100%;
        min-width: 161px;
        height: 100%;
        overflow: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
        border: 0;
        margin: 0 auto
    }
}

@media screen and (min-width:1400px) and (max-width:1600px) {
    .popup .text {
        margin: 0!important
    }
    a.fancybox.fancybox2 img {
        width: 28px
    }
    .popup-container .button {
        box-sizing: border-box;
        min-width:0;
        height: 40px;
        line-height: 40px;
        padding: 0 15px;
        color: #fff;
        cursor: pointer;
        border-radius: 3px;
        -webkit-transition: background-color .1s linear;
        transition: background-color .1s linear;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        margin: 0 auto!important;
        text-align: center!important;
        float: none;
        width: 18%;
        position: absolute;
        top: 49%
    }
    .popup .content {
        z-index: 9999999;
        width: 100%;
        min-width: 161px;
        height: 100%;
        overflow: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
        border: 0;
        margin: 0 auto
    }
}