.filters-container-main {
  --wp--style--block-gap: 0;
}

.inline-search-form, #tag-wrapper {
  width: 50vw;           /* 50% of the viewport width */
  max-width: 50%;        /* optional fallback */
  margin: 0 auto;        /* centers it horizontally */
}

@media (max-width: 768px) {
  .inline-search-form, #tag-wrapper {
    width: 100vw;           /* 50% of the viewport width */
    max-width: 100%;        /* optional fallback */
    margin: 0 auto;        /* centers it horizontally */
  }
}

/* Container for all filters stacked vertically */
.filters-container {
  display: flex;
  flex-direction: column; /* stack filters top-to-bottom */
  gap: 20px; /* space between filter rows */
  width: 100%;
}

/* Each filter row */
.custom-multiselect {
  display: flex;
  flex-direction: row; /* options flow horizontally */
  flex-wrap: wrap;     /* wrap options to next line if needed */
  gap: 5px;           /* space between options */
}

/* Individual options */
.custom-multiselect .option {
  padding: 0px 5px;
  cursor: pointer;
  border: 2px solid #ed2024; /* outline red */
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  user-select: none;
  white-space: nowrap; /* prevent text from breaking inside the option */
}

/* Selected option style */
.custom-multiselect .option.selected {
  background-color: #ed2024; /* solid red */
  color: #fff;
}


.filters-container-main {
  /* position: sticky; */
  margin: 0 auto;
  top: 0px; /* stick 20px from top */
  left: 0;   /* align to left edge of viewport */
  right: 0;  /* stretch full width */
  
  /* border: 1px solid red; */
  /* width: 65vw; /* full viewport width */
  box-sizing: border-box; /* include padding in width */
  z-index: 1000;
  /*background: #fff; /* optional, ensures readability */
  padding: 10px 20px; /* optional padding */
   /* box-shadow: 0 2px 8px rgba(0,0,0,0.2); optional shadow */
  font-size: 12px;
  line-height: 1.7;
}

/* Optional shadow when sticky */
.filters-container-main.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 60%;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.2); */
  padding: 10px 10px; /* optional padding while sticky */
}

.filters-container-main {
  left: 0;
  right: 0;
  width: 90vw;  /* full viewport width */
  box-sizing: border-box;
}

.filters-container-main label {
  font-weight: bold;
  padding-top: 6px;
  font-size: 1.2em;
}



/* transducer product search css */
.search-box {
  width: 100%;
  max-width: 400px; /* optional */
  position: relative;
  margin: 10px 0;
}

.search-box label {
  display: flex;
  align-items: center;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 8px 8px 8px 30px; /* left padding to make room for icon */
  border: 2px solid #ed2024;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
}

.search-box input:focus {
  border-color: #ed2024;
}



/** new search bar **/
.inline-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* allows wrapping on small screens */
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.inline-search-form input[type="text"],
.inline-search-form select {
  padding: 8px 10px;
  border: 2px solid #ed2024;
  border-radius: 15px;
  font-size: 14px;
  flex: 1; /* makes them expand evenly */
  min-width: 150px;
  outline: none;
  transition: border-color 0.2s;
}

.inline-search-form input[type="text"]:focus,
.inline-search-form select:focus {
  border-color: #b81a1d;
  
}

#search-text {
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 15px 0px 0px 15px;
}

.inline-search-form #main-reset-btn {
  padding: 10px 14px;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  min-width: 90px;
}

.inline-search-form #main-reset-btn {
  background-color: #ed2024;
  color: #fff;
}

.inline-search-form #main-reset-btn:hover {
  background-color: #c71a1e;
}

.reset-btn a {
  border-radius: 15px;
}


/* Container layout */
.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  padding: 10px 0;
}

/* Filter block */
.filter-item {
  flex: 1;
  min-width: 250px;
}

/* Label */
.filter-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

/* Input group (search box + button) */
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.filter-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 15px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.filter-input:focus {
  outline: none;
  border-color: #ed2024;
}

.filter-btn {
  background-color: #ed2024;
  color: #fff;
  border: 1px solid #ed2024;
  border-radius: 0 15px 15px 0;
  padding: 8px 15px 8px 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-btn:hover {
  background-color: #c91b1e;
}

/* Select styling */
.filter-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: #ed2024;
}

/* Active tags styling */
.active-tags {
  display: inline-block;
  gap: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
  float: right; 
}

#tag-wrapper {
  display: flex;
  flex-wrap: wrap; /* allows stacking */
  margin-block-start: 0px;
}



/* Push this one to the right */
#filter-result-message {
  margin-top: 5px;
}

#filter-result-message p {
  margin: 0px;
}

#active-search-tags {
 margin-bottom: 5px;
 text-align: right;
 padding-left: 57px;
}

/* Mobile stack */
@media (max-width: 768px) {
  #tag-wrapper > div {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #filter-result-message {
    text-align: left; /* usually better on mobile */
  }

  #tag-wrapper > div {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #active-search-tags {
  text-align: left;
  }

  #active-search-tags {
  margin-bottom: 5px;
  text-align: left;
  padding-left: 12px;
  }

}


.active-tag {
  display: inline-flex;       /* shrink to content, but allow alignment */
  align-items: center;
  gap: 8px;                   /* space between text and × */
  padding: 0px 8px 2px 8px;
  border: 2px solid #ed2024;
  background-color: #fff;
  color: #ed2024;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 500;
  margin-right:5px;




  white-space: nowrap;        /* prevent wrapping inside the tag */
  width: auto;                /* ensure no fixed width */
  min-width: 0;               /* safe default (allows shrink) */
}
.active-tag .remove-tag {
  margin-left: 6px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
}

/** tradeshow date styling **/





/**
 *  TRANSDUCER PAGE STYLING
 **/
.datasheet-btn a {
   padding-top: 3px;
   padding-bottom: 3px;
   border-radius: 15px;
}

.datasheet-btn a:hover{
  background: white;
  color: #ed2024 !important;
}


/**
 *  PRODUCT CARDS
 **/
ul.pc-bullets {
  list-style: none; /* remove default bullets */
  padding-left: 1.5em; /* space for custom bullet */
  
}

ul.pc-bullets li {
  position: relative;
  margin-bottom: 0.5em; /* optional spacing between items */
  padding-left: 20px;
}

ul.pc-bullets li::before {
  content: "";
  margin-right: 0.5em; /* optional spacing between items */
  position: absolute;
  left: 0;
  top: 0.5em; /* vertically center the square roughly */
  width: 0.6em;   /* medium size */
  height: 0.6em;  /* medium size */
  background-color: #ed2024; /* red color */
}