/**
 * Systemguide Process and Sector Filter Styles
 */

.systemguide-filters-wrapper #systemguide-filter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-heading {
  margin: 0;
  margin-bottom: 10px;
}

.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  width: 100%;
  padding: 10px;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.filter-toggle.open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
  margin-bottom: 0;
}

.filter-toggle i {
  transition: transform 0.3s ease;
}

.filter-toggle.open i {
  transform: rotate(180deg);
}

/* Search input container */
.search-input-container {
  position: relative;
  display: flex;
}

/* Search input */
#sg-search-input {
  flex: 1;
  padding: 10px;
  padding-right: 40px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.15;
  height: 42px;
  background-color: #fff;
}

#sg-search-input:focus {
  outline: none;
  border-color: #e48d52;
  box-shadow: 0 0 0 1px rgba(228, 141, 82, 0.2);
}

/* Search button */
.search-button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  background: transparent;
  border: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-button:hover {
  color: #e48d52;
}

/* Search icon */
.search-button i {
  font-size: 18px;
}

.process-filters {
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  padding: 10px;
  display: none;
  margin-bottom: 20px;
  font-family: "Lato", Helvetica, Arial, sans-serif;
}

.process-item {
  margin-bottom: 20px;
}

.process-item:last-child {
  margin-bottom: 0;
}

.process-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.grade-buttons {
  display: flex;
  gap: 20px;
}

.grade-btn {
  flex: 1;
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.grade-btn.low {
  background-color: #f1f1f1;
  color: #e48d52;
}

.grade-btn.medium {
  background-color: #f1f1f1;
  color: #e48d52;
}

.grade-btn.high {
  background-color: #f1f1f1;
  color: #e48d52;
}

.grade-btn.low.active {
  background-color: #e48d52;
  color: white;
}

.grade-btn.medium.active {
  background-color: #e48d52;
  color: white;
}

.grade-btn.high.active {
  background-color: #e48d52;
  color: white;
}

.apply-filters {
  background: #374456;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.apply-filters:hover {
  background: #d17a40;
}

.reset-filters-container {
  background: #374456;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 10px;
  text-align: center;
}

.reset-filters-container a {
  color: white;
  text-decoration: none;
}

.reset-filters-container:hover {
  background: #d17a40;
  text-decoration: none;
}

/* Style for the taxonomy filters section */

.taxonomy-filter label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  margin-bottom: 10px;
}

.taxonomy-filter .select-wrapper {
  position: relative;
  width: 100%;
}

.taxonomy-filter select {
  width: 100%;
  padding: 10px;
  padding-right: 30px;
  /* Make room for icon */
  border: 1px solid #ddd;
  border-radius: 3px;
  background-color: #fff;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  appearance: none;
  /* Remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  line-height: 1.15;
  cursor: pointer;
}

/* Position the custom arrow icon */
.taxonomy-filter .system-icon-angle-down {
  position: absolute;
  right: 12px;
  /* Adjust this value to move arrow left or right */
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  /* Ensure clicks pass through to select */
  color: #666;
  /* Arrow color */
  font-size: 16px;
  /* Arrow size */
}

/* For Firefox */
.taxonomy-filter select::-ms-expand {
  display: none;
}

/* Customer size options container */
.customer-size-options {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
  padding-top: 5px;
}

/* Individual option */
.customer-size-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Change icon and text color when checkbox is checked */
.customer-size-option input:checked~.customer-size-label {
  color: #e48d52;
  /* Orange text color when selected */
}

.customer-size-option:hover .customer-size-label i {
  color: #e48d52;
}

/* Hide the default checkbox */
.customer-size-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Label with icon and text */
.customer-size-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 16px;
}

/* Icon styling */
.customer-size-label i {
  font-size: 24px;
  transition: color 0.2s ease;
  color: #4a4a4a;
  /* Default icon color */
}

/* Change icon color when checkbox is checked */
.customer-size-option input:checked~.customer-size-label label,
.customer-size-option input:checked~.customer-size-label i {
  color: #e48d52;
  /* Orange color when selected */
}

/* Icon styling */
.customer-size-label i {
  font-size: 24px;
}

/* Text part of the label */
.customer-size-text {
  font-weight: 400;
}


/* Filter options container */
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

/* Individual pill option */
.filter-pill-option {
  display: inline-block;
  cursor: pointer;
}

/* Hide the actual checkbox */
.filter-pill-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Pill styling */
.filter-pill {
  display: inline-block;
  padding: 8px 15px;
  background-color: #f1f1f1;
  color: #e48d52;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: "Lato", Helvetica, Arial, sans-serif;
}

/* Hover state */
.filter-pill-option:hover .filter-pill {
  background-color: #ececec;
}

/* Active/checked state */
.filter-pill-option input:checked+.filter-pill {
  background-color: #e48d52;
  color: white;
}

@media (max-width: 1300px) {
  .systemguide-filters-wrapper {
    padding-top: 20px;
    display: none;
  }
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .grade-buttons {
    flex-direction: column;
  }

  .grade-btn {
    margin-bottom: 8px;
  }

  .taxonomy-filters-wrapper {
    display: flex;
    gap: 15px;
  }

  .taxonomy-filter {
    flex: 1;
  }

  .customer-size-text {
    font-size: 14px;
  }

  .filter-options {
    gap: 8px;
  }

  .filter-pill {
    font-size: 13px;
    padding: 6px 12px;
  }
}

@media (max-width: 576px) {

  .filter-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
}