.facetwp-form {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    /* Adjust other styling as needed */
}

.form-rows {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 20px; /* Adjust spacing between form items */
}
.form-rows label {
    margin-bottom: 5px;
    font-weight: bold;
}
.form-rows input, .form-rows select{
    height:30px;
    line-height: 0 !important;
}



.internal-widget-area{
    padding-top: 23px;
    text-align: right;
}
/* Adjust other styling for dropdowns and input button as needed */

/* Custom allocation of widths */
.container-rows{
    display: flex;
}
.map-area {
    flex-basis: 80%;
}

@media(max-width:560px){
    .facetwp-form{
        display: block !important;
    }
    .form-rows{
        display: block !important;
    }
    .container-rows{
        display: block;
    }
    .map-area {
        flex-basis: 100%;
    }
    .widgets-area{
        flex-basis: 100%;
    }
}

.widgets-area {
    flex-basis: 20%;
}
.all-responsive{
    width: 100%;
}
/* custom legends for right area */
.legend-container {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.legend-header {
    font-size: 16px;
    margin: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
}

.legend-content {
    padding-top: 10px;
    text-align: center;
}
.legend-content h2{
    text-align: center;
    font-size:35px;
}
.legend-content h3{
    text-align: center;
    font-size: 34px;
}
.legend-content h5 {
    display: inline-block;
    margin: 0;
    padding: 25px 13px;
    background-color: gray;
    color: white;
    border-radius: 50%; /* Adjust the value for roundness */
    text-align: center;    
    /* line-height: 25px; */
}
/* end */

/* flags of radio buttons */
/* Hide the default radio buttons */
.facetwp-radio input[type="radio"] {
    display: none;
  }
  
  /* Style the custom radio buttons using background images */
  .facetwp-radio {
    display: inline !important;
    cursor: pointer;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
    width: 30px; /* Adjust as needed */
    height: 20px; /* Adjust as needed */
    margin-right: 10px; /* Adjust spacing */
    padding-left: 26px !important;
  }
  /* Hide the text content of the radio labels */
.facetwp-radio .facetwp-display-value,
.facetwp-radio .facetwp-counter {
  display: none;
}
/* Style the label to display the flag */
.facetwp-radio.checked label {
    display: block;
    width: 100%; /* Adjust as needed */
    height: 100%; /* Adjust as needed */
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
  }
  /* Apply specific flag images based on data-value attribute */
  .facetwp-radio[data-value="united-states"] {
    background-image: url('../../images/us-flag.png') !important;
  }
  .facetwp-facet-country .fs-option[data-idx="0"]{
    display:none !important;
  }
  .facetwp-facet-country .fs-option[data-value="united-states"] {
    background-image: url('../../images/us-flag.png') !important;
    background-size: 23px; /* Adjust the size of the flag */
    background-repeat: no-repeat;
    padding-left: 25px; /* Adjust the padding to make room for the flag */
    padding-top:0;
  }
  .facetwp-facet-country .fs-option[data-value="canada"] {
    background-image: url('../../images/canada-flag.png') !important;
    background-size: 23px; /* Adjust the size of the flag */
    background-repeat: no-repeat;
    padding-left: 25px; /* Adjust the padding to make room for the flag */
    padding-top:0;
  }
  .facetwp-radio[data-value="canada"] {
    background-image: url('../../images/canada-flag.png') !important;
  }
  .facetwp-radio.checked {
    border-bottom: 2px solid #ccc;
  }
  /* Target the select element generated by FacetWP */
/* Target all filter options generated by FacetWP */
.facetwp-facet-option {
    font-size: 12px !important;
  }
    .fs-wrap{
        font-size:13px;
    }
/* end */

/* styles to average tables */
.zebra-table {
    border-collapse: collapse;
    width: 100%;
    /* margin-top:20px; */
    margin-bottom: 0 !important;
}

.zebra-table th,
.zebra-table td {
    border: 1px solid #dddddd;
    padding: 8px;
    text-align: left;
}

.zebra-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.zebra-table th {
    background-color: #1a27a7; /* Set header background color */
    color: #fff;
}
/* Styles for sorting indicators (arrows) */
.sortable-header:after {
content: "";
float: right;
margin-top: 8px;
}

.sortable-header.asc:after {
content: " ↑";
}

.sortable-header.desc:after {
content: " ↓";
}
/* Styles for sorting indicators (arrows) */
.sortable-header:after {
content: " ↑ ↓"; /* Both up and down arrows */
float: right;
margin-top: 8px;
opacity: 0.5; /* Set default opacity for disabled state */
}

/* Change opacity of active sorting indicator */
.sortable-header.asc.active:after,
.sortable-header.desc.active:after {
opacity: 1; /* Set opacity for active state */
}
h4{
text-transform:uppercase;
font-weight:normal;
}

/* end */

/* Apply styles to the table container */
.table-container {
    max-height: 296px; /* Adjust the desired height */
    overflow-y: auto;
    margin-bottom: 20px;
}

/* Apply consistent width to header and body cells */
#state-table th,
#state-table td {
    width: 33.33%; /* Divide equally for 3 columns */
    padding: 8px; /* Adjust padding as needed */
    box-sizing: border-box; /* Include padding in total width */
}

/* Sticky header styles */
#state-table thead, 
#city-table thead, 
#shop-type-table thead, 
#vehicle-type-table thead
 {
    position: sticky;
    top: 0;
    background-color: #f2f2f2; /* Adjust background color as needed */
}
/* end */