/*
 Theme Name:   Astrologer Child
 Theme URI:    https://demo.kamleshyadav.com/themeforest/astrologer/demo1/
 Description:  Astrologer Child Theme
 Author:       kamleshyadav
 Author URI:   https://themeforest.net/user/kamleshyadav
 Template:     astrologer
 Version:      2.3
 License:      Themeforest Split Licence
 License URI:  LICENSE
 Tags:         custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 Text Domain:  astrologer-child
*/
 

/* Override: restore normal bold text size (theme 2.6 introduced oversized bold in post content) */
.al-single-data p strong {
    font-size: inherit !important;
    line-height: inherit !important;
}


/* Fix: CF7 consultation form - overflow and response message */
.page-id-417 .vc_row,
.page-id-417 .vc_column-inner,
.page-id-417 .wpb_wrapper {
    overflow: visible !important;
}
#wpcf7-f790-p417-o1 form.wpcf7-form {
    position: relative;
}
#wpcf7-f790-p417-o1 form.init .wpcf7-response-output,
#wpcf7-f790-p417-o1 form.resetting .wpcf7-response-output,
#wpcf7-f790-p417-o1 form.submitting .wpcf7-response-output {
    display: none;
}
#wpcf7-f790-p417-o1 form.sent .wpcf7-response-output {
    display: block !important;
    position: absolute !important;
    bottom: -80px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    padding: 15px 20px !important;
    text-align: center !important;
    border: 2px solid #46b450 !important;
    background: #f0fff0 !important;
    color: #000 !important;
    z-index: 999 !important;
}

/* Fix: newsletter input width in sidebar */
.al-right-sidebar .mc4wp-form input[type="email"] {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.al-right-sidebar .mc4wp-form {
    width: 100% !important;
}

/* Fix: sidebar newsletter form overflow */
#mc4wp_form_widget-2 .al-sign-form li {
    flex-wrap: wrap !important;
}
#mc4wp_form_widget-2 input[type="email"] {
    width: 100% !important;
    margin-bottom: 10px !important;
}
#mc4wp_form_widget-2 input[type="submit"] {
    width: 100% !important;
    min-width: 0 !important;
}

/* Fix: Prokerala date/time field mobile layout */
@media (max-width: 768px) {
    .pk-astrology-form .pk-astrology-row {
        flex-direction: column !important;
    }
    .pk-astrology-form .pk-astrology-col-sm-3,
    .pk-astrology-form .pk-astrology-col-md-4 {
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 5px !important;
    }
    .pk-astrology-form .pk-astrology-col-sm-9,
    .pk-astrology-form .pk-astrology-col-md-8 {
        width: 100% !important;
    }
    .pk-astrology-form input[type="datetime-local"],
    .pk-astrology-form .pk-astrology-form-control {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Fix CTA buttons on mobile */
    #jyotish-next-cta div {
        flex-direction: column !important;
        align-items: center !important;
    }
    #jyotish-next-cta a {
        width: 80% !important;
        text-align: center !important;
    }
}

/* Fix: Prokerala form mobile layout */
@media (max-width: 767px) {
    .pk-astrology-form-group.pk-astrology-row {
        display: block !important;
    }
    .pk-astrology-form-group .pk-astrology-col-sm-3,
    .pk-astrology-form-group .pk-astrology-col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 5px !important;
        padding: 0 !important;
    }
    .pk-astrology-form-group .pk-astrology-col-sm-9,
    .pk-astrology-form-group .pk-astrology-col-md-8 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .pk-astrology-form-control {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    #jyotish-next-cta > div {
        flex-direction: column !important;
        align-items: center !important;
    }
    #jyotish-next-cta a {
        width: 80% !important;
        display: block !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
}

/* Fix: Prokerala form mobile - date field overlap */
@media (max-width: 767px) {
    .pk-astrology-row {
        display: block !important;
        width: 100% !important;
    }
    .pk-astrology-col-sm-3,
    .pk-astrology-col-md-4 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-bottom: 5px !important;
    }
    .pk-astrology-col-sm-9,
    .pk-astrology-col-md-8 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    input[type="datetime-local"].pk-astrology-form-control,
    input.pk-astrology-form-control,
    select.pk-astrology-form-control {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    #jyotish-next-cta > div {
        flex-direction: column !important;
        align-items: center !important;
    }
    #jyotish-next-cta a {
        width: 80% !important;
        display: block !important;
        text-align: center !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
}

/* Hide Ayanamsa field from homepage Moon sign form */
.pk-astrology-form .pk-astrology-form-group:has(select[name="ayanamsa"]) {
    display: none !important;
}

/* Remove sidebar on Vedic Kundli Reports page */
.page-id-1682 .al-right-sidebar,
.page-id-1682 .al-sidebar-area {
    display: none !important;
}
.page-id-1682 .al-content-area {
    width: 100% !important;
    max-width: 100% !important;
}

/* Remove sidebar on Vedic Kundli Reports page */
.page-id-1682 .al-right-sidebar,
.page-id-1682 .al-sidebar-area {
    display: none !important;
}
.page-id-1682 .al-content-area,
.page-id-1682 .al-main-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}
.no-nice-select + .nice-select { display: none !important; } .no-nice-select { display: block !important; }

/* Restore native select for kundli gender fields */
select[name="js_gender"],
select[name="js_partner_gender"] {
    display: block !important;
    -webkit-appearance: menulist !important;
    appearance: menulist !important;
}

/* Fix vedic-kundli-reports mobile overflow */
@media (max-width: 768px) {
    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="display:grid"] {
        overflow-x: hidden !important;
    }
}

/* Mobile fix for kundli reports page */
@media (max-width: 768px) {
    /* Fix 3-column grid to single column */
    div[style*="repeat(3,1fr)"],
    div[style*="repeat(3, 1fr)"] {
        display: block !important;
    }
    div[style*="repeat(3,1fr)"] > div,
    div[style*="repeat(3, 1fr)"] > div {
        margin-bottom: 20px !important;
        width: 100% !important;
    }
    /* Fix How It Works 4-column to 2-column */
    div[style*="repeat(4,1fr)"],
    div[style*="repeat(4, 1fr)"] {
        grid-template-columns: repeat(2,1fr) !important;
    }
    /* Fix page padding */
    .entry-content > div,
    .wpb_wrapper > div {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    /* Fix MOST POPULAR badge overflow */
    div[style*="position:absolute"][style*="top:-12px"] {
        font-size: 10px !important;
        padding: 3px 10px !important;
        white-space: nowrap !important;
    }
}

/* Prevent horizontal scroll on mobile */
body, html {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Fix AM/PM cut off on mobile for Prokerala widget */
.pk-astrology-form input[type="datetime-local"],
.pk-astrology-form input[type="date"],
.pk-astrology-form input[type="time"],
.pk-astrology-wrap input[type="datetime-local"] {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
}

.pk-astrology-form table,
.pk-astrology-form tr,
.pk-astrology-form td {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Hide product rating stars everywhere */
.woocommerce .star-rating,
.woocommerce-product-rating,
.wc-block-grid__product-rating,
.woocommerce ul.products li.product .star-rating,
.widget_products .star-rating,
.related .star-rating,
.upsells .star-rating {
    display: none !important;
}

/* Hide social share on wishlist page */
.woocommerce-wishlist .heateor_sss_sharing_container,
.woocommerce-wishlist .heateor_sss_sharing_ul,
body.woocommerce-wishlist .nc_wrapper_icons {
    display: none !important;
}

/* Hide wishlist button */
.yith-wcwl-add-to-wishlist,
.add_to_wishlist,
a.add_to_wishlist,
.yith-wcwl-wishlistexistsbrowse,
.yith-wcwl-wishlistaddedbrowse,
[class*="wishlist"] {
    display: none !important;
}


