/* Keep the search catalog visually consistent with the shared course grids. */
.wccs-catalog,
.wccs-catalog-form,
.wccs-catalog-popover,
.wccs-catalog-popover-root,
.wccs-catalog-popover .fbs-course-card {
  font-family: var(--font-body, Arial, Helvetica, sans-serif) !important;
}

.wccs-catalog {
  --wccs-accent: #f28c00;
  --wccs-accent-active: #d97600;
  --wccs-fbs-red: #f28c00;
}

/* Use the EinsA palette for native catalog filters as well. */
.wccs-catalog input[type="checkbox"],
.wccs-catalog input[type="radio"] {
  accent-color: #f28c00 !important;
}

.wccs-catalog-form .wccs-catalog__sidebar input[type="checkbox"] {
  accent-color: #f28c00 !important;
}

.wccs-catalog .wccs-search__button {
  background: #f28c00 !important;
  color: #fff !important;
}

.wccs-catalog .wccs-search__button:hover,
.wccs-catalog .wccs-search__button:focus {
  background: #d97600 !important;
}

.wccs-catalog .wccs-filter input:checked + label,
.wccs-catalog .wccs-filter label:has(input:checked) {
  color: #333638;
}

.wccs-catalog-popover h1,
.wccs-catalog-popover h2,
.wccs-catalog-popover h3,
.wccs-catalog-popover h4,
.wccs-catalog-popover h5,
.wccs-catalog-popover h6 {
  font-family: var(--font-heading, var(--font-body, Arial, Helvetica, sans-serif)) !important;
}

.wccs-catalog-popover.wccs-catalog {
  width: min(var(--wccs-popover-width, 1120px), calc(100vw - 40px));
}

.wccs-catalog-popover .wccs-catalog__grid,
ul.products.wccs-catalog__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.wccs-catalog-popover .fbs-course-grid-card,
.wccs-catalog-popover .fbs-course-card__body {
  font-family: var(--font-body, Arial, Helvetica, sans-serif) !important;
}

.wccs-catalog .einsa-course-search-options {
  padding-top: 0.6rem;
}

.wccs-catalog .einsa-course-search-options__body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wccs-catalog .einsa-course-search-weekdays {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wccs-catalog .einsa-course-search-weekdays__buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem;
}

.wccs-catalog-popover .einsa-course-search-weekdays__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wccs-catalog .einsa-course-search-weekdays__buttons label {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.wccs-catalog .einsa-course-search-weekdays__buttons input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  appearance: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
}

.wccs-catalog .einsa-course-search-weekdays__buttons span {
  display: grid;
  width: 2.5rem;
  height: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: #f1f3f5;
  color: #596269;
  font-size: 15px;
  font-weight: 700;
}

.wccs-catalog .einsa-course-search-weekdays__buttons label:has(input:checked) span {
  border-color: #f28c00;
  background: #f28c00;
  color: #fff;
}

.wccs-catalog__sidebar .einsa-course-search-options__body {
  display: block;
}

.wccs-catalog__sidebar .einsa-course-search-options {
  padding-top: 0.35rem;
  border-top: 0;
}

.wccs-catalog__sidebar .einsa-course-search-weekdays__buttons {
  flex-wrap: wrap;
  gap: 0.25rem;
}

.wccs-catalog__sidebar .einsa-course-search-weekdays__buttons span {
  width: 2.2rem;
  height: 2rem;
}

.wccs-catalog__sidebar .einsa-course-search-options .wccs-example-toggle {
  display: flex;
  width: auto;
  min-height: 0;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 0.35rem;
  color: #333638;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .wccs-catalog .einsa-course-search-options__body {
    align-items: stretch;
    flex-direction: column;
  }
}

.wccs-catalog-popover .einsa-course-search-weekdays__buttons label:has(input:focus-visible) span {
  outline: 2px solid #f28c00;
  outline-offset: 2px;
}

@media (max-width: 850px) {
  .wccs-catalog-popover .wccs-catalog__grid,
  ul.products.wccs-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .wccs-catalog-popover.wccs-catalog {
    width: calc(100vw - 16px);
  }

  .wccs-catalog-popover .wccs-catalog__grid,
  ul.products.wccs-catalog__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
