/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 700;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
section.accordion {
  --text-color: var(--color__dark-grey);
  --button-color: var(--color__light-copper);
  --accordion-bg-color: var(--color__white);
  --accent-color: var(--color__dark-grey);
  font-weight: 300;
}

section.accordion .block-section-wrapper .accordion-content-wrapper {
  display: flex;
  gap: var(--column-gap);
}

@media screen and (max-width: 1210px) {
  section.accordion .block-section-wrapper .accordion-content-wrapper {
    gap: 6.25rem;
  }
}
@media screen and (max-width: 1000px) {
  section.accordion .block-section-wrapper .accordion-content-wrapper {
    flex-direction: column;
    gap: 3.125rem;
  }
}
section.accordion .block-section-wrapper .accordion-content-wrapper .accordion-text-content {
  width: 50%;
}

@media screen and (max-width: 1000px) {
  section.accordion .block-section-wrapper .accordion-content-wrapper .accordion-text-content {
    width: 100%;
  }
}
section.accordion .block-section-wrapper .accordion-content-wrapper .accordion-text-content .accordion-category {
  font-weight: 400;
}

section.accordion .block-section-wrapper .accordion-content-wrapper .accordion-text-content .accordion-category::before {
  background-color: var(--accent-color);
}

section.accordion .block-section-wrapper .accordion-content-wrapper .accordion-text-content .accordion-header {
  font-weight: 300;
  margin: 0 0 3.125rem;
  line-height: 1;
}

section.accordion .block-section-wrapper .accordion-content-wrapper .accordion-text-content .accordion-text {
  margin: 0 0 3.125rem;
  max-width: 80%;
}

@media screen and (max-width: 1000px) {
  section.accordion .block-section-wrapper .accordion-content-wrapper .accordion-text-content .accordion-text {
    max-width: 100%;
  }
}
section.accordion .block-section-wrapper .accordion-content-wrapper .accordion-text-content .accordion-link {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

section.accordion .block-section-wrapper .accordion-content-wrapper .accordion {
  width: 50%;
}

@media screen and (max-width: 1000px) {
  section.accordion .block-section-wrapper .accordion-content-wrapper .accordion {
    width: 100%;
  }
}
section.accordion .block-section-wrapper .accordion-content-wrapper .accordion .accordion-item {
  background-color: var(--accordion-bg-color);
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  min-height: 100px;
  position: relative;
}

section.accordion .block-section-wrapper .accordion-content-wrapper .accordion .accordion-item::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -5px;
  height: 50px;
  width: 20px;
  background-color: var(--color__warm-white);
  transform: rotate(40deg);
}

section.accordion .block-section-wrapper .accordion-content-wrapper .accordion .accordion-item .accordion-item__question {
  padding: 1rem 1rem 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100px;
  width: 100%;
}

section.accordion .block-section-wrapper .accordion-content-wrapper .accordion .accordion-item .accordion-item__question .accordion-plus-icon {
  font-size: 1rem;
  transition: all 0.4s ease;
  min-height: 45px;
  min-width: 45px;
  margin-left: 1.625rem;
}

section.accordion .block-section-wrapper .accordion-content-wrapper .accordion .accordion-item .accordion-item__question.active .accordion-plus-icon {
  transform: rotate(45deg);
  background-color: var(--color__light-copper);
}

section.accordion .block-section-wrapper .accordion-content-wrapper .accordion .accordion-item .accordion-item__answer {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  padding: 0 1rem;
  transition: max-height 0.4s ease, padding-top 0.4s ease, padding-bottom 0.4s ease;
  z-index: 1;
}
