/*
 Theme Name:     Grow My Business Divi Child
 Theme URI:      https://www.growmybusiness.co.nz
 Description:    Divi Child Theme for Grow My Business
 Author:         Ben Elwood
 Author URI:     https://www.growmybusiness.co.nz
 Template:       Divi
 Version:        1.0.0
*/


/* =Theme customization starts here
------------------------------------------------------- */
@import '../Divi/style.css';


/* Search Input */

#search-input form div::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.5s ease;
}

#search-input form input.et_pb_s,
input.et_pb_s::placeholder {
    color: rgba(255, 255, 255, 0.9) !important;
}

#search-input.active form div::after {
    width: 100%;
}

#search-input form input.et_pb_s,
input.et_pb_s::placeholder {
    transition-delay: 0.2s;
    transition: all 0.5s ease;
}

#search-input form input.et_pb_s {
    opacity: 0;
    pointer-events: none;
}

#search-input.active input.et_pb_s {
    opacity: 1;
    pointer-events: all;
}

input.et_pb_s::placeholder {
    transform: translateY(30%);
}

#search-input.active input.et_pb_s::placeholder {
    transform: translateY(0);
}


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

    #search-input {
        max-width: 0 !important;
        transition: all 0.5s ease;
    }

    #search-input form input.et_pb_s {
        width: 150px;
    }

    #search-input.active {
        max-width: 150px !important;
    }
}


/* Attunment Popup */

.attunement-cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(29 33 69 / 65%);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
}

.attunement-cont.active {
    opacity: 1;
    pointer-events: all;
}

.attunement-cont .inner {
    max-width: 400px;
    width: 80%;
    background: #1d2145;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 8px 8px 30px rgb(0 0 0 / 15%);
    color: #fff;
    text-align: center;
    line-height: 1.4em;
}

.attunement-cont img {
    max-width: 70%;
    margin-bottom: 30px;
}

.attunement-cont.active img {
    animation: spin-globe 12s linear infinite;
}

@keyframes spin-globe {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#free-healing-register {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.4s ease;
}

#free-healing-register.active {
    opacity: 1 !important;
    pointer-events: all !important;
}


/* Attunement Button */

.attunement-btn {
    padding: 10px 30px;
    background: #eb535a;
    border: 2px solid #eb535a;
    border-radius: 5px !important;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    display: inline-block;
    font-family: 'Open Sans', sans-serif !important;
    cursor: pointer;
}

.attunement-btn:hover {
    background: #e14d54;
    border-color: #e14d54;
}

.attunement-btn.disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.6;
}


/* Other fixes */

.woocommerce-breadcrumb {
	color: #fff !important;
}

.et-db #et-boc .et-l #app .has-children > div > a, .et-db #et-boc .et-l #app .activelink > div > a {
	color: #fff !important;
}

form#resetpassform, #login, #register {
	color: #fff;
}

form#resetpassform .message, #login .message, #register .message {
    color: #444;
}

.ld-login-modal-register {
    display: none !important;
}

.ld-modal.ld-login-modal {
    overflow: hidden !important;
    max-height: 80vh !important;
}

.learndash-wrapper .ld-login-modal .ld-login-modal-login {
    justify-content: flex-start !important;
    overflow-y: scroll !important;
}

span.ld-modal-closer {
    color: #444 !important;
    z-index: 999 !important;
}