<?php
/**
 * Copyright since 2023 Hisham S
 * Strong password module for Prestashop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    Hisham S <no-reply@prestashop.com>
 * @copyright Since 2023 Hisham S
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */
/* acount form request */
#module-strongpsw-customeraccount .request-header-message {margin-bottom: 2rem;}
#module-strongpsw-customeraccount input[name=url] {display: none !important;}
/* old account popup */
.swal2-popup {width: 500px!important;}
.swal2-popup .swal2-content {font-size: 100%!important;}
.swal2-confirm i,
.swal2-cancel i {margin-right: 10px!important;}
/* account form / popup*/
.strongpsw_message {text-align: justify;}
.strongpsw_cursor_pointer {cursor: pointer;}
.alert {text-align: left; display: block;}
/* password security */
.strongcustomerpasswordsecurity {display : inline-block;}
.strongcustomerpasswordsecurity_wrapper {
    position: relative;
    display: table;
    width: 100%;
}
.strongcustomerpasswordsecurity .strongcustomerpasswordinfo {
    font: 13px/16px sans-serif;
    position: absolute;
    z-index: 1000;
    display: none;
    width: 100%;
    top: -225px;
}
.strongcustomerpasswordsecurity .strongcustomerpasswordinfo::after {
    content: '';
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #3faeff;
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
}
.strongcustomerpasswordsecurity .strongcustomerpasswordinfo .strongpaswword_box_info {
    -webkit-box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
    -moz-box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    padding: 10px;
    background: #FFFFFF;
}
.strongcustomerpasswordsecurity .strongcustomerpasswordinfo .strongpaswword_box_info .strongpaswword_box_message {
    background-color: #3faeff;
    color: #f1f1f1;
    padding: 10px;
    white-space: initial;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    text-align: center;
}
.strongcustomerpasswordsecurity .strongcustomerpasswordinfo .strongpaswword_box_info .strongpaswword_box_check ul {
    margin-top: 10px;
    margin-bottom: 0;
}
.strongcustomerpasswordsecurity .strongcustomerpasswordinfo .strongpaswword_box_info .strongpaswword_box_check li {
    list-style: none;
    padding: 3px;
}
.strongcustomerpasswordsecurity .strongcustomerpasswordinfo .strongpaswword_box_info .strongpaswword_box_check li span {
    background-color: #f1f1f1;
    border: 1px solid #3faeff;
    width: 17px;
    height: 17px;
    display: block;
    float: left;
    margin-right: 15px;
}
.strongcustomerpasswordsecurity .strongcustomerpasswordinfo .strongpaswword_box_info .strongpaswword_box_check li span.valid {
    background-color: #3faeff;
    position: relative;
}
.strongcustomerpasswordsecurity .strongcustomerpasswordinfo .strongpaswword_box_info .strongpaswword_box_check li span.valid:after {
    content: '\2713';
    display: inline-block;
    color: white;
    font-size: 14px;
    top: 0px;
    position: absolute;
    left: 2px;
}
.strongcustomerpasswordsecurity .strongcustomerpasswordinfo .strongpaswword_box_info .strongpaswword_box_check li span.invalid {
    background-color: #f1f1f1
}
.strongcustomerpasswordsecurity .strongcustomerpasswordfield {
    position: relative;
    z-index: 2;
    background: transparent!important;
    color: #000000;
    float: left;
}
.strongcustomerpasswordsecurity .strongcustomerpasswordmeter {
    position: absolute;
    width: 100%;
    height: 100%;
}
.strongcustomerpasswordsecurity .strongcustomerpasswordmeter > div {
    width: 0%;
    height: 100%;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}
.strongcustomerpasswordsecurity .strongpawwordveryweak {
    background-color: #dc3545;
    width: 25% !important;
}
.strongcustomerpasswordsecurity  .strongpawwordweak {
    background-color: #fd7e14;
    width: 50% !important;
}
.strongcustomerpasswordsecurity  .strongpawwordmedium {
    background-color: #ffc107;
    width: 75% !important;
}
.strongcustomerpasswordsecurity  .strongpawwordstrong {
    background-color: #28a745;
    width: 100% !important;
}
.strongcustomerpasswordsecurity span.input-group-btn {
    margin: 10px 0;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
}
.strongcustomerpasswordsecurity span.input-group-btn .btn {
    flex: 1;
    justify-content: center;
}
.strongcustomerpasswordsecurity span.input-group-btn .btn.generatestrongcustomerpassword {
    margin: 0 10px;
}
.strongpswpasswordconfirm span.input-group-btn {display:  block; margin-top: 10px;}
.strongcustomerpasswordsecurity span .btn,
.strongpswpasswordconfirm span .btn {
    border: 0;
    box-shadow: none;
    color: #fff;
    font-size: .6875rem;
    font-weight: 400;
    text-transform: uppercase;
    background: #3faeff;
    padding: .78rem 1rem !important;
}

.generatestrongcustomerpassword,  .copystrongcustomerpassword {
    background: #f6fbff!important;
    border: 1px solid #f1f5f9!important;
    color: #000!important;
}

.strongcustomerpasswordError {margin: 10px 0 0 0 !important;}
.strongcustomerpasswordError span {margin: 0; display: block !important;}
.strongcustomerpasswordsecurity .strongcustomerpasswordfield::-ms-reveal,
.strongcustomerpasswordsecurity .strongcustomerpasswordfield::-ms-clear {
    display: none !important;
}
/* Customer account */
#customer-form .strongpsw_account_consent_message > .form-group {margin-bottom: 0 !important;}
#customer-form .strongpsw_account_consent_message .custom-checkbox span {float: left; margin-right: 7px !important; margin-top: 4px;}
#customer-form .strongpsw_account_info_message {text-align: justify;}
#customer-form .strongpsw_data_protection_link {font-style: italic;}
#authentication #customer-form .strongcustomerpasswordConsentError {padding-left: .625rem;}
#authentication #customer-form .strongpsw_account_info_message {padding-left: .625rem;}

/* reponsive */
@media (max-width: 767px) {
    #module-strongpsw-customeraccount .request-button li {
        display: block;
    }
    #module-strongpsw-customeraccount .request-button li a {
        font-size: 0.65rem;
    }
}
