/* Header Search and Social Media Wrapper Styles */

/* New wrapper to isolate search and social media */
#header-search-social-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important; /* CHANGED from 15px to 8px - makes icons closer */
    flex-wrap: wrap !important;
    padding: 5px 0 !important;
    margin-right: 20px !important; /* Move away from right edge */
    margin-top: -6px !important; /* Pull up to center with larger icons */
}

/* CRITICAL FIX: Make search bar maintain height with floated children */
#header-search-social-wrapper .search {
    background: url(/customize/bgsearch.png) no-repeat;
    background-position: center !important; /* Center the background */
    width: 222px;
    padding: 0px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    height: 26px !important; /* Increased height for better text centering */
    overflow: visible !important;
    line-height: 26px !important; /* Match height */
    margin-right: 7px !important; /* ADD EXTRA SPACE after search bar */
}

/* Add clearfix to search form */
#header-search-social-wrapper .search form {
    margin: 0 !important;
    overflow: hidden !important;
    height: 26px !important; /* Match search height */
    line-height: 26px !important; /* Match height */
}

#header-search-social-wrapper .search input {
    border: none !important;
    background: transparent !important;
    outline: none !important; /* Remove black outline on focus */
    box-shadow: none !important; /* Remove any box shadow */
}

#header-search-social-wrapper .search input.txt {
    margin-left: 5px;
    font-style: italic;
    color: #4848FF !important; /* BLUE color - force override */
    width: 180px;
    float: left;
    padding: 0 !important;
    line-height: 26px !important;
    height: 26px !important;
    vertical-align: middle !important;
    font-size: 11px !important;
    margin-top: -0.5px !important; /* Pulls text up slightly */
    outline: none !important; /* Remove outline */
    border: none !important; /* Remove border */
}

/* Remove focus styling completely */
#header-search-social-wrapper .search input.txt:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #00B050 !important; /* Keep green on focus */
}

#header-search-social-wrapper .search input.button {
    background: url(/customize/icon_search.png) no-repeat;
    background-position: center !important;
    width: 27px;
    height: 17px;
    margin: 4px 5px 0px 0px; /* Adjusted to center with new height */
    float: right;
    cursor: pointer;
    outline: none !important; /* Remove outline */
}

#header-search-social-wrapper .search input.button:focus {
    outline: none !important;
}

/* Social media links - keep original 40x40 size */
#header-search-social-wrapper > a {
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    height: 40px !important;
}

#header-search-social-wrapper img {
    display: block !important;
    height: 40px !important;
    width: 40px !important;
    vertical-align: middle !important;
}

/* Hide on tablets and mobile */
@media only screen and (max-width: 1024px) {
    #header-search-social-wrapper {
        display: none !important;
    }
}

/* Hide logo on mobile devices in both portrait and landscape */
@media (max-width: 1024px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* Keep desktop layout for larger screens */
@media (min-width: 1025px) {
    .header > .container {
        min-height: 65px;
        display: flex;
        align-items: center;
    }
}