/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* print-post-and-page */

div.h5ab-print-button-container
{
    width: 80%;
    padding-bottom: 20px;
}

/*Menu - search & login*/

div.et_search_form_container > div
{
    padding-top: 20px;
    padding-left: 80px;
    width: 90%;
}

div.et_search_form_container > div form.gsc-search-box
{
    max-width: 100% !important; /* Google seems to mess up the max width... */
}

#et_search_icon::before
{
    display: initial !important;
}

#et_search_icon::before {
    top: 0px !important;
    left: -8px !important;
}

#et_search_icon
{
    font-size: 17px !important;
}

#mk-login-button > a:nth-child(2){
    margin-left: 5px;
    font-size: 17px !important;
}

#mk-login-button > a:nth-child(3){
    margin-left: 5px;
    font-size: 17px !important;
}

div#mk-login-button a {
    font-size: 14px;
}

#et_search_icon:after > onclick{
    transition: all 0.4s ease-in-out;
    opacity: 0.7;
}

#mk-login-button {
    z-index: 9999;
    margin: 0px 0 0 5px !important;
    float: right;
    text-align: center;
}

/* 20240311, mk: LoginForm is not used after the switch to Dynamics */
#LoginForm > input[type="submit"] {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Open Sans",Arial,sans-serif;
}

#LoginForm > input[type="submit"]{
    color: white;
}

#LoginForm > input[type="submit"]:hover{
    transition: all 0.4s ease-in-out;
    opacity: 0.7;
}

article.et_pb_post > div.entry-content > div.members-access-error > div.content-teaser > h1
{
    /* 
     * Media shows a title on the password-protected view, but pages do not.
     * So, this hides an extra title added on /wp-admin/options-general.php?page=members-settings 
     */
    display: none;
}

body.page-id-18993 #theme-my-login
{
    color: black;
}

.login-wrap 
{
    margin: auto;
    color: white;
    border: 0 !important;
    background-color: transparent !important;
    padding: 0 !important;
}

.members-access-error a
{
    color: white;
}

#lostpasswordform
{
    margin: auto;
    max-width: 400px;
}

#lostpasswordform input
{
    width: 100%;
}

/** 
 * MiniOrange SSO
 */

div.mo_adjust_customize_button 
{
    text-align: center;
}

div.mo_adjust_customize_button i.mo_oauth_def_btn_other
{
    height: 40px !important;
    background: #EEEEEE !important;
}

div.mo_adjust_customize_button i.mo_oauth_def_btn_other:hover
{
    background: white !important;
}

div.mo_adjust_customize_button i.mo_oauth_def_btn_other::before
{
    display: none;
}

div.mo_adjust_customize_button i.mo_oauth_def_btn_other > span
{
    margin-left: 0 !important;
    color: black;
    font-family: Open Sans, Arial, sans-serif;
    font-weight: bold;
}

/* Popup / Modal */

.wasb-popup-overlay
{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.wasb-popup-overlay.is-open
{
    display: flex;
}

.wasb-popup-container
{
    position: relative;
    background: #fff;
    border-radius: 4px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.wasb-popup-close
{
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.wasb-popup-close:hover
{
    color: #000;
}

.wasb-popup-title
{
    margin-top: 0;
    padding-right: 1.5rem;
}

/* GF hides the error-summary h2 with .hide_summary when no summarisable fields
   are found (e.g. invisible reCAPTCHA). Force it visible inside our popup so
   users always get feedback that something went wrong. */
.wasb-popup-container .gform_submission_error.hide_summary
{
    display: block !important;
}