/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* =========================================================
   1. RESPONSIVE MODAL WIDTHS (Desktop 60%, Tab 80%, Phone 90%)
   ========================================================= */

/* Desktop (1025px and up) */
#gp-search .gp-modal__container {
    width: 60% !important;
    max-width: 60% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Tablet (768px to 1024px) */
@media (max-width: 1024px) {
    #gp-search .gp-modal__container {
        width: 80% !important;
        max-width: 80% !important;
    }
}

/* Mobile Phone (767px and below) */
@media (max-width: 767px) {
    #gp-search .gp-modal__container {
        width: 90% !important;
        max-width: 90% !important;
    }
}

/* Force Ajax Search Pro container to fill 100% of the modal width */
#gp-search .asp_w_container,
#gp-search .asp_main_container {
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================================================
   2. REMOVE ALL BORDERS, OUTLINES & SHADOWS
   ========================================================= */

#gp-search .gp-modal__container,
#gp-search .asp_main_container,
#gp-search .probox,
#gp-search .proinput,
#gp-search .proinput input.orig,
#gp-search .proinput input.autocomplete,
#gp-search .promagnifier {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove focus border/ring when clicking inside the search input */
#gp-search .proinput input.orig:focus,
#gp-search .promagnifier:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Keep live dropdown results above the modal and borderless */
div.asp_r.asp_r_1 {
    z-index: 99999999 !important;
    border: none !important;
}


/* Force Ajax Search Pro results above the GeneratePress Modal */
div.asp_r,
div.asp_s,
.asp_main_container {
    z-index: 9999999 !important;
}

/* Ensure the modal doesn't clip the dropdown */
.gp-modal--open .gp-modal__container {
    overflow: visible !important;
}
