/* ── Accordion with Backgrounds – Frontend styles ── */

.sfb-awb-main-title {
  margin-bottom: 1rem;
}

.sfb-awb-section {
  border-bottom: 1px solid #ddd;
  position: relative;
}

/* Background element */
.sfb-awb-bg {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.sfb-awb-section.is-open .sfb-awb-bg {
  display: block;
}

.sfb-awb-section.has-bg.is-open {
  min-height: 450px;
}

.sfb-awb-section.has-bg .sfb-awb-toggle,
.sfb-awb-section.has-bg .sfb-awb-content {
  position: relative;
  z-index: 1;
}

.sfb-awb-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0;
}

.sfb-awb-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.sfb-awb-icon {
  display: flex;
  align-items: center;
  transition: transform 0.3s;
}

.sfb-awb-section.is-open .sfb-awb-icon {
  transform: rotate(180deg);
}

.sfb-awb-section.is-open .sfb-awb-content {
  max-height: 600px;
  padding-bottom: 1rem;
}

/* ── Style: Default ── */
.sfb-awb-style--default .sfb-awb-section {
  border-bottom-color: #ddd;
}

.sfb-awb-style--default .sfb-awb-toggle {
  color: inherit;
}
