@font-face {
  font-family: "LT Trim Bold";
  src: url("https://assets.lt.fi/fonts/LTTrimWeb-Bold.woff") format("woff");
}

@font-face {
  font-family: "Open Sans";
  src: url("https://assets.lt.fi/fonts/OpenSans-Regular.ttf");
}

.ccb-link {
  color: #64A60A;
}

.ccb-button {
  letter-spacing: 1.1px;
  font-family: "LT Trim Bold";
  background-color: white;
  border: 1px #64A60A solid;
  padding: 10px;
  font-size: 14px;
  color: #64A60A;
  transition: background-color 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
}

.ccb-button.save-button, .ccb-button.close-button {
  width: 150px;
  margin: 0px 16px 0px 0px;
}

.ccb-button:hover {
  background-color: #66a11c;
  padding: 10px;
  font-size: 14px;
  color: white;
}

.ccb-button.ccb-button--inverted {
  background-color: #66a11c;
  padding: 10px;
  font-size: 14px;
  color: white;
  transition: background-color 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ccb-button.ccb-button--inverted:hover {
  background-color: #78be20;
  border: 1px #78be20 solid;
  padding: 10px;
  font-size: 14px;
  color: white;
}

.cookie-consent-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  font-family: "Open Sans";
  transform: translate(-50%, -50%);
  background-color: white;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  z-index: 99999999;
  width: 780px;
  max-height: 90%;
  overflow: auto;
}

.cookie-consent-modal.visible {
  display: block;
}

.cookie-consent-modal__title {
  font-family: "LT Trim Bold";
  margin: 32px 0px 0px 32px;
  color: #47474D;
}

.cookie-consent-modal__button {
  margin: 0px 16px 0px 0px;
}

.cookie-consent-modal__read-more {
  margin: 24px 0px 0px 32px;
  color: #47474D;
}

.cookie-consent-setting {
  margin: 24px 0px 0px 32px;
}

.cookie-consent-setting__title {
  font-family: "Open Sans";
  color: #47474D;
  font-size: 16px;
  margin-bottom: 8px;
}

.cookie-consent-setting__description {
  font-family: "Open Sans";
  color: #47474D;
  margin: 0px 32px 0px 46px;
  font-size: 14px;

}

.cookie-consent-modal__button-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 32px 16px 32px 32px;
}

.cookie-consent-modal__text {
  font-family: "Open Sans";
  color: #303030;
  font-size: 16px;
  margin: 0px 32px 0px 32px;
}

.modal-dim {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.50);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/** Custom checbox */
.checkbox.checkbox--partially.checkmark:after {
  left: 7px;
  top: 8px;
  width: 12px;
  height: 3px;
  border: solid #f8fbfb;
  border-width: 0 0 3px 0;
  transform: rotate(0deg);
}

/** Customize the label (the container) */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 46px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 17px;
  color: white;
}

.checkbox-container:hover {
  color: white
}

/* Hide the browser's default checkbox */
.checkbox-container input {
  position: absolute;
  opacity: 0;
}

/* Create a custom checkbox */
.checkmark {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #F7F8F9;
  border: #E9E9E9 solid 1px;
  border-radius: 3px;
}

/* On mouse-over change background color */
.checkbox-container:hover input ~ .checkmark {
  border-color: #b6b8c1;
}

/* When the checkbox is checke... */
.checkbox-container input:checked ~ .checkmark {
  background-color: #64A60A;
  border: none;
}

.checkbox-container input:checked ~ span {
  color: #64A60A;
}

.checkbox-container:hover input:checked ~ .checkmark {
  background-color: #64A60A;
}

.checkbox-container input:checked ~ .checkmark.disabled {
  background-color: #D8D8D8;
  cursor: not-allowed;
}

.checkbox-container:hover input:checked ~ span {
  color: #64A60A;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

@media (max-width: 1024px) {
  .cookie-consent-modal {
    left: 50%;
    top: 100%;
    transform: translate(-50%, -100%);
    width: 100%;
    max-height: 100%;
    overflow: auto;
  }

  .cookie-consent-modal__button-container {
    justify-content: space-evenly;
  }

  .cookie-consent-modal__button {
    margin: 0px;
  }
}

#CybotCookiebotDialog {
  /* Force CookieBot banner to be hidden always */
  display: none !important;
}
