

/* ===========================
   Popup Overlay
=========================== */

html {
    overflow-y: scroll;
}

body > #heb-book-popup {
    position: fixed !important;
    top: 0;
    left: 0;
}

#heb-book-popup input, #heb-book-popup button{
    height: 44px;
    border-radius: 50px;
}

#heb-book-popup,
#heb-book-popup * {
    font-family: 'Nunito', sans-serif;
}


.page-id-10398 .entry-title{
    display: none;
}


#heb-book-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px; /* important for small screens */
}

#heb-book-popup.active {
    display: flex !important;
}

@supports (-webkit-touch-callout: none) {
    #heb-book-popup {
        height: 100vh;
        height: -webkit-fill-available;
    }
}




#heb-email-login-form, #heb-signup-form, .heb-wa-login, #heb-login-otp-step, #heb-signup-otp-step {
        margin-top: 35px;
}

#heb-email-login-form label, #heb-signup-form label, .heb-wa-login label, #heb-login-otp-step label, #heb-signup-otp-step label{
    margin-bottom: 10px;
    font-size:14px;
}
#heb-email-login-form input, #heb-signup-form input, .heb-wa-login, input, #heb-login-otp-step input, #heb-signup-otp-step, input{
      border-radius: 50px;
}
#heb-email-login-form button, #heb-signup-form button, #heb-login-otp-step button.heb-login-btn, #heb-signup-otp-step button.heb-login-btn{
         width: 100%;
    border-radius: 50px;
        background: #6b0000;
    border-color: #6b0000;
    color: #fff;
}

/*#heb-login-otp-step button, #heb-signup-otp-step button{*/
/*        margin-top: 20px;*/
/*}*/

#heb-login-resend-otp, #heb-signup-resend-otp{
    background: transparent;
    color: blue;
    font-size: 14px;
    border: none;
    /* text-align: right; */
    width: auto;
    display: block;
    margin-left: auto;
}



.heb-wa-login button.heb-back-to-email{
         width: 100%;
    border-radius: 50px;
   border-color: #bfbfbf;
    color: #000000;
    border: 1px solid #bfbfbf;
    font-size: 14px;
}

.heb-wa-login button.heb-back-to-email:hover{
    background: #fff;
    color:#000;
}


.heb-wa-login button.heb-wa-request-otp{
          width: 100%;
    border-radius: 50px;
       background: #6b0000;
    border-color: #6b0000;
    color: #fff;
    font-size: 14px;
}

.heb-wa-login button.heb-wa-request-otp:hover{
  background: #6b0000;
    border-color: #6b0000;
    color: #fff;
}
/* ===========================
   Popup Inner Box
=========================== */

.heb-popup-inner {
    width: 1100px;
    max-width: 95%;
    background: #fff;
    /*border-radius: 10px;*/
    position: relative;

    height: 650px;          /* fixed stable height */
    max-height: 90vh;       /* prevent overflow on small screens */
    display: flex;          /* important */
}


/* ===========================
   Step System
=========================== */



.heb-account-wrapper {
    max-width: 800px;
    margin: auto;
}

.heb-profile {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 30px;
}

.heb-order-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}



.heb-step {
    display: none;
    width: 100%;
    height: 100%;
}

.heb-step.active-step {
    display: flex;
}



.heb-login-left {
    width: 50%;
    overflow: hidden;
}

.heb-login-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.heb-login-left img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: cover;
}


.heb-login-caption h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.heb-login-caption p {
    font-size: 14px;
    opacity: 0.9;
}

/* Right Panel */


.heb-login-ask p, .heb-signup-ask p{
        font-size: 14px;
}
.heb-login-ask p a, .heb-signup-ask p a{
        color: #6b0000;
}



.heb-login-right {
    width: 50%;
    padding: 60px;
    overflow-y: auto;
}


.heb-login-right h2 {
    font-size: 32px;
    margin-bottom: 5px;
}



.heb-login-subtitle {
    margin-bottom: 25px;
    color: #777;
}

.heb-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
}

/* Form */

.heb-login-form label {
    font-size: 14px;
    display: block;
}

.heb-login-form input {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    font-size: 14px;
}

.heb-login-btn {
    width: 100%;
    padding: 12px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.heb-login-btn:hover {
    background: #222;
}

/* Divider */

/*.heb-login-divider {*/
/*    text-align: center;*/
/*    margin: 20px 0;*/
/*    color: #aaa;*/
/*}*/

/*.heb-login-divider span {*/
/*    background: #fff;*/
/*    padding: 0 10px;*/
/*}*/

/* Social */

.heb-social-login {
    text-align: center;
}



.heb-signup-link {
    margin-top: 20px;
    font-size: 14px;
}


/* ===========================
   PAYMENT DESIGN
=========================== */

.heb-book-details {
    margin: 20px 0 30px;
}

.heb-book-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.heb-book-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.heb-book-pricing {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.heb-mrp {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.heb-price {
    font-size: 24px;
    font-weight: 700;
    color: #6B0000;
}

.heb-buy-btn {
width: 100%;
    padding: 14px;
    background: #6B0000;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    /* font-weight: 600; */
    cursor: pointer;
    transition: 0.3s ease;
    /* height: 44px; */
    line-height: 15px;
}

.heb-buy-btn:hover {
    background: #6B0000;
}

.heb-purchase-history {
    display: grid;
    gap: 20px;
}

.heb-book-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}






.heb-wa-login label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.heb-wa-login input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    /*transition: 0.3s;*/
}

.heb-wa-login input:focus {
    border-color: #25D366;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.15);
}


/* ===============================
   SEND OTP BUTTON
=============================== */

.heb-wa-request-otp {
    width: 100%;
    margin-top: 12px;
    background: #111;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.heb-wa-request-otp:hover {
    background: #000;
}


/* ===============================
   VERIFY OTP BUTTON
=============================== */

.heb-wa-verify-otp {
    width: 100%;
    margin-top: 12px;
    background: #8B0000;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.heb-wa-verify-otp:hover {
    background: #a10000;
}


/* ===============================
   BACK TO EMAIL BUTTON
=============================== */

.heb-wa-back {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.heb-wa-back button {

    display: flex;
    align-items: center;
    justify-content: center;
}


.heb-wa-back button img {
 width: 24px;
 margin-right: 10px;
}

.heb-back-to-email {
    background: none;
    border: none;
    color: #8B0000;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.heb-back-to-email:hover {
    text-decoration: underline;
}




/* ===============================
   LOGIN DIVIDER
=============================== */

.heb-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.heb-login-divider::before,
.heb-login-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.heb-login-divider span {
    padding: 0 10px;
    font-size: 13px;
    color: #999;
}


/* ===============================
   SMOOTH TRANSITION FOR LOGIN FORMS
=============================== */

#heb-email-login-form,
.heb-wa-login {
    transition: all 0.3s ease;
}


/* ===============================
   MOBILE IMPROVEMENTS
=============================== */

@media (max-width: 768px) {
    .heb-login-right {
        padding: 20px;
    }

    .heb-wa-toggle-btn,
    .heb-wa-request-otp,
    .heb-wa-verify-otp {
        font-size: 14px;
        padding: 12px;
    }
}


.heb-processing-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.heb-processing-content {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    width: 340px;
}

.heb-loader {
    width: 45px;
    height: 45px;
    border: 4px solid #eee;
    border-top: 4px solid #a00000;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: hebspin 1s linear infinite;
}

@keyframes hebspin {
    100% { transform: rotate(360deg); }
}



/* ===========================
   Responsive
=========================== */



/* ===============================
   PARALLEL GOOGLE + WHATSAPP
=============================== */

.heb-social-row {
    display: block;

    margin-top: 15px;
}

.heb-social-col {
    display: block;
}
.heb-social-col button.heb-wa-toggle-btn {
    width: 100%;
    border-radius: 50px;
    background: #ffffff;
    border-color: #bfbfbf;
    color: #000000;
    font-size: 14px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.heb-social-col button.heb-wa-toggle-btn img {
   width: 24px;
    margin-right: 10px;
}

/* Google button styling */
.heb-google-col a,
.heb-google-col button {
    width: 100%;
    height: 44px;
    border-radius: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfbfbf;
}

.heb-google-col img{
    width: 24px;
    margin-right: 10px;
}
.heb-google-col span{
font-size: 14px;
color: #000;
}




#xs-social-login-container{
      max-width: 100%;
    margin: 0;
    padding-bottom: 0;
}



/* Header */
.heb-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Logout Button */
.heb-logout-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.heb-logout-btn:hover {
    background: #8b0000;
    color: #fff;
    border-color: #8b0000;
}

/* Profile Card */
.heb-profile-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 35px;
}

.heb-profile-card h4 {
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.heb-profile-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.heb-profile-row span {
    color: #777;
}

/* Unlock Card */
.heb-no-purchase-box {
    margin-top: 20px;
    padding: 35px;
    background: #f9f6f2;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.heb-no-purchase-box h3 {
    margin-bottom: 10px;
}

.heb-buy-book-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #6B0000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s ease;
}

.heb-buy-book-btn:hover {
    background: #a00000;
    color: #fff;
    transform: translateY(-2px);
}


/* Login Card */
.heb-login-card {
    max-width: 520px;
    margin: 60px auto;
    padding: 45px;
    background: #f9f6f2;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
}

/* Lock Icon */
.heb-login-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

/* Heading */
.heb-login-card h2 {
    margin-bottom: 10px;
    font-size: 26px;
}

/* Text */
.heb-login-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Button */
.heb-login-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #6B0000;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.heb-login-btn:hover {
    background: #a00000;
    color: #fff;
    transform: translateY(-2px);
}


.heb-order-card {
    display: flex;
    align-items: center;   /* 🔥 This vertically centers everything */
    justify-content: space-between;
    gap: 30px;
    padding: 25px 30px;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fff;
}

.heb-order-left img {
    width: 120px;
    border-radius: 10px;
}

.heb-order-middle {
    flex: 1;
}

.heb-order-meta {
    display: flex;
    gap: 60px;
    margin-top: 10px;
}

.heb-order-meta div span {
    display: block;
    font-size: 13px;
    color: #777;
}

.heb-order-meta div strong {
    font-size: 16px;
    color: #222;
}

.heb-order-action {
    display: flex;
    align-items: center; /* 🔥 Important */
}

.heb-read-btn {
    background: #6B0000;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.heb-read-btn:hover {
    color: #fff;
    background: #a80000;
}



/* =========================
   MOBILE RESPONSIVE FIX
========================= */

@media (max-width: 768px) {

    .heb-order-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 20px;
    }

    .heb-order-left {
        width: 100%;
        text-align: center;
    }

    .heb-order-left img {
        width: 140px;
    }

    .heb-order-middle {
        width: 100%;
    }

    .heb-order-title {
        text-align: center;
        margin-bottom: 15px;
    }

    .heb-order-meta {
        flex-direction: column;
        gap: 12px;
    }

    .heb-order-meta div {
        display: flex;
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 6px;
    }

    .heb-order-meta div span {
        font-size: 14px;
    }

    .heb-order-meta div strong {
        font-size: 14px;
    }

    .heb-order-action {
        width: 100%;
    }

    .heb-read-btn {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {

    .heb-account-wrapper {
        padding: 0 15px;
    }

    .heb-profile {
        background: #f9f9f9;
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 25px;
    }

    .heb-profile p {
        margin-bottom: 8px;
        font-size: 15px;
    }

    .heb-no-purchase-box {
        text-align: center;
        padding: 25px 20px;
    }

    .heb-buy-book-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

}





/* Stack on mobile */
@media (max-width: 768px) {
    .heb-social-row {
        flex-direction: column;
    }
}



@media (max-width: 768px) {

    #heb-book-popup {
        align-items: center;     /* center vertically */
        justify-content: center; /* center horizontally */
        padding: 15px;
    }

    .heb-popup-inner {
        width: 100%;
        max-width: 500px;
        height: auto;
        max-height: 90vh;       /* prevent overflow */
        display: block;
        overflow-y: auto;
        border-radius: 14px;
    }

    .heb-login-left {
        display: none !important; /* hide cover image */
    }

    .heb-login-right {
        width: 100%;
        padding: 25px 20px;
    }

}



