/* ZRM Accordion — clean accordion with circular toggle buttons */

.zrm-accordion {
  --zrm-accordion-border: 1px solid #e5e7eb;
  --zrm-accordion-toggle-bg: #f3f4f6;
  --zrm-accordion-toggle-size: 28px;
}

/* Each accordion item */
.zrm-accordion > .brxe-block {
  border-bottom: var(--zrm-accordion-border);
}

.zrm-accordion > .brxe-block:first-child {
  border-top: var(--zrm-accordion-border);
}

/* Title row: flex with space-between */
.accordion-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.accordion-title-wrapper:hover {
  background-color: rgba(243, 244, 246, 0.5);
}

/* Title text takes remaining space */
.accordion-title-wrapper .brxe-heading {
  flex: 1;
  margin: 0;
}

/* Circular toggle button (wraps the icon) */
.accordion-title-wrapper .brxe-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--zrm-accordion-toggle-size);
  height: var(--zrm-accordion-toggle-size);
  min-width: var(--zrm-accordion-toggle-size);
  min-height: var(--zrm-accordion-toggle-size);
  background: var(--zrm-accordion-toggle-bg);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

/* Rotate caret when expanded (^) */
.zrm-accordion .brx-open .accordion-title-wrapper .brxe-icon {
  transform: rotate(180deg);
}

/* Content panel visibility handled by Bricks accordion script */
