/*
Theme Name: Clarivo - Child
Theme URI: http://harutheme.com/clarivo
Author: HaruTheme
Author URI: http://harutheme.com/
Description: This is child theme of Clarivo
Template: clarivo
Version: 1.0.0
*/

/*---------------------------------
    Custom Modal & Login Form Styles
----------------------------------*/

/* overlay */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.modal {
    padding-top: 100px;
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    overflow: auto;
}

/* close button */
.loginModalClose {
    float: right;
    cursor: pointer;
}

/* modal container */
.modal-content {
    display: flex;
    width: 700px;
    max-width: 100%;
    height: auto;
    margin: 5% auto;
    padding: 0; /* Prevent inner spacing */
    border: none; /* Remove any default borders */
    border-radius: .5em;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,.2), 0 6px 20px rgba(0,0,0,.19);
}

.customModal-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem;
    position: relative;
    height: 100%;
    width: 50%;
    min-height: 300px;
    background-color: #232323;
    background-image: url('https://cognifuel.store/wp-content/uploads/2025/04/logindarkbg.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.customModal-right::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(35, 35, 35, 0.8);
    z-index: 1;
    pointer-events: none;
}

.customModal-right > * {
    position: relative;
    z-index: 2;
}

/* left column (form) */
.customModal-left {
    width: 50%;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* input styles */
.customModal-left input[type="text"],
.customModal-left input[type="password"] {
    width: 100%;
    padding: 0.75em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* checkbox specifically */
.customModal-left .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-check-input[type=checkbox] {
    margin: 0;
    padding: 0.75em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-check-label {
    margin: 0;
    line-height: 1; /* helps it stay centered */
}

/* Optional form group spacing */
.customModal-left .form-group {
    margin-bottom: 1rem;
}

/* login form styling */
.woocommerce .login,
.customModalLogin {
    margin: 0;
    width: 100%; /* Let it fill the column */
    max-width: 350px;
}

/* login button */
.customModelLoginBtn {
    width: 100%;
    background-color: #75b239;
    color: white;
    border: none;
    padding: 0.75em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: block;
}

.customModelLoginBtn:hover {
    background-color: #5c962f;
}

.form-remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* allows it to wrap on smaller screens */
    gap: 0.5rem;
}

.form-remember-forgot .form-check {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0; /* remove default margin */
}

.login-links {
    margin: 0; /* remove extra margin */
}

.login-links a {
    font-size: 0.95em;
    color: #363636;
    text-decoration: none;
    white-space: nowrap;
}

.login-links a:hover {
    color: #75b239;
}

/* responsive */
@media (max-width: 800px) {
    .modal-content {
        flex-direction: column;
        width: 90%;
    }
    
    .customModal-left,
    .customModal-right {
        width: 100%;
    }
    
    .customModal-right {
        height: 200px;
    }
}

.woocommerce .customLogin{
    border: none;
    padding: 0 1.5em 1.5em 1.5em;
}

.green{
    color: #75b239;
}

.modalHeader{
    display: flex;
    margin-top: 0;
    justify-content: center;
    align-items: center;
}

.modalForm {
    display: none;
}
.modalForm.active {
    display: block;
}

#login-error,
#register-error,
#forgot-error {
  color: #dc3545;
  margin-top: 10px;
  height: 20px; /* keep space reserved */
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
}

#login-error.show,
#register-error.show,
#forgot-error.show {
  opacity: 1;
  visibility: visible;
}

.woocommerce-MyAccount-navigation {
    display: none;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
}

.woocommerce-account .woocommerce {
    margin-bottom: 60px;
    margin-top: 0px;
}

.my-account-banner{
    background-color: #17a2b8;
    padding: 10px;
}

.my-account-banner p{
    color: #ffffff;
    margin: 0;
}

.address-title-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e1e1e1;
}

.address-title-bar h2 {
	margin: 0;
	font-size: 18px;
}

.my-account-header{
    color: #232323;
}

.address-btn {
	color: #ffffff;
    background-color: #75b239;
    border: 0px;
    font-weight: 400;
    padding: 0px 10px;
    border-radius: 0;
    cursor: pointer;
    font-family: Lato;
    text-align: center;
    -webkit-transition: all 0.35s ease;
    -o-transition: all 0.35s ease;
    transition: all 0.35s ease;
}
.address-btn:hover {
	color: #ffffff;
    background-color: #336504;
}




