/*
	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.downloads {
  --text-color: var(--color__dark-grey);
  --button-color: var(--color__light-copper);
  --downloads-bg-color: var(--color__white);
  --accent-color: var(--color__dark-grey);
}

section.downloads .block-section-wrapper .downloads-header {
  margin-bottom: 3.125rem;
  color: var(--color__blue);
}

section.downloads .block-section-wrapper .downloads-content-wrapper {
  width: 100%;
  padding: 3.75rem 2.875rem 1.5rem;
  background-color: var(--downloads-bg-color);
  border-radius: 1.875rem;
  border: 1px solid var(--color__white-box-border);
}

section.downloads .block-section-wrapper .downloads-content-wrapper .download-item {
  color: var(--text-color);
  text-decoration: none;
  min-height: 100px;
  position: relative;
  border-top: 1px solid var(--color__medium-grey);
  padding: 1.75rem 0 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

section.downloads .block-section-wrapper .downloads-content-wrapper .download-item .button-circle span {
  position: relative;
}

section.downloads .block-section-wrapper .downloads-content-wrapper .download-item .button-circle span::after {
  content: "";
  position: absolute;
  transform: translate(-50%, -50%);
  bottom: -2px;
  left: 50%;
  width: 20px;
  height: 1px;
  background-color: var(--color__dark-grey);
}

section.downloads .block-section-wrapper .downloads-content-wrapper .download-item:hover .button-circle {
  background-color: var(--color__blue);
}

section.downloads .block-section-wrapper .downloads-content-wrapper .download-item:hover .button-circle span {
  color: var(--color__white);
}

section.downloads .block-section-wrapper .downloads-content-wrapper .download-item:hover .button-circle span::after {
  background-color: var(--color__white);
}
