/*
	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
*/
form {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-flow: row wrap;
  gap: 1rem var(--spacing-grid-gap);
}

form .form-field {
  display: flex;
  flex-direction: column;
}

form .form-field.half {
  flex: 1;
}

form .form-field.full {
  flex: 0 0 100%;
}

form .form-field label {
  margin-bottom: 8px;
}

form .form-field input,
form .form-field textarea {
  width: 100%;
  padding: 0.9rem;
  border: none;
  background-color: var(--color__grey);
}

form .button-field {
  text-align: right;
  width: 100%;
  margin-top: 1rem;
}

form button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
}

form button:hover {
  background-color: #45a049;
}
