:root {
  --undpds-badge-color-yellow-light: #FFE17E;
  --undpds-badge-color-yellow-dark: #FBC412;
}
.core-donors {
  position: fixed;
  inset: 0;
  z-index: 9998;
  clip-path: circle(0 at right 70px bottom 70px);
  transition: clip-path .8s cubic-bezier(0.42, 0, 0.58, 1);
  background-color: var(--undpds-badge-color-yellow-dark);
  justify-content: center;
  align-items: center;
  display: flex;
}

.core-donors.active {
  clip-path: circle(150% at right 70px bottom 70px);
}

body.core-donors-active {
  overflow: hidden;
}

.core-donors .content {
  width: 23.5rem;
  text-align: center;
  padding-inline: 1rem;
  max-height: 100svh;
  overflow-y: auto;
}

.core-donors h2 {
  max-width: 30rem;
  margin-inline: auto;
  font-family: var(--undpds-font-family-sohnebreit);
  font-weight: 800;
  font-size: 1.6875rem;
  line-height: 1.08;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-block: 2rem;
}
.core-donors p {
  font-size: 0.875rem;
  line-height: 1.375;
  margin-block-end: 2rem;
}

.core-donors .cta__link {
  justify-content: center;
}

@media (min-width: 64em) {
  .core-donors .content {
    width: 36rem;
  }
  .core-donors h2 {
    font-size: 2.76838rem;
    letter-spacing: 2.7px;
  }
  [lang="fr"] .core-donors .content {
    width: 40rem;
  }
  [lang="fr"] .core-donors h2 {
    max-width: 40rem;
  }
  [lang="es"] .core-donors .content {
    width: 44rem;
  }
  [lang="es"] .core-donors h2 {
    max-width: 44rem;
  }
}

.core-donors .content img {
  border-radius: 40px;
}

.core-donors-close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  width: 60px;
  height: 60px;
  background: none;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
@media (min-height: 48em) {
  .core-donors-close {
    inset-block-start: 30px;
    inset-inline-end: 30px;
    width: 80px;
    height: 80px;
  }
}

.core-donors-close img {
  width: 45px;
  height: 45px;
}

.core-donors-badge {
  opacity: 0;
  max-height: 0px;
  width: 100px;
  height: 100px;
  position: fixed;
  top: calc(100svh - 124px);
  left: calc(100svw - 124px); /* this using left and not inset-inline-start on purpose to be cosistent with the clip-path */
  overflow: hidden;
  border-radius: 50%;
  padding: 0;
  background-color: var(--undpds-badge-color-yellow-light);
  background-image: url(heart.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 40%;
  transition: opacity 0.5s linear, max-height 0s linear 0.5s;
  z-index: 9999;
}

.core-donors-badge:hover {
  background-size: 45%;
  cursor: pointer;
  background-color: var(--undpds-badge-color-yellow-dark);
  width: 106px;
  height: 106px;
  top: calc(100svh - 130px);
  left: calc(100svw - 130px);
  padding: 3px;
}

.core-donors-badge img {
  position: absolute;
  top: 50%;
  left: 50%;
  animation: rotate 12s linear infinite;
}
.core-donors-badge:hover img {
  animation-play-state: paused;
}

.core-donors-badge.active {
  opacity: 1;
  display: block;
  max-height: 100px;
  transition: all 0.15s linear, opacity 0.5s linear 0.15s;
}
.core-donors-badge.active:hover {
  max-height: 106px;
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

.core-donors-marker {
  position: absolute;
  z-index: -9999;
  visibility: hidden;
  height: 0;
  inset-block-start: 10px;
}