﻿.fixed-overlay {
    position: fixed;
    overflow: auto;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 20;
}

.fixed-overlay__modal {
    text-align: center;
    white-space: nowrap;
}

.fixed-overlay__modal:after {
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 100%;
    content: '';
}

.modal {
    display: inline-block;
    vertical-align: middle;
}

.modal-dialog {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
    max-width: 565px;
    text-align: center;
    white-space: normal;
    background: #fff;
    font-family: "Open Sans", sans-serif;
    position: relative;
}

.modal-inner {
    padding: 10px;
    background: #fff;
}

.modal-container {
    border: 2px solid #82c600;
    padding: 25px 20px 11px 19px;
    font: 300 13px/22px "Open Sans", sans-serif;
}

.modal-container a {
    text-decoration: underline;
    color: #444;
}

.modal-container a:hover {
    text-decoration: none;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 10;
    color: #000;
    background: none;
    border: 0;
    background: none;
    font: 20px "Open Sans", sans-serif;
    cursor: pointer;
}

*:focus {
    outline: none;
}

.modal-container p {
    margin: 0;
    letter-spacing: -0.2px;
    position: relative;
    margin-bottom: 8px;
}

.modal-container p.info-modal {
    font-size: 11px;
    text-align: left;
    margin-right: -10px;
}

.inner-header {
    font: 300 17px/1 "Open Sans", sans-serif;
    color: #505050;
    padding-bottom: 20px;
    text-align: center;
}

.modal-discount {
    color: #ff293d;
    font: 800 28px/34px "Open Sans", sans-serif;
    text-transform: uppercase;
    padding: 0 80px 0px;
    display: inline-block;
    text-align: center;
}

.modal-discount:before {
    position: absolute;
    left: 0;
    top: 45%;
    content: '';
    display: inline-block;
    background: url(../images/border-plus.png) center center no-repeat;
    width: 69px;
    height: 13px;
    vertical-align: middle;
}

.modal-discount:after {
    position: absolute;
    right: 20px;
    top: 50%;
    content: '';
    display: inline-block;
    background: url(../images/border.png) center center no-repeat;
    width: 48px;
    height: 6px;
    vertical-align: middle;
}

.modal-discount--subtitle {
    display: block;
    font: 700 26px/30px "Open Sans", sans-serif;
    color: #82c600;
    padding-bottom: 10px;
}

.modal-offer,
.modal-price
.modal-price--box,
.modal-price--main,
.modal-price--sec {
    display: inline-block;
}

.modal-offer {
    padding-right: 10px;
}

.modal-price--main {
    position: relative;
    padding-left: 15px;
}

.modal-price {
    font-size: 19px;
    font-family: "Open Sans", sans-serif;
}

.modal-price span {
    font-size: 26px;
}

.modal-form input {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #606060;
    height: 50px;
    font: 300 20px/50px "Open Sans", sans-serif;
    color: #7d7d7d;
    text-align: center;
    display: none;
}

.modal-button {
    width: 100%;
    max-width: 408px;
    margin: 20px auto;
    height: 75px;
    font: 600 27px/27px "Open Sans", sans-serif;
    border: 0;
    color: #fff;
    background: #82c600;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
}

.show {
    opacity: 1;
    display: block;
    transition: opacity .15s linear;
}

.fade {
    opacity: 0;
    display: none;
    transition: opacity .15s linear;
}

.error {
    color: red;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding-top: 10px;
    display: none;
}

.modal-container .checkbox-row {
    text-align: left;
    padding: 10px 15px 0;
}

.modal-container .checkbox-row p {
    text-align: left;
}

/*My NEW Checbox*/
.modal .checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
    margin: 10px 0 0 7px;
}

.modal .checkbox + label {
    display: inline-block;
    position: relative;
    padding-left: 30px;
    padding-top: 1;
    cursor: pointer;
    min-height: 15px;
    line-height: 1.3;
}

.modal .checkbox + label:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 1px;
    border: 1px solid #9a9a9a;
    background: transparent;
}

.modal .checkbox + label:after {
    content: '✔';
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1px;
    left: 12px;
    margin-left: -11px;
    width: 16px;
    height: 16px;
    border-radius: 0;
    opacity: 0;
    transition: .2s;
    color: #9a9a9a;
    font-size: 13px;
}

.modal .checkbox:checked + label:after {
    opacity: 1;
}
/*END My NEW Checbox*/

@media (max-width:600px) {
    .modal-dialog {
        min-width: inherit;
    }

    .modal-dialog input {
        width: 95%;
        font: 300 17px/50px "Open Sans", sans-serif;
    }

    .modal {
        margin: 10px;
    }

    .modal-button {
        width: 95%;
        margin-top: 30px;
    }

    .modal-discount {
        font: 800 30px/40px "Open Sans", sans-serif;
    }

    .modal-container {
        height: auto;
        padding: 25px;
    }
}

@media (max-width:500px) {
    .modal-discount:after,
    .modal-discount:before {
        display: none;
    }

    .modal-discount {
        font: 800 28px/34px "Open Sans", sans-serif;
        padding: 0 15px 0px;
    }
}

@media (max-width:480px) {
    .modal-container {
        padding: 20px 10px;
    }

    .modal-discount {
        font: 800 20px/25px "Open Sans", sans-serif;
    }

    .modal-discount--subtitle {
        font: 700 20px/21px "Open Sans", sans-serif;
    }

    .modal-price span {
        font-size: 19px;
    }

    .modal-price {
        font-size: 15px;
    }

    .modal-dialog input {
        font: 300 14px/50px "Open Sans", sans-serif;
    }

    .modal-form input {
        height: 40px;
    }

    .modal-button {
        width: 100%;
        max-width: 345px;
        margin: 20px auto;
        height: 68px;
        font: 600 23px/24px "Open Sans", sans-serif;
    }
}

@media (max-width:400px) {
    .modal-button {
        font-size: 21px;
    }
}
