/* Général */

.amtsn_center {
    text-align: center;
}

.amtsn_right {
    text-align: right;
}

#amtsn_loginform_container form, .amtsn_form {
    display: block;
}

#amtsn_loginform_container form p:not(.login-submit), .amtsn_form p {
    margin: 1em 0;
}

.amtsn_form select {
    width: 100%;
}

.amtsn_form input[disabled] {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.7;
}

.amtsn_form label i, i.required {
    font-style: normal;
    color: #e3001b;
}

.amtsn_form_flex {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 1em 0;
}

.amtsn_form_flex p { width: calc(50% - 16px); margin: 0; }
.amtsn_form_flex p.w20 { width: calc(20% - 16px); }
.amtsn_form_flex p.w30 { width: calc(30% - 16px); }
.amtsn_form_flex p.w40 { width: calc(40% - 16px); }
.amtsn_form_flex p.w60 { width: calc(60% - 16px); }
.amtsn_form_flex p.w70 { width: calc(70% - 16px); }
.amtsn_form_flex p.w80 { width: calc(80% - 16px); }

.amtsn_form_submit p {
    text-align: center;
}

.amtsn_form_submit input {
    width: auto !important;
}

.amtsn_hr {
    margin: 60px 0;
    border: 1px dashed #e5f9f3;
}

.amtsn_form_legal {
    margin: 2.5em 0;
    padding: 20px 30px;
    border: 1px solid #00b7d7;
}

.amtsn_main_message {
    margin-bottom: 40px;
}

.amtsn_checkbox {
    vertical-align: baseline;
    margin-right: 12px;
    accent-color: #00C585;
    width: auto;
    transform: scale(1.8) translateX(3px);
}

.amtsn_file_container{
    position: relative;
}

.amtsn_file_label {
    display: block;
    padding: 10px 20px;
    border: 2px dashed #00C585;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 10px;
}

.amtsn_file_label:hover {
    background-color: #e5f9f3;
}

.amtsn_file {
    width: 0px;
    height: 0;
    opacity: 0;
    position: absolute;
    bottom: 0;
}

.amtsn_form p.amtsn_checkbox_container {
    margin: 1.5em 0;
}

.amtsn_form .h4 {
    margin: 2em 0 1.5em;
}

.amtsn_btn, #wp-submit {
    color: white !important;
    background-color: #00C585 !important;
    padding: 5px 26px;
    border-radius: 10px;
    font-size: 19px !important;
    line-height: 27px;
    transition: 0.2s;
    font-weight: bold;
    display: inline-block;
}

.amtsn_btn_small {
    padding: 5px 12px;
    font-size: 14px !important;
    line-height: 18px !important;
}

#wp-submit {
    margin-bottom: 16px;
}

.amtsn_btn:hover, #wp-submit:hover {
    background-color: #00b7d7 !important;
}

.amtsn_btn.amtsn_inscrit {
    background-color: #00b7d7 !important;
    pointer-events: none;
}

.amtsn_btn.amtsn_non_inscrit {
    background-color: #dba308 !important;
    pointer-events: none;
}

.amtsn_btn.amtsn_en_attente {
    background-color: #dba308 !important;
    pointer-events: none;
}

.amtsn_table {
    border: 1px solid #00C585;
    width: 100%;
}

.amtsn_table td {
    border: 1px solid #00C585;
    padding: 8px 12px;
}

.amtsn_table th {
    padding: 8px 12px;
    font-weight: bold;
    color: white;
    background-color: #00C585;
    text-align: left;
}

.amtsn_table .actions {
    text-align: right;
}

.amtsn_table .actions span {
    cursor: pointer;
    color: #00C585;
}


/* Signin form */

#amtsn_inscription {
    padding: 35px;
    background-color: white;
    box-sizing: border-box;
}

#amtsn_inscription h2 {
    margin-top: 0;
}


/* Message */

#amtsn_message {
	position: fixed;
    z-index: 200;
    width: 90%;
    max-width: 500px;
    background-color: #00b7d7;
    bottom: -200px;
    right: 20px;
    box-shadow: 0px 5px 20px 0px rgba(60, 60, 60, 0.2);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
	padding: 20px 45px 20px 25px;
    border-radius: 10px;
}

#amtsn_message * {
    color: white;
}

#amtsn_message.open {
    bottom: 20px;
}

#amtsn_message.success {
    background-color: #00C585;
}

#amtsn_message.error {
    background-color: #e3001b;
}

#amtsn_message #amtsn_message_text {
    line-height: 1.1em;
}

#amtsn_message #amtsn_message_text .amtsn_btn {
    background-color: #FDDD00 !important;
    color: black !important;
    margin-top: 10px;
}

#amtsn_message_close {
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: white;
    width: 22px;
    height: 22px;
    cursor: pointer;
    background-size: 60% auto;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url('../img/close.svg');
    transition: 0.2s;
    border-radius: 10px;
}

#amtsn_message_close:hover {
    transform: scale(1.1);
}


/* Login form */

#amtsn_loginform_container, #amtsn_loginform_lostpsswd {
    box-shadow: 0px 5px 20px 0px rgba(60, 60, 60, 0.2);
    margin: 0 auto;
    max-width: 500px;
    border-radius: 0 0 0 50px;
    padding: 35px;
    text-align: center;
    background-color: white;
}

#amtsn_loginform_container h2, #amtsn_loginform_lostpsswd h2 {
    margin-top: 0;
}

#amtsn_loginform_container form, #amtsn_loginform_lostpsswd form {
    text-align: left;
}

#amtsn_loginform_container #rememberme {
    vertical-align: middle;
    margin-right: 8px;
    width: auto;
}

#amtsn_loginform .amtsn_loginform_lostpsswd, #amtsn_loginform .amtsn_loginform_lostpsswd_back {
    font-size: 0.85em;
    text-decoration: underline;
}

#amtsn_loginform_lostpsswd {
    display: none;
}

p.amtsn_form_info {
    margin: 35px 0;
    padding: 25px 100px 25px 25px;
    background-color: #00b7d7;
    color: white;
    font-weight: bold;
    background-image: url('../img/info-blue.svg');
    background-size: 100px auto;
    background-repeat: no-repeat;
    background-position: top -20px right -20px;
    border-radius: 10px;
}

p.amtsn_form_info.alert {
    background-color: darkred;
    background-image: url('../img/warning.svg');
}


/* Account */

#amtsn_account_tabs {
    padding: 0;
    margin: 0 0 40px;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    overflow: hidden;
    list-style: none;
    background-color: #e5f9f3;
    border-radius: 10px;
} 

#amtsn_account_tabs li {
    flex-basis: 0;
    flex-grow: 1;
}

#amtsn_account_tabs li a {
    display: block;
    padding: 12px 10px;
    border-right: 1px solid #00C585;
    transition: 0.3s;
    color: #3c3c3c;
    text-align: center;
}

#amtsn_account_tabs li a:before {
    content: '';
    vertical-align: middle;
    display: inline-block;
    margin-right: 12px;
    height: 24px;
    width: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    transition: 0.3s;
}

#amtsn_account_tabs li.logout_li {
    flex-grow: 0;
}

#amtsn_account_tabs li.logout_li a:before {
    margin-right: 0;
}

#amtsn_account_tabs li a.infos:before { background-image: url('../img/info.svg'); }
#amtsn_account_tabs li a.journees:before { background-image: url('../img/journees.svg'); }
#amtsn_account_tabs li a.hesion:before { background-image: url('../img/adhesion.svg'); }
#amtsn_account_tabs li a.medecins:before { background-image: url('../img/medecins.svg'); }
#amtsn_account_tabs li a.documents:before { background-image: url('../img/documents.svg'); }
#amtsn_account_tabs li a.factures:before { background-image: url('../img/factures.svg'); }
#amtsn_account_tabs li a.admin:before { background-image: url('../img/setting.svg'); }
#amtsn_account_tabs li a.logout:before { background-image: url('../img/logout.svg'); }
#amtsn_account_tabs li a.security:before { background-image: url('../img/password.svg'); }

#amtsn_account_tabs li:before {
    display: none;
}

#amtsn_account_tabs li:last-child a {
    border: none;
}

#amtsn_account_tabs a.active, #amtsn_account_tabs a:hover {
    color: white;
    background-color: #00C585;
}

#amtsn_account_tabs a.active:before, #amtsn_account_tabs a:hover:before {
    filter: brightness(0) invert(1);
}

.amtsn_account_tab_content {
    display: none;
    padding: 26px 0;
    background-color: white;
}

.amtsn_account_tab_content.active {
    display: block;
}

#amtsn_update_medecin {
    display: none;
}

#amtsn_medecin_table {
    margin-bottom: 14px;
}

.amtsn_add_medecin {
    display: none;
}


/* Journée */

.amtsn_journees_container {
    display: flex;
    flex-flow: column;
    gap: 20px;
    margin-top: 30px;
}

.amtsn_journee {
    border-top: 4px solid #00C585;
    border-radius: 0 0 0 20px;
    box-shadow: 0px 5px 20px 0px rgba(60, 60, 60, 0.1);
    padding: 20px;
    width: 100%;
    position: relative;
}

.amtsn_journee h3 {
    font-size: 28px;
}

.amtsn_journee_date,
.amtsn_journee_tarif {
    display: inline-block;
    font-weight: bold;
    border-radius: 10px;
    color: white;
    padding: 4px 12px;
    margin-left: 12px;
    font-size: 18px;
    vertical-align: text-top;
}

.amtsn_journee_date {
    background-color: #00b7d7;
}

.amtsn_journee_tarif {
    background-color: #00C585;
}

.amtsn_journee_content {
    margin-top: 16px;
}

.amtsn_journee_actions {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.amtsn_journee_actions .amtsn_btn:last-child {
    margin-left: auto;
}

.amtsn_payment_module_journee {
    display: none;
}

.amtsn_payment_module_journee_back {
    margin-top: 40px;
}


/* Payement adhésion */

.amtsn_payment_module {
    background-color: #f0f2f5;
    padding: 25px;
    margin-top: 40px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    gap: 60px;
    border-radius: 10px;
    position: relative;
}

.amtsn_payment_module_entreprise {
    display: none;
}

.amtsn_payment_module:after {
    content: '';
    position: absolute;
    top: 25px;
    bottom: 25px;
    left: calc(50% - 1px);
    width: 2px;
    background-color: #e5e5e5;
}

.amtsn_payment_module > div {
    width: 50%;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.amtsn_payment_module h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.amtsn_payment_module img {
    height: 30px !important;
}

.amtsn_payment_module table {
    width: 100%;
}

.amtsn_payment_module table th {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 0;
    border-bottom: 1px dashed #e5e5e5;
    text-align: left;
}

.amtsn_payment_module table td {
    font-weight: bold;
    padding: 4px 0;
    font-size: 14px;
}

.amtsn_payment_btn {
    align-self: flex-end;
    margin-top: auto;
}

.amtsn_payment_btn .amtsn_btn {
    margin-top: 20px;
}


/* Paywall */

.amtsn_paywall {
    background-color: #e5f9f3 !important;
    width: 100% !important;
    box-shadow: none !important;
    margin-top: 16px !important;
    position: relative !important;
    padding: 36px 36px 36px 180px !important;
    min-height: auto !important;
    background-image: url('../img/info.svg');
    background-size: auto 60%;
    background-repeat: no-repeat;
    background-position: 26px center;
}

.amtsn_paywall:before {
    content: '';
    position: absolute;
    bottom: 100%;
    height: 120px;
    left: 0;
    right: 0;
    background: linear-gradient(0deg,rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);;
}

.amtsn_paywall h2 {
    text-transform: initial;
    font-size: 24px;
    letter-spacing: 1px;
}


/* User Private Files */

#upfp_info, .upfp_resizer {
    display: none !important;
}

.upfp_content_wrapper {
    border-bottom: 1px solid #cccccc;
}

.upfp_single_file img, .edit-doc img, .upfp_content .folder-item img {
    border: none !important;
    padding: 24px;
    object-fit: scale-down;
}


/* Responsive */

@media (max-width: 1100px) {
    .amtsn_form_flex p { width: calc(48%); }
    .amtsn_form_flex p.w20 { width: calc(48%); }
    .amtsn_form_flex p.w40 { width: calc(48%); }

    #amtsn_account_tabs {
        align-items: center;
    }

    #amtsn_account_tabs li a {
        font-size: 15px;
    }

    .cpccaf_payment_module {
        flex-flow: column;
    }

    .cpccaf_payment_module > div {
        width: 100%;
    }

    .cpccaf_payment_module:after {
        display: none;
    }
}

@media (max-width: 600px) {
    .amtsn_form_flex p { width: calc(100%) !important; }

    p.amtsn_form_info {
        font-size: 13px;
        margin: 25px 0;
        background-size: 71px auto;
        padding: 25px 41px 25px 25px;
    }

    #amtsn_loginform_container, #amtsn_loginform_lostpsswd {
        width: 100%;
        box-sizing: border-box;
    }

    #amtsn_account_tabs li {
        width: 50%;
        flex-basis: initial;
        flex-grow: initial;
    }

    #amtsn_account_tabs li.logout_li {
        width: 25%;
    }

    #amtsn_account_tabs li a {
        font-size: 14px;
        position: relative;
        padding: 10px;
        box-sizing: border-box;
    }

    #amtsn_account_tabs li a:before {
        position: initial;
        transform: initial;
    }

    #amtsn_account .tab, #amtsn_inscription {
        padding: 30px 15px;
    }

    .amtsn_paywall {
        padding: 70px 36px 21px 36px !important;
        background-size: 50px;
        background-position: top 10px center;
        text-align: center;
    }

    .amtsn_paywall h2 {
        text-transform: initial;
        font-size: 21px;
        letter-spacing: 1px;
    }
}