/** Modal CSS **/
body.edd-frozen {
    position: relative; /* Needed to allow edd-free-downloads-modal-wrapper to extend to the bottom of the <body> */
    overflow: hidden;
}

.edd-free-downloads-modal-wrapper {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba( 0, 0, 0, .6 );
    z-index: 999;
    padding: 5% 0 0;
    overflow-y: scroll;
    transition: display 0.5s ease;
    -webkit-transition: display 0.5s ease;
    -moz-transition: display 0.5s ease;
}

.edd-free-downloads-modal-wrapper .edd-loading {
	position: relative;
	top: 10%;
	left: 50%;
	opacity: 1;
}

@media screen and ( max-width: 1200px ) {

    .edd-free-downloads-modal-wrapper {
        padding: 17% 0 0;
    }
}

.edd-free-downloads.hidden {
    display: none;
}

#edd-free-downloads-modal {
    background: #fff;
    width: 350px;
    max-width: 95%;
    margin: 0 auto;
    border-radius: 5px;
    padding: 1%;
    position: relative;
}

form#edd_free_download_form {
    position: relative;
    float: none;
}

.edd-free-downloads-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #999;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    transition: color 0.2s ease;
    -webkit-transition: color 0.2s ease;
    -moz-transition: color 0.2s ease;
}

.edd-free-downloads-modal-close:hover {
    cursor: pointer;
    color: #555;
}

#edd-free-downloads-modal label {
    font-weight: bold;
    display: block;
    position: relative;
    line-height: 100%;
    font-size: 95%;
    margin: 0 0 5px;
}

#edd-free-downloads-modal label.edd-free-downloads-checkbox-label {
    display: inline-block;
    padding-left: 5px;
}

#edd-free-downloads-modal span.edd-free-downloads-required {
    color: #B94A48;
    display: inline;
}

#edd-free-downloads-modal input[type='text'],
#edd-free-downloads-modal input[type='password'] {
    width: 100%;
}

#edd-free-downloads-modal button,
#edd-free-downloads-modal a.button {
    width: 100%;
}

#edd-free-downloads-modal.edd-free-downloads-mobile {
    background-color: inherit;
    padding: 25px;
}

.edd-free-download-cancel {
    margin-top: 25px;
}

.edd-free-downloads-verification-message-wrapper {
    text-align: center;
}

/** Modal Errors **/
.edd-free-download-errors {
    border-radius: 2px;
    border: 1px solid #E6DB55;
    margin: 0 0 21px;
    background: #FFFFE0;
    color: #333;
    display: none;
}

.edd-free-download-errors p {
    margin: 0;
    padding: 10px;
    display: none;
}

.edd-free-downloads-loader {
    margin-left: 10px;
}

/** Download button shouldn't ever disappear **/
.edd-free-download-single {
    display: inline-block !important;
}

.edd-free-downloads-direct-download {
    text-align: center;
}
