/*
 * Site Search 360 header row — must load AFTER @RenderSection("head") (HubSpot/lei2022/etc.)
 * so course catalog and similar pages keep the compact right-aligned search + orange submit.
 */

body .tc_header .header_search_row .header_search_row_inner {
    display: flex !important;
    justify-content: flex-end !important;
}

body .tc_header .header_search_row .header_search_form {
    width: 100% !important;
    max-width: 380px !important;
    flex: 0 1 380px !important;
    min-width: 0 !important;
}

/* Screen-reader label only (legacy CSS often forces label { display:block; font-weight:bold }) */
body .tc_header .header_search_row label.header_search_label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* No leading magnifying-glass duplicate inside the field */
body .tc_header .header_search_row .search-form-popup::after {
    display: none !important;
    content: none !important;
}

body .tc_header .header_search_row .search-form-popup {
    display: flex !important;
    position: relative !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
}

body .tc_header .header_search_row .search-form-popup input[type="search"],
body .tc_header .header_search_row .search-form-popup input.ss360-searchbox {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 40px !important;
    padding: 8px 12px !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #333 !important;
    border: 1px solid #C5C5C5 !important;
    border-radius: 6px 0 0 6px !important;
    border-right: 0 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
}

body .tc_header .header_search_row .search-form-popup input[type="search"]::placeholder {
    color: #6b6b6b !important;
}

body .tc_header .header_search_row .header_search_submit.ss360-searchbutton,
body .tc_header .header_search_row #ss360-custom-searchbutton,
body .tc_header .header_search_row button.ss360-searchbutton {
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 6px 6px 0 !important;
    border: 2px solid #FF8C00 !important;
    background-color: #FF8C00 !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

body .tc_header .header_search_row .header_search_submit svg {
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
}

body .tc_header .header_search_row .header_search_submit:hover,
body .tc_header .header_search_row .header_search_submit:focus {
    background-color: #e67e00 !important;
    border-color: #e67e00 !important;
    color: #fff !important;
}
