body.overflow-hidden {
  overflow: hidden;
}

#cookie-banner {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#cookie-banner.privacy-page {
  background: none;
  pointer-events: none;
}

#cookie-banner.privacy-page .cookie-banner-container {
  pointer-events: initial;
}

.cookie-banner-container {
  font-size: 0.875rem;
  background: white;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 3px solid #7fa9ae;
}

.cookie-banner-container .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  min-height: 4.5rem;
}

.cookie-banner-text {
  color: #007298;
  flex: 0 1 auto;
  margin: 0;
}

.cookie-banner-buttons {
  margin: 1em 0 0 0;
  padding: 0;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  font-family: inherit;
  list-style-type: none;
}

.cookie-banner-buttons li {
  margin-bottom: 1em;
}

@media only screen and (min-width: 600px) {
  .cookie-banner-buttons {
    flex-direction: row;
  }

  .cookie-banner-buttons li {
    margin-bottom: 0;
  }
}

@media only screen and (min-width: 800px) {
  .cookie-banner-container .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    min-height: 4.5rem;
  }

  .cookie-banner-buttons {
    margin-top: 0;
    margin-left: 2em;
  }
}

#cookie-modal-wrapper {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0,0,0,.45);
  z-index: 10000;
}

.cookie-modal {
  background: white;
  border-radius: 2px;
  margin: 0 auto;
  width: 90%;
  top: 50%;
  left: 5%;
  -webkit-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  overflow-y: initial;
  height: auto;
  max-height: 80vh;
  position: fixed;
  display: flex;
  flex-direction: column;
}

@media only screen and (min-width: 800px) {
  .cookie-modal {
    max-width: 70%;
    left: 15%;
  }
}

@media only screen and (min-width: 1000px) {
  .cookie-modal {
    max-width: 60%;
    left: 20%;
  }
}

.cookie-modal-title {
  padding: 1rem 2rem 0;
}

.cookie-modal-content {
  overflow-y: auto;
  padding: 0 2rem 1rem;
}

.cookie-modal h2 {
  font-size: 1rem;
}

.cookie-modal h3 button {
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.25;
}

.cookie-modal .cookie-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d0d3d4;
}

.cookie-modal .cookie-section-title button {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.cookie-modal .cookie-section-title h3 button span::after {
  content: '\25BC';
  margin-left: 0.5em;
}

.cookie-modal .cookie-section-title.open h3 button span::after {
  content: '\25B2';
}

.cookie-modal .cookie-section-title .checkbox-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-section-content {
  display: none;
  height: auto;
  overflow:hidden;
  padding: 0 0 1.5em 0;
}

.cookie-modal p {
  font-size: 0.875rem;
}

.cookie-modal input[type="checkbox"] {
  position: relative;
  left: 2rem;
}

.cookie-modal input[type="checkbox"] + label {
  cursor: pointer;
  font-size: 0;
  width: 3.1rem;
  height: 1.6rem;
  background: #656565;
  color: white;
  display: block;
  border-radius: 1rem;
  position: relative;
}

.cookie-modal input[type="checkbox"]:focus + label {
  box-shadow: 0px 0px 5px 3px #7fa9ae;
}

.cookie-modal input[type="checkbox"] + label span::after {
  content: '';
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  background: #fff;
  border-radius: 0.6rem;
  transition: 0.3s;
}

.cookie-modal input[type="checkbox"]:checked + label {
  background: #115e67;
}

.cookie-modal input[type="checkbox"]:disabled + label {
  background: #5E5E5E;
  color: white;
}

.cookie-modal input[type="checkbox"]:checked + label span::after {
  left: calc(100% - 0.2rem);
  transform: translateX(-100%);
}

.cookie-modal input[type="checkbox"] + label span::before {
  content: '\2717';
  position: absolute;
  color: white;
  font-size: 1rem;
  top: 0;
  right: 0;
  width: 1.6rem;
  height: 1.6rem;
  line-height: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal input[type="checkbox"]:checked + label span::before {
  content: '\2713';
  left: 0;
  right: initial;
}

.cookie-modal .cookie-consent-buttons {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  margin: 2rem 0 0 0;
  padding: 0;
  list-style-type: none;
}

.cookie-modal .cookie-consent-buttons li {
  margin: 0 0 0.5em;
}

.cookie-modal .cookie-consent-buttons button {
  font-family: inherit;
  font-weight: 500;
  flex: 0 0 auto;
  padding: .375rem .94rem;
}

.cookie-modal .cookie-btn {
  margin-top: 1.5em;
}

.cookie-btn {
  margin-left: 0.75em;
  padding: .5rem 1.5rem;
}

@media only screen and (min-width: 600px) {
  .cookie-modal .cookie-consent-buttons {
    flex-direction: row;
  }

  .cookie-modal .cookie-consent-buttons .left-buttons {
    flex-direction: row;
    justify-content: flex-start;
  }

  .cookie-modal .cookie-consent-buttons .right-buttons {
    flex-direction: row;
    justify-content: flex-end;
  }

  .cookie-modal .cookie-consent-buttons li {
    margin: 0 0.5em 0.5em;
  }

  .cookie-modal .cookie-consent-buttons li:first-child {
    margin-left: 0;
  }

  .cookie-modal .cookie-consent-buttons li:last-child {
    margin-right: 0;
  }

  .cookie-modal .cookie-btn {
    margin-top: 0;
  }

  .cookie-btn {
    margin-left: 0.75em;
    padding: .375rem .94rem;
  }
}

.cookie-btn,
.cookie-modal .cookie-consent-buttons button {
  background: #115e67;
  border: 2px solid #115e67;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-transition: color .15s ease-in-out,background-color .15s ease-in-out;
  -o-transition: color .15s ease-in-out,background-color .15s ease-in-out;
  transition: color .15s ease-in-out,background-color .15s ease-in-out;
}

.cookie-modal .cookie-consent-buttons button.reset-cookies {
  background: #d04725;
  border-color: #d04725;
}

.cookie-btn:hover,
.cookie-modal .cookie-consent-buttons button:hover {
  background: white;
  color: #115e67;
}

.cookie-modal .cookie-consent-buttons button.reset-cookies:hover {
  color: #d04725;
}

.cookie-modal table {
  width: 100%;
  font-size: 0.75rem;
  border-collapse: collapse;
}

.cookie-modal th {
  background: #d8d8d8;
  color: #5E5E5E;
  text-align: left;
}

.cookie-modal th,
.cookie-modal td {
  padding: .5rem;
}

.cookie-modal table tr:nth-child(odd) {
  background-color: #f8f8f8;
}

.cookie-modal table tr:nth-child(even) {
  background-color: #fff;
}

.cookie-modal table tr:not(:last-child) {
  border-bottom: 1px solid #e8e8e8;
}

.cookie-consent-blocked-iframe + iframe {
  background: rgba(0, 0, 0, 0.3);
}

.cookie-consent-blocked-iframe {
  position: absolute;
  top: 0;
  text-transform: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  margin: 1em !important;
  padding: 1em;
  text-align: center;
  z-index: 10;
}

.cookie-consent-blocked-iframe button {
  background: #115e67;
  border: 2px solid #115e67;
  color: #fff;
  margin-top: 1em;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  padding: .375rem .94rem;
  cursor: pointer;
}
