.wp-block-acf-toggle {
  margin-top: calc(1.5 * var(--padding));
  margin-bottom: calc(1.5 * var(--padding));
}

.acf-toggle {
  background: var(--lightBackground, #eee);
  padding: calc(0.5 * var(--padding)) var(--paddingX);
}
.acf-toggle .toggle-content {
  display: none;
  padding: 0 0 0.625rem 0;
}

.wp-block-acf-toggle--is-active .toggle-content {
  display: block;
}
.wp-block-acf-toggle--is-active .toggle-button .toggle-button__icon {
  transform: rotate(90deg);
}
.wp-block-acf-toggle--is-active .toggle-button:hover:not(:focus) .toggle-button__icon {
  transform: rotate(0deg);
}

.wp-block-acf-toggle--block .toggle-content > *:last-child {
  margin-bottom: 0;
}
.wp-block-acf-toggle--block .toggle-button {
  padding: 0.5em 0;
  border: 0;
  margin: 0;
  background: transparent;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  cursor: pointer;
  border-radius: 0;
  color: var(--colorText);
  font-size: var(--fontSize, 1rem);
}
.wp-block-acf-toggle--block .toggle-button .toggle-button__label {
  flex: 0 1 auto;
  max-width: calc(100% - 2rem);
  text-align: left;
  text-decoration: none;
}
.wp-block-acf-toggle--block .toggle-button .toggle-button__icon {
  flex: 0 0 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 1.75rem;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
  height: 1.75rem;
  width: 1.75rem;
  margin-right: 0.25rem;
}
.wp-block-acf-toggle--block .toggle-button .toggle-button__icon svg {
  fill: currentColor;
}
.wp-block-acf-toggle--block .toggle-button:hover, .wp-block-acf-toggle--block .toggle-button:focus {
  color: var(--colorText);
}
.wp-block-acf-toggle--block .toggle-button:hover .toggle-button__label, .wp-block-acf-toggle--block .toggle-button:focus .toggle-button__label {
  text-decoration: underline;
}
.wp-block-acf-toggle--block .toggle-button:not(:focus-visible) {
  color: var(--colorText);
}
.wp-block-acf-toggle--block .toggle-button:not(:focus-visible) .toggle-button__label {
  text-decoration: none;
}
.wp-block-acf-toggle--block.wp-block-acf-toggle--is-active .toggle-button .toggle-button__icon {
  transform: rotate(-90deg);
}

.wp-block-acf-toggle--button .acf-toggle {
  background: transparent;
  padding: 0;
}
.wp-block-acf-toggle--button .acf-toggle .toggle-content {
  padding: 0;
}
.wp-block-acf-toggle--button .toggle-button {
  border: 0;
  margin: 0 auto;
  padding: 0;
  border-radius: 2em;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  cursor: pointer;
  font-size: var(--fontSize, 1rem);
  border-radius: 2em;
  background: transparent;
  color: var(--colorLink);
  text-decoration: none;
}
.wp-block-acf-toggle--button .toggle-button:hover {
  background: transparent;
  border-color: var(--colorLinkHover);
  color: var(--colorLinkHover);
  font-weight: 700;
}
.wp-block-acf-toggle--button .toggle-button:active, .wp-block-acf-toggle--button .toggle-button:focus {
  background: transparent;
  border-color: var(--colorLinkHover);
  color: var(--colorLinkHover);
}
.wp-block-acf-toggle--button .toggle-button:hover {
  animation: link-scale 0.3s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .wp-block-acf-toggle--button .toggle-button:hover {
    animation: none;
  }
}
.wp-block-acf-toggle--button .toggle-button .toggle-button__label {
  text-align: left;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding: 0;
}
.wp-block-acf-toggle--button .toggle-button .toggle-button__icon {
  display: none;
  justify-content: flex-start;
  align-items: center;
  font-size: 1em;
  height: 2em;
  width: 2em;
}
.wp-block-acf-toggle--button .toggle-button .toggle-button__icon svg {
  fill: currentColor;
}
.wp-block-acf-toggle--button.wp-block-acf-toggle--is-active .toggle-button .toggle-button__icon {
  transform: rotate(45deg);
}

.block-editor-block-list__block .wp-block-acf-toggle .toggle-content {
  display: block !important;
}