/*
Theme Name: GeneratePress Child
Theme URI: https://yourwebsite.com
Description: A child theme for GeneratePress.
Author: Your Name
Author URI: https://yourwebsite.com
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/

:root {
    --sgd_color_primary: #0862B5;
    --sgd_color_light-accent: #F9FAFA;
    --sgd_color_text-alt: #404040;
    --sgd_font_family: 'Inter', sans-serif;
}

body.home {
    background-color: #fff;
}


/* Homepage - break out of viewport clipping so dropdown will appear */

.sgd-title-hero__wrapper,
.sgd-title-hero__wrapper .title-hero__container-mid {
    overflow: visible;
}

/* Button */

a.gb-text:not([href]) {
    cursor: pointer;
}

/* Separator */

.wp-block-separator {
    height: 1px;
    background: #E9E9EF;
    margin: 1rem 0;
    border: 0 none;
}

/* Bootstrap introduces container padding, remove it */

.container {
    padding: 0;
}

/* -----------------------------------------------------------------------------
   Full Height, affix footer to bottom
   -------------------------------------------------------------------------- */

body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
}
#page {
    flex: 1;
}
#page.grid-container {
    width: 100%;
}




/* -----------------------------------------------------------------------------
   Site Header
   -------------------------------------------------------------------------- */

header#masthead {
    height: 60px;
    padding: 0 24px;
}

header#masthead .inside-header {
    padding: 0;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}


/* -----------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */

.sgd-footer p {
    margin-bottom: 0;
}
.sgd-footer__nav ul {
    gap: 0;
}
.sgd-footer__nav li {
    margin-bottom: 10px;
}
.sgd-footer__nav li:not(:last-child) {
    border-right: #2C2C2C;
    margin-right: 24px;
}
.sgd-footer__nav li:not(:first-child) {
    margin-left: 24px;
}

@media (max-width: 1024px) {
    .sgd-footer__nav .wp-block-navigation {
        justify-content: center;
    }
    .sgd-footer__nav li {
        text-align: center;
        margin-left: 12px;
        margin-right: 12px !important;
    }
}


/* -----------------------------------------------------------------------------
   Main Navigation
   -------------------------------------------------------------------------- */

nav.main-navigation#site-navigation li:not(:last-child) {
    border-right: 1px solid rgba(243, 243, 243, 0.31);
}
nav.main-navigation#site-navigation li a {
    padding: 0;
    margin: 0 24px;
    line-height: 1;
}

/* Globe icon */

.sgd-menu-globe a {
    color: transparent !important;
    background-image: url('/wp-content/themes/generatepress-child/images/globe.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    padding: 3px 0 !important;
    width: 24px;
    margin-left: 20px;
    display: inline-block;
}

/* -----------------------------------------------------------------------------
   Accordion Global Styles
   -------------------------------------------------------------------------- */

.gb-accordion .gb-accordion__item {
    background: var(--sgd_color_light-accent);
    border: 1px solid #ECECEC;
    padding: 16px;
    border-radius: 4px;
}
.gb-accordion .gb-accordion__item :first-child {
    margin-top: 0;
}
.gb-accordion .gb-accordion__item :last-child {
    margin-bottom: 0;
}
.gb-accordion .gb-accordion__item .gb-accordion__toggle .gb-text {
    font-size: 15px;
    line-height: 25px;
    font-weight: 600;
    color: var(--sgd_color_text-alt);
}
.gb-accordion .gb-accordion__item .gb-accordion__content p {
    font-size: 15px;
    line-height: 25px;
    font-weight: 400;
    color: var(--sgd_color_text-alt);
}
.gb-accordion .gb-accordion__item .gb-accordion__content > div {
    margin-top: 16px;
}

/* -----------------------------------------------------------------------------
   Table
   -------------------------------------------------------------------------- */

.wp-block-table table {
    border-collapse: separate;
    border-radius: 4px;
    border-spacing: 0;
    border: 1px solid #B9B9B9;
    overflow: hidden;
    margin-bottom: 38px;
    background-color: #fff;
}
.wp-block-table table th {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid #B9B9B9;
    padding: 10px 11px;
    border-top: 0 none;
    border-left: 0 none;
    font-family: var(--sgd_font_family);
    font-size: 12px;
    font-weight: 600;
    line-height: 130%;
    text-align: left;
}
.wp-block-table table td {
    border: 1px solid #B9B9B9;
    padding: 10px 11px;
    border-top: 0 none;
    border-left: 0 none;
    font-family: var(--sgd_font_family);
    font-size: 12px;
    font-weight: 400;
    line-height: 130%;
    vertical-align: top;
    text-align: left;
}

.wp-block-table thead {
    border-bottom: 0 none;
}
.wp-block-table table th:first-child,
.wp-block-table table td:first-child {
  border-left: none;
}
.wp-block-table table th:last-child,
.wp-block-table table td:last-child {
  border-right: none;
}
.wp-block-table table tr:first-child th,
.wp-block-table table tr:first-child td {
  border-top: none;
}
.wp-block-table table tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Formidable
   -------------------------------------------------------------------------- */

.frm-redirect-msg {
    display: none;
}

/* align submit button */
.frm_form_field .frm_submit {
    justify-content: flex-end;
}
.frm_form_fields fieldset:last-child {
    padding-bottom: 0;
}
/* fieldset > div.frm_form_field.form-field:last-child {
    margin-bottom: 0;
} */

/* Number of hours select field */
.sgd-hours-calc-field select {
    background: url('/wp-content/themes/generatepress-child/images/schedule.svg');
    background-size: 19px;
    background-repeat: no-repeat;
    background-position: 12px center;
    padding-left: 40px;
}

/* errors */
.frm_error {
    position: relative;
    color: #F04438;
    display: flex;
    align-items: center;
    margin-top: 7px !important;
}
.frm_error::before {
    content: url('/wp-content/themes/generatepress-child/images/error.svg');
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* -----------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.sgd-radio__i-am label {
    min-height: 90px;
}
.sgd-radio__i-am .frm_label_button_container {
    border-width: 3px;
}
.cs-field-hidden {
	display:none !important;
}
#primary :is(.btn, button) {
    border-radius: 4px;
    font-size: 14px;
    background: var(--sgd_color_primary);
    color: #fff;
    padding: 10px 24px;
    height: 48px;
    margin-bottom: 10px;
}
#primary :is(
    input[type="text"], 
    input[type="email"], 
    input[type="tel"], 
    input[type="password"], 
    input[type="search"], 
) {
    height: 48px;
    padding: 0 10px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #E1E1E1;
    /* margin-bottom: 10px; */
}


/* Tom Select default */

.ts-control {
    border: 0 none;
    border-radius: 4px;
}


/* Education repeater list output */

.sgd_run_acf__education :is(ul, li, p, h3),
.sgd_run_acf__languages :is(ul, li) {
    font-size: 16px;
    line-height: 28px;
    margin: 0;
    padding: 0;
}
.sgd_run_acf__education ul,
.sgd_run_acf__languages ul {
    list-style-type: none;
}
.sgd_run_acf__education h3,
.sgd_run_acf__languages ul {
    font-weight: 600;
}
.sgd_run_acf__education li,
.sgd_run_acf__languages ul {
    margin-bottom: 16px;
}


/* Find guard by type, search fieldset on homepage, a Tom Select UI */

.sgd-ts-form {
    display: flex;
    flex-wrap: nowrap;
}
.sgd-ts-form .ts-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    font-size: 14px;
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-image: url('/wp-content/themes/generatepress-child/images/location_on.svg') !important;
    background-position: 10px center !important;
    background-repeat: no-repeat !important;
    padding-left: 40px;
}
.sgd-ts-form .ts-control > input {
    width: auto;
    font-size: inherit !important;
    color: inherit !important;
}
#primary .sgd-ts-form input[type="text"] {
    margin-bottom: 0;
    height: 32px;
}
#primary .sgd-ts-form select {
    flex: 1;
}
#primary .sgd-ts-form button {
    background-image: url('/wp-content/themes/generatepress-child/images/search.svg');
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
}
.sgd-ts-form .ts-wrapper {
    flex: 1;
}
.sgd-ts-form button {
    flex: 0 0 70px;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-bottom: 0;
}

/* add chevron to dropdowns */
select.form-control,
select.form-control:not(:focus) {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" fill="none"><path fill="black" d="M5.99957 4.9457 10.5996.345703l1.0537 1.053747L5.99957 7.0532.345819 1.39945 1.39957.345703l4.6 4.599997Z"/></svg>');
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: calc(100% - 1em) center;
    padding-right: 2em;
}
/* select.form-control:focus {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'><path transform='rotate(180 6 4)' fill='black' d='M5.99957 4.9457 10.5996.345703l1.0537 1.053747L5.99957 7.0532.345819 1.39945 1.39957.345703l4.6 4.599997Z'/></svg>");
} */

/* ---------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.page-numbers {
    display: inline-block;
    line-height: 22px;
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
    margin: 0 22px;
}
.page-numbers.current {
    font-weight: 700;
    border-bottom: 2px solid var(--sgd_color_primary);
}
a.page-numbers:hover {

}

.sgd-guard-result-count {
    font-size: 16px;
    font-weight: 600;
}


/* -----------------------------------------------------------------------------
   Custom Search Filter Bar
   -------------------------------------------------------------------------- */

.search main {
    padding-left: 20px;
    padding-right: 20px;
}

#sgd-search-filters {
    margin-top: 56px;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    width: var(--gb-container-width);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-items: start; /* NEW: Prevents items from stretching tall */
}

#sgd-search-filters .ts-dropdown-content .option {
    white-space: normal !important; 
    height: auto;

    padding-top: 4px;
    padding-bottom: 4px;
}

.sgd-price-slider-btn,
#sgd-search-filters .ts-wrapper {
    font-size: 15px;
    position: relative;
    cursor: pointer;
    font-weight: 400;
    color: #000;
    display: inline-block;
    cursor: pointer;
    border: 1px solid #E1E1E1;
    border-radius: 4px;
    background-color: #fff;
    background-image: url('/wp-content/themes/generatepress-child/images/chevron_down.svg');
    background-position: calc( 100% - 5px ) center;
    background-repeat: no-repeat;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
    padding-left: 40px;
    padding-right: 15px;
    width: 100%;
}

.sgd-price-slider-outer {
    position: relative;
}
.sgd-price-slider-btn {
    display: flex;
    align-items: center;
    height: 50px;
}
.sgd-price-slider-outer #priceFilter {
    padding: 32px 16px 20px;
    display: none;
}
.sgd-price-slider-outer #priceFilter.is-open {
    display: block;
}

#sgd-search-filters .sgd-filter {
    position: relative;
    flex: 1 1;
}
#sgd-search-filters .tom-select .ts-control {
    padding: 0 !important;
    background: transparent;
}

#sgd-search-filters .ts-control > input {
    margin: 0 !important;
}

/* selected count pill */
.sgd-selected-count:not(:empty) {
    background: #999;
    position: absolute;
    top: -9px;
    right: -11px;
    z-index: 9;
}

/* hide default checked pills */
#sgd-search-filters .tom-select .ts-control .item {
    display: none; 
}

/* stylize placeholder text */
#sgd-search-filters ::placeholder {
    color: black;
    font-size: 15px;
}

/* small prefix icons */
#sgd-search-filters .sgd-price-slider-btn::before,
#sgd-search-filters .ts-wrapper::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 20px;
    z-index: 9;
    left: 0;
}
#sgd-search-filters fieldset.asp_filter_cf_hourly_rate .ts-wrapper::before {
    background-image: url('/wp-content/themes/generatepress-child/images/pound.svg');
    background-size: 17px;
    background-position: 15px 40%;
}
#sgd-search-filters #GuardType ~ .ts-wrapper::before {
    background-image: url('/wp-content/themes/generatepress-child/images/location_on.svg');
    background-size: 22px;
    background-position: 10px 45%;
}
#sgd-search-filters .sgd-price-slider-btn::before {
    background-image: url('/wp-content/themes/generatepress-child/images/pound.svg');
    background-size: 16px;
    background-position: 14px 50%;
}
#sgd-search-filters #Industry ~ .ts-wrapper::before {
    background-image: url('/wp-content/themes/generatepress-child/images/hardhat.svg');
    background-size: 16px;
    background-position: 12px 50%;
}
#sgd-search-filters #License ~ .ts-wrapper::before {
    background-image: url('/wp-content/themes/generatepress-child/images/badge_check.svg');
    background-size: 24px;
    background-position: 9px 42%;
}
#sgd-search-filters #Borough ~ .ts-wrapper::before {
    background-image: url('/wp-content/themes/generatepress-child/images/pin.svg');
    background-size: 24px;
    background-position: 9px 46%;

}
#sgd-search-filters #Borough ~ .ts-wrapper {
min-width:200px;
}
#sgd-search-filters #Language ~ .ts-wrapper::before {
    background-image: url('/wp-content/themes/generatepress-child/images/smiley_globe.svg');
    background-size: 24px;
    background-position: 8px 40%
}

#sgd-search-filters #Language ~ .ts-wrapper::before {
    background-image: url('/wp-content/themes/generatepress-child/images/smiley_globe.svg');
    background-size: 24px;
    background-position: 8px 40%
}

#sgd-search-filters #Experience ~ .ts-wrapper::before {
    background-image: url('/wp-content/themes/generatepress-child/images/smiley_globe.svg'); /* You need to upload a clock.svg icon */
    background-size: 20px;
    background-position: 10px 50%; 
}
#sgd-search-filters #Experience ~ .ts-wrapper {
	min-width:220px
}
#sgd-search-filters .sgd-price-slider-outer {
	min-width:180px
}

.sgd-price-slider-wrapper #sgd-price-slider {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#sgd-price-slider {
    width: 90% !important;
}
#sgd-price-slider .noUi-handle{
	width:20px;
	height:20px;
	border:1px solid #000;
	border-radius:6px;
	background:#d9d9d9;
}
.noUi-handle::after, .noUi-handle::before {
    display: none;
}
.noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 40px;
    top: -9px;
    right: -10px;
    box-shadow: none;
}
.noUi-target {
    box-shadow: none;
}
.noUi-horizontal {
    height: 4px;
}
#sgd-price-slider .noUi-connects{
	
}
#sgd-price-slider .noUi-connect{
	background:#000;
}
.sgd-price-slider-title{
	font-weight:700;
	margin-bottom:8px;
}

.sgd-price-sort-controls{
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0; /* A slightly softer border */
}
.sgd-price-sort-controls .sgd-price-sort-title {
	font-size:12px;
	margin-bottom:8px;
	font-weight:600;
}

.sgd-price-sort-controls .sgd-custom-radio-wrapper {
    margin-bottom: 8px; 
}

.sgd-price-sort-controls .sgd-custom-radio-label {
    display: flex; 
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: normal;
    position: relative; 
	margin-left:1rem
}

/* Text part of the label */
.sgd-price-sort-controls .sgd-custom-radio-label {
    flex-grow: 1; 
}

/* Hide the actual radio button */
.sgd-price-sort-controls .sgd-custom-radio-label input[type="radio"].sgd-sort-radio {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

/* Style for the custom radio box (the span) */
.sgd-price-sort-controls .sgd-custom-radio-label .sgd-custom-radiobox {
    width: 16px;
    height: 16px;
    border: 1px solid #777;   
    border-radius: 3px;       
    display: inline-block;    
    position: relative;     
    margin-left: 10px;        
    background-color: #fff;
    flex-shrink: 0;           
    order: 2;                 
}

/* Style for the "checked" state - the checkmark */
.sgd-price-sort-controls .sgd-custom-radio-label input[type="radio"].sgd-sort-radio:checked + .sgd-custom-radiobox::after {
    content: '';
    position: absolute;
    left: 5px;  
    top: 2px;   
    width: 4px;
    height: 8px;
    border: solid #333; 
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.sgd-price-sort-controls .sgd-custom-radio-label input[type="radio"].sgd-sort-radio:focus + .sgd-custom-radiobox {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.4); 
    border-color: #007bff;
}

#sgd-search-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; 
    gap: 10px;
    position: relative; 
}

#sgd-mobile-active-filter-area {
    flex-grow: 1; 
    min-width: 0;
}

#sgd-mobile-select-filter-btn.sgd-tune-icon-btn {
    background-image: url('/wp-content/themes/generatepress-child/images/tune.svg');
    background-size: 20px 20px; 
    background-position: center;
    background-repeat: no-repeat;
    width: 50px; 
    height: 50px; 
    padding: 0;
    border: 1px solid #E1E1E1;
    border-radius: 4px;
    background-color: #fff;
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0; 
}
.wp-container-core-columns-is-layout-9d6595d7 {
	display: none !important;
}

#sgd-mobile-filter-choice-panel {
    display: none; 
    position: fixed; 
    top: 60px; /* Adjust: e.g., height of your site header */
    left: 0;
    width: 100vw; 
    max-height: calc(100vh - 70px); 
    overflow-y: auto;
    background-color: #fff;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    z-index: 1001; 
    box-sizing: border-box;
}

#sgd-mobile-filter-choice-panel ul {
    list-style: none; margin: 0; padding: 0;
}
#sgd-mobile-filter-choice-panel li {
    padding: 12px 15px; cursor: pointer; border-bottom: 1px solid #eee;
}
#sgd-mobile-filter-choice-panel li:last-child { border-bottom: none; }
#sgd-mobile-filter-choice-panel li:hover { background-color: #f5f5f5; }

/* Ensure the currently displayed filter in the active area is visible */
#sgd-mobile-active-filter-area > .sgd-filter-item-wrapper {
    display: block !important; 
    margin-bottom: 0; 
}

/* On mobile, original filters (not in active area) remain hidden by JS */
/* The body.sgd-mobile-filters-active rule from before might not be needed if JS handles display directly */

/* Desktop Styles - ensure mobile specific UI is hidden */
@media (min-width: 768px) { /* sgdMobileBreakpoint + 1px */


    #sgd-mobile-active-filter-area,
    #sgd-mobile-select-filter-btn,
    #sgd-mobile-filter-choice-panel {
        display: none !important;
    }
	#sgd-search-filters {
		flex-wrap:nowrap;
	}

 
}

/* -----------------------------------------------------------------------------
   Search Result Template - source from pattern library
   -------------------------------------------------------------------------- */

#sgd_search_results {
    width: var(--gb-container-width);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0 auto;
    position: relative;
}
#sgd-results-count {
	   width: var(--gb-container-width);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0 auto;
    position: relative;
	margin-bottom:1rem;
}
#sgd_search_results .sgd-bio-panel {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    column-gap: 27px;
    justify-content: flex-start;
    margin-bottom: 27px;
    max-width: 100%;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #f9fafa;
    padding: 24px;
}
#sgd_search_results .sgd-bio-panel:hover {
    border-color: #666;
    transition: all 0.3s ease;
}

#sgd_search_results .sgd-col-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    column-gap: 16px;
    width: 100%;
}

#sgd_search_results .sgd-hourly {
    color: #000;
    font-weight: 700;
    font-size: 16px;
}
#sgd_search_results .sgd-acf__specializations {
    margin-bottom: 10px;
}

#sgd_search_results img.sgd-avatar {
    width: 69px;
    height: 69px;
    border-radius: 69px;
    object-fit: cover;
}
#sgd_search_results .sgd-bio {
    font-size: 14px;
    color: #000;
    font-weight: 400;
    line-height: 22px;
}
#sgd_search_results .sgd-guard-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    margin-bottom: 4px;
    text-decoration: none;
}


#sgd_search_results .sgd-photo-and-name {
    display: flex;
	flex-direction:column;
    flex-wrap: nowrap;
    column-gap: 16px;
    margin-bottom: 15px;
}
#sgd_search_results .sgd-guard-name-and-stats {
	margin-top:8px;
}
@media (min-width: 768px) {
	#sgd_search_results .sgd-photo-and-name {
    	flex-direction:row;
	}
	#sgd_search_results .sgd-guard-name-and-stats {
		margin-top:0;
	}
}

/* show more */
.sgd-show-more {
    padding: 40px 0 60px;
    text-align: center;
}

/* floating bio video */

#sgd-bio-video {
    display: none;
}
@media (min-width: 768px) {
    #sgd_search_results .sgd-bio-panel {
        max-width: calc( 100% - 400px );
    }
    #sgd-bio-video {
        position: absolute;
        top: 0;
        right: 0;
        transition: top 0.3s ease;
        width: 375px;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    #sgd-bio-video iframe {
        border-radius: 8px;
        border: 1px solid #666;
        overflow: hidden;
        width: 100%;
        height: 100%;
    }
}

                                /* -----------------------------------------------------------------------------
                                Ajax Search Pro - Filter Bar
                                -------------------------------------------------------------------------- */

                                .asp_shortcodes_container > .asp_shortcode_column:last-child {
                                    flex: 1 0 100%;
                                }
                                .asp_shortcodes_container form.asp-fss-flex {
                                    justify-content: center;
                                }
                                .asp_shortcodes_container legend {
                                    display: none;
                                }
                                div.asp_sb.asp_sb_1.searchsettings .asp_sett_scroll, 
                                div.asp_s.asp_s_1.searchsettings .asp_sett_scroll {
                                    scrollbar-color: initial !important;
                                }

                                #main form.asp-fss-flex {
                                    justify-content: center;
                                    gap: 16px;
                                }
                                #main fieldset[class*="asp_filter"] {
                                    position: relative;
                                    width: auto !important;
                                    min-width: 0 !important;
                                    max-width: 100% !important;
                                    display: none;
                                }
                                #main fieldset .sgd-facet-toggle {
                                    font-size: 15px;
                                    cursor: pointer;
                                    font-weight: 400;
                                    color: #000;
                                    display: inline-block;
                                    padding: 10px 40px 10px 38px;
                                    border: 1px solid #E1E1E1;
                                    border-radius: 4px;
                                    background-color: #fff;
                                    background-image: url('/wp-content/themes/generatepress-child/images/chevron_down.svg');
                                    background-position: calc( 100% - 5px ) center;
                                    background-repeat: no-repeat;
                                    white-space: nowrap;
                                    text-overflow: ellipsis;
                                }
                                #main fieldset .sgd-facet-toggle + div {
                                    border: 1px solid #E1E1E1;
                                    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
                                    border-radius: 4px;
                                    position: absolute;
                                    background: #fff;
                                    top: 100%;
                                    max-width: 100%;
                                    padding: 10px 0;
                                    width: 180px;
                                    z-index: 99;
                                    max-height: 500px !important;
                                }
                                #main div.asp_w.asp_sb.searchsettings .asp_option, 
                                #main div.asp_w.asp_s.searchsettings .asp_option {
                                    margin-bottom: 6px;
                                }
                                #main div.asp_w.asp_sb.searchsettings .asp_option_inner {
                                    background: transparent;
                                    width: 14px;
                                    height: 14px;
                                }
                                #main div.asp_w.asp_sb.searchsettings .asp_option_inner .asp_option_checkbox {
                                    background: #fff;
                                    border: 1px solid #777;
                                    border-radius: 0;
                                    box-sizing: border-box;
                                    width: 14px;
                                    height: 14px;
                                }
                                #main #ajaxsearchprosettings1_1.searchsettings .asp_option_inner .asp_option_checkbox::after, 
                                #main #ajaxsearchprosettings1_2.searchsettings .asp_option_inner .asp_option_checkbox::after, 
                                #main #ajaxsearchprobsettings1_1.searchsettings .asp_option_inner .asp_option_checkbox::after, 
                                #main #ajaxsearchprobsettings1_2.searchsettings .asp_option_inner .asp_option_checkbox::after, 
                                #main div.asp_sb.asp_sb_1.searchsettings .asp_option_inner .asp_option_checkbox::after, 
                                #main div.asp_s.asp_s_1.searchsettings .asp_option_inner .asp_option_checkbox::after {
                                    color: #666 !important;
                                    margin: 0 !important
                                }
                                div.asp_w.asp_s.searchsettings fieldset div.asp_option_label, 
                                div.asp_w.asp_sb.searchsettings fieldset div.asp_option_label {
                                    font-size: 13px;
                                    color: #444;
                                    line-height: 1.2 !important;
                                }

                                /* apply icons to each field */

                                fieldset[class*="asp_filter"]::before {
                                    content: '';
                                    position: absolute;
                                    width: 50px;
                                    height: 50px;
                                    background-repeat: no-repeat;
                                    background-position: 10px center;
                                    background-size: 20px;
                                }
                                fieldset.asp_filter_cf_hourly_rate::before {
                                    background-image: url('/wp-content/themes/generatepress-child/images/pound.svg');
                                    background-size: 17px;
                                    background-position: 15px 40%;
                                }
                                fieldset.asp_filter_tax_guard-type::before {
                                    background-image: url('/wp-content/themes/generatepress-child/images/location_on.svg');
                                    background-size: 22px;
                                    background-position: 10px 40%;
                                }
                                fieldset.asp_filter_tax_industry::before {
                                    background-image: url('/wp-content/themes/generatepress-child/images/hardhat.svg');
                                    background-size: 16px;
                                    background-position: 12px 42%;
                                }
                                fieldset.asp_filter_tax_licenses-courses::before {
                                    background-image: url('/wp-content/themes/generatepress-child/images/badge_check.svg');
                                    background-size: 24px;
                                    background-position: 9px 42%;
                                }
                                fieldset.asp_filter_tax_london-borough::before {
                                    background-image: url('/wp-content/themes/generatepress-child/images/pin.svg');
                                    background-size: 24px;
                                    background-position: 9px 40%;

                                }
                                fieldset.asp_filter_tax_language::before {
                                    background-image: url('/wp-content/themes/generatepress-child/images/smiley_globe.svg');
                                    background-size: 24px;
                                    background-position: 8px 40%
                                }



/* Misc */

.sgd-acf__specializations :is(a, span) {
    background: rgba(8, 98, 181, 0.12);
    font-size: 15px;
    color: #000;
    display: inline-block;
    line-height: 1.1;
    font-weight: 400;
    border-radius: 4px;
    margin: 0 8px 8px 0;
    padding: 5px 10px;
    text-decoration: none;
}

.sgd-acf__permits :is(a, span) {
    background: rgba(19, 185, 77, 0.20);
    font-size: 15px;
    color: #000;
    display: inline-block;
    line-height: 1.1;
    font-weight: 400;
    border-radius: 4px;
    margin: 0 8px 8px 0;
    padding: 5px 10px;
}