input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked~.modal,
input[type="checkbox"]:checked~.modal-background {
    display: block;
}

.modal-background {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    z-index: 9998;
}

.modal {
    position: relative;
    top: 20px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    display: none;
    width: 60%;
    min-height: 300px;
    background-color: #fff;
    box-sizing: border-box;
    z-index: 9999;
    padding: 15px 20px;
    border: solid 3px #9598a3;
    overflow-y: auto;
    height: 445px;
}

.modal>p {
    padding: 15px;
    margin: 0;
}

.modal-header {
    /*background-color: #f9f9f9;
	border-bottom: 1px solid #dddddd;*/
    border-bottom: none;
    box-sizing: border-box;
    height: 50px;
    margin-bottom: 15px;
}

.modal-content {
    border: none;
}

.modal-header h3 {
    margin: 0;
    box-sizing: border-box;
    padding-left: 15px;
    line-height: 1.4 !important;
    color: #4d4d4d;
    font-size: 16px;
    display: inline-block;
}

.modal-header label {
    box-sizing: border-box;
    border-left: none !important;
    float: right;
    line-height: 50px;
    padding: 0 15px 0 15px;
    cursor: pointer;
    width: 46px !important;
}

.modal-content input,
.modal-content select {
    margin: 5px;
}

.modal-header label:hover img {
    opacity: 0.6;
}

.model-overlay {
    display: inline-block;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    left: 0;
    right: auto;
    display: none;
    z-index: 999999999999;
    top: 0;
    bottom: 0;
}

.left-block {
    float: left;
    width: 200px;
}

.right-block {
    float: left;
    width: 500px;
    margin-left: 10px;
}

@media only screen and (max-width: 1024px) {
    .left-block {
        width: 25%;
    }
    .right-block {
        float: right;
        width: 70%;
    }
}

@media only screen and (max-width: 768px) {
    .modal {
        width: 80%;
    }
}

@media only screen and (max-width: 667px) {
    .modal {
        width: 90%;
    }
}

@media only screen and (max-width: 480px) {
    .left-block {
        width: 100%;
        text-align: center;
    }
    .left-block .imgblk img {
        display: inline-block;
    }
    .right-block {
        float: left;
        width: 100%;
        margin: 20px 0 0 0;
    }
}

@media only screen and (max-width: 320px) {
    .modal-header h3 {
        padding-left: 0;
    }
}