/** IMPORTANT:
  * Don't use this file (or this method in general) to add new styles to the application!
  * If you need to add global styles, do it using styled-components.
  *
  * The reason this was added is that due to client requirements,
  * the cookie disclaimer message has to be visible with javascript disabled.
  * This is because they have an automatic verification tool that checks for the disclaimers,
  * but does so without running any JS code.
  **/

:root {
  --xsmFZ-primary-color: #464646;
  --xsmFZ-secondary-color: #dddddd;
}

#cookie-disclaimer-qtcjz {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  position: fixed;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;

  color: var(--xsmFZ-secondary-color);
  background: var(--xsmFZ-primary-color);
  padding: 8px 24px;
  font-size: 16px;

  animation-duration: 3s;
  animation-name: cookie-disclaimer-fadein-jjrb3;
}

#cookie-disclaimer-qtcjz a {
  color: var(--xsmFZ-secondary-color);
  font-weight: 600;
  text-decoration: none;
}

#cookie-disclaimer-qtcjz button {
  background: var(--xsmFZ-secondary-color);
  color: var(--xsmFZ-primary-color);
  font-weight: 600;
  border-radius: 16px;
  min-width: 64px;
  padding: 8px 16px;
  margin: 0 24px;
  text-decoration: none;
}

#cookie-disclaimer-links-qtcjz {
  z-index: 1;
  position: fixed;
  font-size: 0.6em;
  bottom: 4px;
  right: 16px;
  padding: 0 0.5em;
  border-radius: 4px;
  background-color: rgba(246, 249, 255, 0.5);
}

#cookie-disclaimer-links-qtcjz a {
  color: #6c6c6c;
}

#cookie-disclaimer-links-qtcjz a:not(:last-child) {
  margin-right: 0.5em;
}

/**
  * This animation allows the React code some time to check if the cookie disclaimer should be displayed.
  **/
@keyframes cookie-disclaimer-fadein-jjrb3 {
  from {
    opacity: 0;
  }

  75% {
    opacity: 0;
  }

  to {
    opacity: 100%;
  }
}
