@charset "UTF-8";
/*
	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
*/
.block-section.jump-to-section {
  --header-color: var(--color__grey);
  --border-color: var(--color__light-grey);
  --text-color: var(--color__dark-grey);
  --input-color: var(--color__warm-white);
  --hover-bg: var(--color__light-grey);
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: right;
  overflow: visible;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-content) 0 var(--spacing-content-small);
}

@media screen and (max-width: 850px) {
  .block-section.jump-to-section {
    justify-content: left;
    height: 15rem;
  }
}
.block-section.jump-to-section .content-wrapper {
  display: flex;
  gap: var(--spacing-content-small);
  align-items: center;
  justify-content: flex-end;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

@media screen and (max-width: 850px) {
  .block-section.jump-to-section .content-wrapper {
    flex-direction: column;
    justify-content: flex-start;
    align-items: baseline;
    width: 100%;
  }
}
.jump-to-section__header {
  color: var(--color__grey);
}

.jump-to-section__dropdown-wrapper {
  position: relative;
  width: 21.25rem;
}

@media screen and (max-width: 480px) {
  .jump-to-section__dropdown-wrapper {
    width: 100%;
  }
}
.jump-to-section__dropdown-wrapper::after {
  content: "Г";
  font-family: "icon";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center center;
  color: var(--color__dark-grey);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.jump-to-section__dropdown-wrapper.is-open::after {
  transform: translateY(-50%) rotate(270deg);
}

.jump-to-section__select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1.5rem;
  font-size: 1rem;
  border: 1px solid var(--color__light-grey);
  border-radius: 2em;
  background-color: var(--color__warm-white);
  cursor: pointer;
  text-align: left;
  color: var(--color__dark-grey);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.jump-to-section__select:hover {
  border-color: var(--color__grey);
}

.jump-to-section__select:focus {
  outline: none;
  border-color: var(--color__dark-grey);
}

.jump-to-section__selected-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jump-to-section__dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background-color: var(--color__warm-white);
  border: 1px solid var(--color__light-grey);
  border-radius: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  max-height: 18.75rem;
  overflow-y: auto;
  z-index: 100;
}

.jump-to-section__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.jump-to-section__dropdown::-webkit-scrollbar {
  width: 4px;
}

.jump-to-section__dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.jump-to-section__dropdown::-webkit-scrollbar-thumb {
  background: var(--color__light-grey);
  border-radius: 4px;
}

.jump-to-section__dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--color__grey);
}

.jump-to-section__option {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  color: var(--color__dark-grey);
  transition: background-color 0.15s ease;
}

.jump-to-section__option:hover {
  background-color: var(--color__greige);
}

.jump-to-section__option[aria-selected=true] {
  background-color: var(--color__light-grey);
}
