cookie-consent-banner::part(toggle),
.cookieConsentToggle {
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: fixed;
  will-change: transform;
  padding: 9px;
  border: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  background: white;
  border-radius: 50%;
  bottom: 20px;
  right: 20px;
  transition: 200ms;
  opacity: 1;
  z-index: 99980;
}

cookie-consent-banner::part(toggle):hover,
.cookieConsentToggle:hover {
  color: white;
  background: black;
}

cookie-consent-banner::part(wrapper),
.cookieConsentWrapper {
  z-index: 9999999999;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: black;
  padding: 30px;
  transition: 200ms;
  max-width: 560px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  /* Second shadow value doubles as a full-viewport dimming backdrop, since a
     visitor has to make a cookie choice before the rest of the page matters. */
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5), 0 0 0 9999px rgba(0, 0, 0, 0.6);
  border-radius: 14px;
}

cookie-consent-banner::part(consent),
.cookieConsent {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

cookie-consent-banner::part(consent--title),
.cookieConsent__Title {
  font-size: 17px;
  margin: 0;
  font-weight: bold;
}

cookie-consent-banner::part(consent--description),
.cookieConsent__Description {
  margin: 10px 0 20px;
}

cookie-consent-banner::part(consent--choices),
.cookieConsent__Choices {
  border-top: 1px solid #eee;
}

cookie-consent-banner::part(consent--choices-item) {
  padding-left: 50px;
  margin-bottom: 12px;
  display: block;
}

cookie-consent-banner::part(consent--choices-item):last-child {
  margin-bottom: 0;
}

cookie-consent-banner::part(consent--choices-label) {
  font-size: 13px;
  font-weight: bold;
  color: black;
  display: block;
  position: relative;
  cursor: pointer;
}

cookie-consent-banner::part(consent--choices) label::before,
.cookieConsent__Choices label::before {
  left: -50px;
  width: 34px;
  height: 18px;
}

cookie-consent-banner::part(consent--choices) label::after,
.cookieConsent__Choices label::after {
  left: -48px;
  width: 14px;
  height: 14px;
}

cookie-consent-banner::part(operations--list-item-description),
.cookieConsentOperations__ItemLabel {
  font-size: 14px;
  color: #555;
  display: block;
}

cookie-consent-banner::part(consent--description-link),
.cookieConsent__Description a {
  color: black;
  text-decoration: underline;
}

cookie-consent-banner::part(consent--description-link):hover,
.cookieConsent__Description a:hover {
  text-decoration: none;
}

cookie-consent-banner::part(consent--right),
.cookieConsent__Right {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

cookie-consent-banner::part(operations),
.cookieConsentOperations {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  transition: 300ms;
  will-change: transform;
  z-index: 99999999999;
}

cookie-consent-banner::part(operations--list),
.cookieConsentOperations .cookieConsentOperations__List {
  transform: scale(1);
}

cookie-consent-banner::part(operations--list),
.cookieConsentOperations__List {
  background: white;
  color: black;
  max-width: 500px;
  padding: 40px;
  margin: auto;
  overflow-y: auto;
  box-sizing: border-box;
  max-height: 100vh;
  transition: 200ms transform;
  will-change: transform;
  transform: scale(0.95);
}
cookie-consent-banner::part(operations--list-item),
.cookieConsentOperations__Item {
  display: block;
  padding-left: 60px;
  margin-bottom: 20px;
}

cookie-consent-banner::part(operations--list-item--disabled),
.cookieConsentOperations__Item.disabled {
  color: #999;
}

cookie-consent-banner::part(operations--list-item--disabled)
cookie-consent-banner::part(operations--list-item-label)::after,
.cookieConsentOperations__Item.disabled label::after {
  opacity: 0.3;
}

cookie-consent-banner::part(operations--list-item-input),
.cookieConsentOperations__Item input {
  display: none;
}

cookie-consent-banner::part(operations--list-item-label),
.cookieConsentOperations__Item label {
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  display: block;
  position: relative;
}

cookie-consent-banner::part(operations--list-item-label)::before,
.cookieConsentOperations__Item label::before {
  content: "";
  display: block;
  left: -60px;
  background: #DEDEDE;
  height: 20px;
  border-radius: 20px;
  width: 40px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

cookie-consent-banner::part(operations--list-item-label)::after,
.cookieConsentOperations__Item label::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: black;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -58px;
  transition: 200ms;
}

cookie-consent-banner::part(operations--list-item-label--checked)::after,
.cookieConsentOperations__Item input:checked+label::after {
  transform: translate(20px, -50%);
}

cookie-consent-banner::part(button),
.cookieConsent__Button {
  padding: 12px 30px;
  display: inline-block;
  background: black;
  color: white;
  white-space: nowrap;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  margin-right: 15px;
  margin-top: 15px;
  cursor: pointer;
  transition: 200ms;
}

cookie-consent-banner::part(button--close),
.cookieConsent__Button--Close {
  background: black;
  color: white;
  margin: 40px 0 0 60px;
  padding: 15px 60px;
}

cookie-consent-banner::part(button):hover,
.cookieConsent__Button:hover {
  opacity: 0.8;
  background: #333;
}

/* "Accept all" is the one click we want most visitors to make, so give the
   other two buttons a lighter shade to leave it standing out as the darkest. */
cookie-consent-banner::part(button--reject),
cookie-consent-banner::part(button--accept) {
  background: #6b6b6b;
}

cookie-consent-banner::part(button--reject):hover,
cookie-consent-banner::part(button--accept):hover {
  background: #595959;
}

cookie-consent-banner::part(button--accept-all) {
  background: black;
  font-weight: 600;
}

@media only screen and (max-width: 900px) {
  cookie-consent-banner::part(wrapper),
  .cookieConsentWrapper {
    padding: 20px;
  }

  cookie-consent-banner::part(consent),
  .cookieConsent {
    display: block;
  }

  cookie-consent-banner::part(consent--choices-item) {
    padding-left: 44px;
  }

  cookie-consent-banner::part(consent--right),
  .cookieConsent__Right {
    margin-top: 20px;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  cookie-consent-banner::part(button),
  .cookieConsent__Button {
    margin: 0 0 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 14px 20px;
  }

  cookie-consent-banner::part(button--close),
  .cookieConsent__Button--Close {
    margin: 20px 0 0;
    padding: 14px 20px;
  }
}
