/* Loaded after the generated Gatsby bundle so its legacy .cbb rules cannot win. */
.cbb {
  background: #fff;
  border: 1px solid #e3e8ed;
  border-radius: 16px;
  box-shadow: 0 24px 72px rgba(21, 35, 48, 0.24);
  box-sizing: border-box;
  left: 50%;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  max-width: none;
  opacity: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 30px);
  top: 50%;
  transform: translate(-50%, calc(-50% - 18px)) !important;
  transition:
    transform var(--motion-duration-base) var(--motion-ease-out),
    opacity var(--motion-duration-fast) var(--motion-ease-out);
  width: min(560px, calc(100vw - 40px));
}

.cbb.cbb-enter-active,
.cbb.cbb-enter-done,
.cbb.cbb-exit {
  opacity: 1;
  transform: translate(-50%, -50%) !important;
}

.cbb.cbb-exit-active {
  opacity: 0;
  transform: translate(-50%, calc(-50% - 12px)) !important;
}

.cbb .headline {
  color: #243746;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
  padding: 0;
  text-align: center;
}

.cbb .content {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.cbb .content p {
  color: #4d5e6c;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.55;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
  text-align: center;
}

.cbb .content p a {
  color: #159cf3;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cbb .cbbActions,
.cbb .content > .fb.row,
.cbb .content > div:last-child {
  align-items: stretch !important;
  display: grid !important;
  flex: none !important;
  flex-direction: unset !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch !important;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0;
  padding: 0 !important;
  width: 100% !important;
}

.cbb .cbbButton,
.cbb .cbbActions > button,
.cbb .content > .fb.row > button,
.cbb .content > div:last-child > button {
  align-items: center !important;
  align-self: stretch !important;
  background: #f3f6f8 !important;
  border: 1px solid #cfd8df !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  color: #314655 !important;
  display: flex !important;
  flex: none !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  height: 42px !important;
  justify-content: center !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  max-height: 42px !important;
  max-width: none !important;
  min-height: 42px !important;
  min-width: 0 !important;
  padding: 7px 11px !important;
  text-align: center !important;
  text-transform: none !important;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease !important;
  width: 100% !important;
}

.cbb .cbbButton:hover,
.cbb .cbbActions > button:hover,
.cbb .content > .fb.row > button:hover,
.cbb .content > div:last-child > button:hover {
  background: #e8eef2 !important;
  border-color: #b9c7d1 !important;
}

.cbb .cbbButton--accept,
.cbb #give_consent_button_click,
.cbb .cbbActions > button:last-child,
.cbb .content > .fb.row > button:last-child,
.cbb .content > div:last-child > button:last-child {
  background: #159cf3 !important;
  border-color: #168fe8 !important;
  color: #fff !important;
}

.cbb .cbbButton--accept:hover,
.cbb #give_consent_button_click:hover,
.cbb .cbbActions > button:last-child:hover,
.cbb .content > .fb.row > button:last-child:hover,
.cbb .content > div:last-child > button:last-child:hover {
  background: #0cb658 !important;
  border-color: #0cb658 !important;
  box-shadow: 0 10px 24px rgba(12, 182, 88, 0.25) !important;
}

.cbbudl {
  backdrop-filter: blur(3px);
  background: rgba(20, 29, 38, 0.48);
  inset: 0;
}

@media (max-width: 520px) {
  .cbb {
    border-radius: 14px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 18px;
    width: calc(100vw - 24px);
  }

  .cbb .content p {
    font-size: clamp(13px, 4vw, 15px);
    line-height: 1.48;
    margin-bottom: 18px;
  }

  .cbb .cbbActions,
  .cbb .content > .fb.row,
  .cbb .content > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .cbb .cbbButton,
  .cbb .cbbActions > button,
  .cbb .content > .fb.row > button,
  .cbb .content > div:last-child > button {
    flex: 0 0 38px !important;
    font-size: 11px !important;
    height: 38px !important;
    max-height: 38px !important;
    min-height: 38px !important;
    min-width: 100% !important;
    padding: 6px 10px !important;
  }
}

@media (max-width: 359px) {
  .cbb .headline,
  .cbb.cbb-enter-active .headline,
  .cbb.cbb-enter-done .headline {
    font-size: 18px !important;
    letter-spacing: -0.02em;
    line-height: 1.18;
  }
}

@media (max-height: 520px) {
  .cbb {
    padding: 14px;
  }

  .cbb .headline {
    margin-bottom: 8px;
  }

  .cbb .content p {
    font-size: 12px;
    line-height: 1.42;
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cbb {
    transition: none;
  }
}
