/**
 * Hidden content
 */
.restricted-content-hidden,
.restricted-content-promo {
    display: none !important;
}

/**
 * Restricted content banner
 *
 * These are styles for the generic restricted content banner
 * But more specific styles can be placed below if needed
 */
.restricted-content-banner {
    padding: 14px 0;
    margin-top: 14px;
    margin-bottom: 14px;
    background: url( ../images/gradient.png ) top left repeat-x;
    padding-top: 80px;
    margin-top: -104px;
    position: relative;
}
.restricted-content-banner-inner {
    border-top: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    padding-top: 10px;
    padding-bottom: 10px;
}
.restricted-content-banner-title {
    text-align: center;
    font-size: 36px;
    line-height: 1.25em;
    font-family: 'Fenice ITC W01 Regular', 'Georgia', Serif;
}
.restricted-content-banner-subtitle {
    text-align: center;
    font-size: 18px;
    line-height: 1.25em;
    padding-top: 14px;
    font-family: 'Fenice ITC W01 Regular', 'Georgia', Serif;
}
.restricted-content-banner img {
    display: block;
    margin: 0 auto;
}
.restricted-content-banner p {
    margin-bottom: 0;
}
.restricted-content-banner-form {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 10px;
}
.no-flexbox .restricted-content-banner-form {
    padding-left: 22px;
    padding-right: 85px;
    overflow: auto;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}
.restricted-content-banner-form .input {
   -webkit-box-flex: 1;
    -webkit-flex: 1;
        -ms-flex: 1;
            flex: 1;
    border: 1px solid #999;
    background: #FAFAFA;
    padding: 10px;
    /* Undo styles on iOS */
    border-radius: 0;
    margin: 0;
}
.no-flexbox .restricted-content-banner-form .input {
    float: left;
    width: 100%;
    margin-left: -22px;
}
.restricted-content-banner-form .input:focus {
    border-color: #CCC;
    outline: none;
}
.restricted-content-banner-form .submit-wrapper {
    position: relative;
}
.no-flexbox .restricted-content-banner-form .submit-wrapper {
    float: right;
    margin-right: -85px;
}
.restricted-content-banner-form .button {
    background: #C00;
    color: #FFF;
    border: 1px solid #C00;
    font-weight: bold;
    padding: 10px 20px;
    width: 85px;
    outline: none;
    /* Undo styles on iOS */
    -webkit-appearance: none;
    border-radius: 0;
    margin: 0;
}
.restricted-content-banner .restricted-content-loading {
    position: absolute;
    top: 4px;
    left: 30px;
    display: none;
}
.restricted-content-error-message {
    display: none;
    padding: 5px 10px;
    background: #FEE;
    border: 1px solid #C00;
    margin-bottom: 10px;
}
.restricted-content-banner-form-processing .button {
    text-indent: -9999px;
}
.restricted-content-banner-form-processing .restricted-content-loading {
    display: block;
}

@media screen and (max-width: 850px) and (min-width: 551px) {
    .restricted-content-banner {
        padding-left: 7.5%;
        padding-right: 7.5%;
    }
}

@media screen and (max-width: 550px) and (min-width: 10px) {
    .restricted-content-banner {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/**
 * Topbar logout form
 *
 * This is hidden by default, as we assume a user is not logged in
 * But we'll show it and hide the login form if the user is logged in
 */
.paywall-topbar-logout {
    display: none;
}

/**
 * Theme specific styles
 *
 * These are copied from the main stylesheet and modified to use new selectors
 * And could eventually be merged into the main stylesheet
 */
.topbar-login-dropdown .paywall-topbar-login input.web_id {
    border: 1px solid #CCC;
    margin: 0 0 10px;
    width: 212px;
    font-size: 1em;
    padding: 5px;
}
.topbar-login-dropdown .paywall-topbar-login input.web_id:focus {
    border: 1px solid #CCC;
}
.topbar-login-dropdown .paywall-topbar-login .text-field {
    width: auto;
    border: none;
    margin: 0;
}
.paywall-topbar-login img.loading {
    float: right;
    margin-top: 9px;
}
.paywall-topbar-login.restricted-content-banner-form-processing img.loading {
    visibility: visible !important;
}
.paywall-topbar-login input[type=submit] {
    float: left;
    margin: 0 0 10px;
}
.paywall-topbar-login .messages {
    clear: both;
}
.paywall-topbar-login .help {
    text-transform: none;
}

/**
 * Mobile login form
 */
.restricted-content-mobile-login {
    padding: 7px 5%;
    color: #FFF;
}
.restricted-content-mobile-login-form {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 10px;
}
.no-flexbox .restricted-content-mobile-login-form {
    padding-left: 22px;
    padding-right: 85px;
    overflow: auto;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}
.restricted-content-mobile-login-form .input {
   -webkit-box-flex: 1;
    -webkit-flex: 1;
        -ms-flex: 1;
            flex: 1;
    border: 1px solid #999;
    background: #FAFAFA;
    padding: 10px;
    /* Undo styles on iOS */
    border-radius: 0;
    margin: 0;
}
.no-flexbox .restricted-content-mobile-login-form .input {
    float: left;
    width: 100%;
    margin-left: -22px;
}
.restricted-content-mobile-login-form .input:focus {
    border-color: #CCC;
    outline: none;
}
.restricted-content-mobile-login-form .submit-wrapper {
    position: relative;
}
.no-flexbox .restricted-content-mobile-login-form .submit-wrapper {
    float: right;
    margin-right: -85px;
}
.restricted-content-mobile-login-form .button {
    background: #C00;
    color: #FFF;
    border: 1px solid #C00;
    font-weight: bold;
    padding: 10px 20px;
    width: 85px;
    outline: none;
    /* Undo styles on iOS */
    -webkit-appearance: none;
    border-radius: 0;
    margin: 0;
}
.restricted-content-mobile-login .restricted-content-help {
    font-size: 12px;
}
.restricted-content-mobile-login .restricted-content-help a {
    display: inline;
    padding: 0;
    font-weight: bold;
}
.restricted-content-mobile-login-form .restricted-content-loading {
    position: absolute;
    top: 4px;
    left: 30px;
    display: none;
}
.restricted-content-error-message {
    display: none;
    padding: 5px 10px;
    background: #FEE;
    border: 1px solid #C00;
    margin-bottom: 10px;
}
.restricted-content-banner-form-processing.button {
    text-indent: -9999px;
}
.restricted-content-banner-form-processing .restricted-content-loading {
    display: block;
}

.restricted-content-mobile-logout {
    display: none;
}


.restricted-content-mobile-logout {
    padding: 7px 5%;
    color: #FFF;
}
.restricted-content-mobile-logout input[type=submit] {
    background: #C00;
    color: #FFF;
    border: 1px solid #C00;
    font-weight: bold;
    padding: 10px 20px;
    width: 85px;
    outline: none;
    /* Undo styles on iOS */
    -webkit-appearance: none;
    border-radius: 0;
    margin: 0;
}
