/* Accordion */
.tlp-acf-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tlp-acf-accordion__item {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e4de;
  border-radius: 14px;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.tlp-acf-accordion__heading {
  margin: 0;
  padding: 0;
  font: inherit;
}

.tlp-acf-accordion__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  color: #10203a;
  background: transparent;
  border: 0;
  border-radius: inherit;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease;
}

/* Hello Elementor reset.css applies its own background to button:hover. */
.tlp-acf-accordion .tlp-acf-accordion__trigger:hover,
.tlp-acf-accordion .tlp-acf-accordion__trigger:focus,
.tlp-acf-accordion .tlp-acf-accordion__trigger:focus-visible,
.tlp-acf-accordion .tlp-acf-accordion__trigger:active {
  background-color: transparent;
}

.tlp-acf-accordion__trigger:focus-visible {
  outline: 3px solid color-mix(in srgb, currentColor 30%, transparent);
  outline-offset: -4px;
}

.tlp-acf-accordion__icon {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #f21f2f;
  transition: color 180ms ease;
}

.tlp-acf-accordion__icon::before,
.tlp-acf-accordion__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: '';
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.tlp-acf-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.tlp-acf-accordion__trigger[aria-expanded='true'] .tlp-acf-accordion__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.tlp-acf-accordion__panel[hidden] {
  display: none;
}

.tlp-acf-accordion__content-inner {
  padding: 0 24px 22px;
}

.tlp-acf-accordion__content {
  color: #34445c;
  font-size: 16px;
  line-height: 1.65;
}

.tlp-acf-accordion__content > :first-child,
.tlp-acf-repeater-table__cell > :first-child {
  margin-top: 0;
}

.tlp-acf-accordion__content > :last-child,
.tlp-acf-repeater-table__cell > :last-child {
  margin-bottom: 0;
}

/* Table */
.tlp-acf-repeater-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 12px;
}

.tlp-acf-repeater-table {
  width: 100%;
  min-width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid #e6e4de;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.tlp-acf-repeater-table th,
.tlp-acf-repeater-table td {
  padding: 14px 18px;
  vertical-align: top;
  border-color: #e6e4de;
  border-style: solid;
  border-width: 0 1px 1px 0;
  text-align: left;
  overflow-wrap: anywhere;
  transition: background-color 180ms ease;
}

.tlp-acf-repeater-table tr > :last-child {
  border-right-width: 0 !important;
}

.tlp-acf-repeater-table tbody tr:last-child > * {
  border-bottom-width: 0 !important;
}

.tlp-acf-repeater-table thead th {
  color: #10203a;
  background: #f7f7f5;
  font-weight: 700;
}

.tlp-acf-repeater-table__col--first {
  width: 35%;
}

.tlp-acf-repeater-table__cell {
  color: #34445c;
}

.tlp-acf-repeater-table__cell--first {
  color: #10203a;
}

.tlp-acf-repeater-table__cell--second {
  color: #34445c;
}


/* Transposed table: configured ACF fields become rows and Repeater records become columns. */
.tlp-acf-repeater-table--transposed .tlp-acf-repeater-table__row-heading {
  color: #10203a;
  background: #f7f7f5;
  font-weight: 700;
}

/* Editor notice */
.tlp-acf-repeater__notice,
.tlp-acf-accordion__notice {
  padding: 14px 18px;
  color: #34445c;
  background: #fbf1cf;
  border: 1px solid #f3c33d;
  border-radius: 10px;
}

*@media (max-width: 767px) {
  .tlp-acf-repeater-table {
    max-width: 90%!important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlp-acf-accordion__item,
  .tlp-acf-accordion__icon::before,
  .tlp-acf-accordion__icon::after,
  .tlp-acf-accordion__trigger,
  .tlp-acf-accordion__icon,
  .tlp-acf-repeater-table th,
  .tlp-acf-repeater-table td {
    transition: none;
  }
}
