/*
	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.stock-notices-and-calendar.block-section.has-background:not(.has-inner-background-color) {
  padding: calc(var(--spacing-block) / 2) 0;
}

section.stock-notices-and-calendar .stock-notices-calendar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-block);
}

@media screen and (max-width: 1210px) {
  section.stock-notices-and-calendar .stock-notices-calendar-grid {
    gap: var(--spacing-content);
  }
}
@media screen and (max-width: 1000px) {
  section.stock-notices-and-calendar .stock-notices-calendar-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-block);
  }
}
section.stock-notices-and-calendar .stock-notices .block-title {
  margin-bottom: var(--spacing-content);
  font-weight: 300;
}

section.stock-notices-and-calendar .stock-notices .notices-list {
  margin-bottom: var(--spacing-content);
}

section.stock-notices-and-calendar .stock-notices .stock-notice-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

section.stock-notices-and-calendar .stock-notices .stock-notice-entry:first-child {
  padding-top: 0;
}

section.stock-notices-and-calendar .stock-notices .stock-notice-entry:hover {
  border-bottom: 1px solid var(--color__dark-grey);
}

section.stock-notices-and-calendar .stock-notices .stock-notice-entry:hover .arrow-button {
  border: 1px solid var(--color__dark-grey);
}

section.stock-notices-and-calendar .stock-notices .stock-notice-entry .notice-content {
  flex: 1;
  font-weight: 300;
}

section.stock-notices-and-calendar .stock-notices .stock-notice-entry .notice-content .notice-date {
  margin-bottom: 1rem;
}

section.stock-notices-and-calendar .stock-notices .stock-notice-entry .notice-content .headline {
  margin: 0;
}

section.stock-notices-and-calendar .stock-notices .stock-notice-entry .errormessage {
  color: var(--color-error, #cc4b37);
  font-size: 1rem;
  margin: 0;
}

section.stock-notices-and-calendar .stock-notices .stock-notice-entry .arrow-button {
  flex-shrink: 0;
  transition: all 0.3s ease;
}

section.stock-notices-and-calendar .stock-notices .stock-notice-entry .arrow-button span {
  font-size: 0.75rem;
}

section.stock-notices-and-calendar .stock-notices .see-all-link {
  display: inline-block;
  color: var(--color__dark-grey);
  position: relative;
  transition: opacity 0.2s ease;
  text-decoration: none !important;
  font-weight: 300;
}

section.stock-notices-and-calendar .stock-notices .see-all-link:hover {
  opacity: 0.7;
}

section.stock-notices-and-calendar .stock-notices .see-all-link::after {
  content: "";
  height: 1px;
  width: 100%;
  background-color: var(--color__dark-grey);
  position: absolute;
  bottom: 0px;
  left: 0;
}

section.stock-notices-and-calendar .financial-calendar .block-title {
  margin-bottom: var(--spacing-content);
  font-weight: 300;
}

section.stock-notices-and-calendar .financial-calendar .calendar-entries {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

section.stock-notices-and-calendar .financial-calendar .calendar-entry-card {
  background-color: var(--color__white);
  border-radius: 0.375rem;
  padding: 1.5rem 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  position: relative;
}

section.stock-notices-and-calendar .financial-calendar .calendar-entry-card::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -5px;
  height: 50px;
  width: 20px;
  background-color: var(--color__warm-white);
  transform: rotate(40deg);
}

section.stock-notices-and-calendar .financial-calendar .calendar-entry-card .card-date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.375rem;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding-right: 1.5rem;
}

section.stock-notices-and-calendar .financial-calendar .calendar-entry-card .card-date .day {
  display: block;
  font-weight: 300;
  line-height: 1;
  color: var(--color__brand-copper);
}

section.stock-notices-and-calendar .financial-calendar .calendar-entry-card .card-date .month {
  display: block;
  font-size: 1rem;
  color: var(--color-grey, #666);
  margin-top: 0.25rem;
}

section.stock-notices-and-calendar .financial-calendar .calendar-entry-card .card-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  height: 100%;
}

section.stock-notices-and-calendar .financial-calendar .calendar-entry-card .card-content .entry-text {
  margin: 0;
  line-height: 1.5;
  color: var(--color-dark-grey);
}

section.stock-notices-and-calendar .financial-calendar .calendar-desc {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--color-grey, #666);
}

section.stock-notices-and-calendar .financial-calendar .calendar-desc p {
  margin: 0;
  line-height: 1.6;
}

section.stock-notices-and-calendar .financial-calendar .calendar-desc p a {
  color: var(--color__blue);
}

@media screen and (max-width: 480px) {
  section.stock-notices-and-calendar .stock-notices .block-title,
section.stock-notices-and-calendar .financial-calendar .block-title {
    margin-bottom: 1.5rem;
  }
  section.stock-notices-and-calendar .stock-notices .calendar-entry-card,
section.stock-notices-and-calendar .financial-calendar .calendar-entry-card {
    padding: 1rem 1rem 1rem 0.875rem;
  }
  section.stock-notices-and-calendar .stock-notices .calendar-entry-card .card-date,
section.stock-notices-and-calendar .financial-calendar .calendar-entry-card .card-date {
    padding-right: 1rem;
  }
  section.stock-notices-and-calendar .stock-notices .calendar-entry-card .card-content,
section.stock-notices-and-calendar .financial-calendar .calendar-entry-card .card-content {
    padding: 0 1rem;
  }
}
