.cookie-consent__icon {
  all: unset;
  anchor-name: --cookie;
  background: var(--_cookie-main-color, var(--teal));
  border-radius: 50%;
  bottom: 20px;
  cursor: pointer;
  display: grid;
  height: 50px;
  left: 20px;
  overflow: hidden;
  place-content: center;
  position: fixed;
  width: 50px;
  z-index: 2147483647;
}

.cookie-consent__icon[aria-hidden='true'] {
  display: none;
}

.cookie-consent__icon:has(+ .cookie-consent__dialog[aria-hidden='true']) {
  opacity: 0.4;
}

.cookie-consent__svg {
  fill: var(--_cookie-aux-color, hsl(0 0% 100% / 100%));
  height: 30px;
}

.cookie-consent__dialog {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 1rem;
  bottom: anchor(top);
  left: anchor(right);
  max-width: 350px;
  position: fixed;
  position-anchor: --cookie;
  z-index: 99999999999999;
}

.cookie-consent__dialog[aria-hidden='true'] {
  display: none;
}

.cookie-consent__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1rem;
}

.cookie-consent__title {
  color: #404040;
  display: block;
  font-size: 1.125rem;
  font-weight: bold;
  line-height: 1;
  margin-block: 0;
}

.cookie-consent__text {
  color: #404040;
  font-size: 0.875rem;
}

.cookie-consent__text a {
  font-weight: bold;
  text-decoration: none;
}

.cookie-consent__actions {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.cookie-consent__button {
  border: 0;
  font-size: 0.875rem;
}

.cookie-consent__button--close {
  background: transparent;
  color: #404040;
  font-weight: 500;
}

.cookie-consent__button--allow {
  background: var(--_cookie-main-color, var(--teal));
  border-radius: 0.25rem;
  color: var(--_cookie-aux-color, hsl(0 0% 100% / 100%));
  font-weight: bold;
  padding: 0.5rem 1.5rem;
}

@media (width <= 630px) {
  .cookie-consent__dialog {
    bottom: calc(anchor(top) + 1rem);
    left: 0;
    margin-left: auto;
    margin-right: auto;
    right: 0;
    width: calc(-40px + 100vw);
  }
}
