/* Body */
body.valeo-popup-active {
  overflow: hidden;
}
body.valeo-popup-active::before {
  content: '';
  background: rgba(255, 255, 255, 0.9);
  z-index: 9999999999999;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

/* Wrapper */
.valeo-popup {
  position: fixed;
  inset: 0;
  z-index: 99999999999999;
  display: block;
}

/* Backdrop */
.valeo-popup__backdrop {
  position: absolute;
  inset: 0;
}

/* Modal */
.valeo-popup__modal {
  position: relative;
  max-width: 680px;
  width: calc(100% - 32px);
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  .valeo-popup__modal {
    margin-top: 8vh;
    padding: 18px;
  }
}

.valeo-popup__close {
  border: none;
  background-color: transparent;
  font-size: 22px;
  position: absolute;
  right: 5px;
  top: 5px;
}

#valeo-popup-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
}

.valeo-popup__text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
}

/* Buttons */
.valeo-popup__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.valeo-popup__btn {
  appearance: none;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.valeo-popup__btn--accept {
  background: #111;
  color: #fff;
  border-color: #111;
}

.valeo-popup__btn:hover {
  opacity: 0.92;
}

.valeo-popup__btn:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.35);
  outline-offset: 2px;
}

/* Hide helper */
.valeo-popup[aria-hidden="true"] {
  display: none !important;
}
