/* ========================================
   Custom WooCommerce My Account Page Styles
   Chargentum Website Theme
   ======================================== */
.custom-account-links br {
    display: none;
}
.custom-login-form br {
    display: none;
}
.custom-login-form p {
     margin: 0;
}
.custom-account-wrapper {
   font-family: "Oak Sans", Sans-serif;
    max-width: 70%;
    margin: 0 auto;
}
div#registerModal br {
    display: none;
}

div#registerModal p {
    margin: 0;
}
.custom-account-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 45px;
    border: 1px solid #e5e7eb;
}

.custom-login-form h2 {
      margin: 0 0 35px 0;
    font-family: "Oak Sans", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #A16132;
    text-align: center;
}

/* Form Fields */
.custom-login-form .woocommerce-form-row {
    margin-bottom: 20px;
}

.custom-login-form label {
    font-family: "Oak Sans", Sans-serif;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #5A5A67 !important;
}

.custom-login-form .required {
    color: #e74c3c;
}

.custom-login-form input[type="text"],
.custom-login-form input[type="email"],
.custom-login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 18px;
    font-family: "Oak Sans", Sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #5A5A67;
}

.custom-login-form input[type="text"]:focus,
.custom-login-form input[type="email"]:focus,
.custom-login-form input[type="password"]:focus {
    outline: none;
    border-color: #ac6d3b;
    box-shadow: 0 0 0 3px rgba(172, 109, 59, 0.1);
}

/* Remember Me & Submit */


.custom-login-form .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
}

.custom-login-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.custom-login-form button[type="submit"] {
  background: url(/wp-content/uploads/2025/09/contact-btn.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #ac6d3b !important;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Oak Sans", Sans-serif;
    font-size: 19px;
    font-weight: 800;
    border-radius: 8px 8px 8px 8px;
    padding: 23px 23px 23px 23px;
    width: 100%;
    margin-top: 10px;
}

.custom-login-form button[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #ffffff;
}

/* Custom Links Section */
.custom-account-links {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e8e8e8;
}

.custom-account-links .lost_password {
    text-align: center;
    margin-bottom: 20px;
}

.custom-account-links .lost_password a {
   margin: 0 0 35px 0;
    font-family: "Oak Sans", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #A16132 !important;
    text-align: center;
}

.custom-account-links .lost_password a:hover {
    color: #051C36;
    text-decoration: underline;
}

.custom-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.custom-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}

.custom-divider span {
    background: #ffffff;
    padding: 0 15px;
    color: #5A5A67;
    font-size: 18px;
    font-weight: 400;
    position: relative;
    z-index: 1;
    font-family: "Oak Sans", Sans-serif;
}

.custom-action-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #5A5A67;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    font-family: "Oak Sans", Sans-serif;
}

.custom-link:hover {
    background: #f1f5f9;
    border-color: #ac6d3b;
    color: #ac6d3b;
    transform: translateY(-1px);
}

.custom-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.custom-link.register-link {
        border: none;
    color: #FFFFFF;
    background-color: #19304A;
    border-color: #A16132;
    font-family: "Oak Sans", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-style: solid;
    padding: 15px 15px 15px 15px;
}

.custom-link.register-link:hover {
    color: #A16132;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.custom-link.guest-link {
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

.custom-link.guest-link:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
}

.custom-link svg {
    width: 18px;
    height: 18px;
}

/* Register Modal */
.custom-register-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.custom-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 45px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    animation: modalSlideIn 0.3s ease;
    font-family: "Oak Sans", Sans-serif;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #999;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.custom-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.custom-modal-content h2 {
        margin: 0 0 35px 0;
    text-align: center;
    font-family: "Oak Sans", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #A16132;
}

.custom-modal-content .woocommerce-form-row {
    margin-bottom: 20px;
}

.custom-modal-content label {
    font-family: "Oak Sans", Sans-serif;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #5A5A67 !important;
}

.custom-modal-content input[type="text"],
.custom-modal-content input[type="password"],
.custom-modal-content input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: "Oak Sans", Sans-serif;
    color: #5A5A67;
}

.custom-modal-content input:focus {
    outline: none;
    border-color: #ac6d3b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(172, 109, 59, 0.1);
}

.custom-modal-content button[type="submit"] {
    width: 100%;
    font-family: "Oak Sans", Sans-serif;
    font-size: 19px;
    font-weight: 800;
    border-radius: 8px 8px 8px 8px;
    padding: 23px 23px 23px 23px;
    background: url(/wp-content/uploads/2025/09/contact-btn.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #ac6d3b !important;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-modal-content button[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.custom-modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.custom-modal-footer p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
}

.custom-modal-footer a {
    color: #ac6d3b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.custom-modal-footer a:hover {
    color: #ac6d3b;
    text-decoration: underline;
}

/* WooCommerce Messages */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
}

.woocommerce-error {
    background: #fee;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

.woocommerce-message {
    background: #efe;
    border-left: 4px solid #27ae60;
    color: #229954;
}

.woocommerce-info {
    background: #eff8ff;
    border-left: 4px solid #3498db;
    color: #2874a6;
}

/* Loading state for buttons */
.custom-login-form button.loading,
.custom-modal-content button.loading {
    position: relative;
    pointer-events: none;
}

.custom-login-form button.loading::after,
.custom-modal-content button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide temporary password notice specifically */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info {
    display: none !important;
}

/* Alternative: Hide only messages containing specific text */
.woocommerce-MyAccount-content .woocommerce-message:has(:contains("temporary password")),
.woocommerce-MyAccount-content .woocommerce-info:has(:contains("temporary password")),
.woocommerce-MyAccount-content .woocommerce-message:has(:contains("change your password")),
.woocommerce-MyAccount-content .woocommerce-info:has(:contains("change your password")) {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .custom-account-container {
        padding: 30px 20px;
    }
    
    .custom-modal-content {
        padding: 30px 20px;
    }
    
    .custom-login-form h2,
    .custom-modal-content h2 {
        font-size: 24px;
    }
    
    .custom-login-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .custom-login-form button[type="submit"] {
        width: 100%;
    }
}

/* Hide default WooCommerce registration form on login page */
.woocommerce-account .col2-set {
    display: none;
}

/* Adjust spacing if WooCommerce notices appear */
.woocommerce-notices-wrapper {
    max-width: 500px;
    margin: 20px auto 0;
    padding: 0 20px;
}
