.rir-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, rgba(0, 188, 190, 0.9) 11.09%, rgba(0, 87, 88, 0.9) 89.26%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.rir-popup-overlay.rir-popup-show {
  opacity: 1;
}
.rir-popup-container {
  background: var(--wp--preset--color--white);
  border-radius: 0 30px 30px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  width: 830px;
  max-width: 90vw;
  position: relative;
  transition: transform 0.3s ease;
  overflow: hidden;
}
.rir-popup-show .rir-popup-container {
  transform: scale(1);
}
.rir-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--wp--preset--color--dark);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wp--preset--color--white);
}
.rir-popup-close:focus, .rir-popup-close:focus-visible {
  outline: 3px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}
.rir-popup-close:hover, .rir-popup-close:active {
  background: var(--wp--preset--color--primary);
  transform: scale(1.05);
  color: var(--wp--preset--color--white);
}
.rir-popup-content {
  overflow-y: auto;
  max-width: 90vw;
  max-height: 90vh;
}
.rir-popup-body {
  overflow: hidden;
  padding: 2rem 3.75rem;
}
@media screen and (min-width: 1600px) {
  .rir-popup-body {
    padding: 3.75rem 5.625rem;
  }
}
.rir-popup-body::before, .rir-popup-body::after {
  content: "";
  display: block;
  width: 40px;
  height: calc(100% - 100px);
  position: absolute;
}
@media screen and (min-width: 1024px) {
  .rir-popup-body::before, .rir-popup-body::after {
    width: 60px;
  }
}
.rir-popup-body::before {
  top: 0;
  left: 0;
  border-bottom-right-radius: 30px;
  background: linear-gradient(180deg, rgba(209, 237, 237, 0) 55.45%, #D1EDED 100%);
}
.rir-popup-body::after {
  bottom: 0;
  right: 0;
  border-top-left-radius: 30px;
  background: linear-gradient(180deg, #D1EDED 0%, rgba(209, 237, 237, 0) 44.55%);
}
.rir-popup-overlay[aria-hidden=true] {
  visibility: hidden;
}
.rir-popup-overlay[aria-hidden=false] {
  visibility: visible;
}
.rir-popup-overlay *:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/*
// Responsive
@media (max-width: 768px) {
  .rir-popup-container {
    width: 95%;
    max-height: 95%;
  }

  .rir-popup-content {
    padding: 1.5rem;
  }

  .rir-popup-title {
    font-size: var(--wp--preset--font-size--large);
  }

  .rir-popup-close {
    width: 35px;
    height: 35px;
    font-size: 20px;
    top: 0.75rem;
    right: 0.75rem;
  }

  // Colonnes en mobile
  .rir-popup-body .wp-block-columns {
    flex-direction: column;
  }
}
*/
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}