/* The group's card chrome (background, border, radius, padding) comes from
   .c-card, which AccordionGroup puts on its root. Import it so linking
   components/accordion alone is enough. */
@import url("/assets/components/card-94249e0c.css");

.c-accordion-group__header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  background: none;
  border: none;
  box-sizing: border-box;
  min-height: 1.5rem;
  padding: 0.25rem 0 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.c-accordion-group__title-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.c-accordion-group__title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: #191e1a;
}

.c-accordion-group__pill {
  display: inline-flex;
  height: 18px;
  min-width: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: #ecfaeb;
  padding: 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 18px;
  color: #007a0c;
}

.c-accordion-group__chevron {
  color: #99a89b;
  transform: rotate(-90deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.c-accordion-group__chevron--open {
  transform: rotate(0deg);
}

.c-accordion-group__body {
  margin-top: 0.75rem;
}

.c-accordion-item {
  color: #607163;
}

.c-accordion-item--selected {
  color: #191e1a;
}

.c-accordion-item__header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  border: none;
  border-top: 1px solid #e9ece9;
  background: none;
  /* The top divider counts towards the design's 42px row height. */
  padding: calc(0.75rem - 1px) 0 0.75rem;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* A selected row (one with active filters) turns its label and icon green,
   per the Figma Subgroup row's State=Selected. */
.c-accordion-item--selected .c-accordion-item__label,
.c-accordion-item--selected .c-accordion-item__icon {
  color: #007a0c;
}

.c-accordion-item__label-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.c-accordion-item__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #b9c3ba;
}

.c-accordion-item__label {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1rem;
}

.c-accordion-item__pill {
  display: inline-flex;
  height: 18px;
  min-width: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: #ecfaeb;
  padding: 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 18px;
  color: #007a0c;
}

.c-accordion-item__chevron {
  color: #99a89b;
  transform: rotate(-90deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.c-accordion-item__chevron--open {
  transform: rotate(0deg);
}

.c-accordion-item__body {
  padding: 0.125rem 0 0.875rem;
}

.c-accordion-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* `* +` rather than `.c-accordion-section +`, so a section also spaces
   itself from a preceding non-section control. Filters in one body are
   16px apart, with no divider between them. */
* + .c-accordion-section {
  margin-top: 1rem;
}

/* A group with no subgroup rows (such as Barbican's Buyers card) holds its
   sections directly, and divides them like subgroup rows: a grey-200 top
   divider with 16px above and below. The divider counts towards the 16px
   above, as Figma draws it inside the section's padding. */
.c-accordion-group__body > .c-accordion-section {
  border-top: 1px solid #e9ece9;
  margin-top: 0;
  padding: calc(1rem - 1px) 0 1rem;
}

.c-accordion-section__eyebrow {
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #99a89b;
}
