.modal {
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal__container {
  position: relative; /* <-- THIS is important for absolute positioning */
  background: white;
  padding: 2rem;
  border-radius: 4px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal__content {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.modal__footer {
  margin-top: 1.5rem;
  text-align: right;
}

.modal__btn {
  padding: 0.5rem 1rem;
  background: #e0e0e0;
  border: none;
  border-radius: 4px;
  margin-left: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  background-color: #bd120a;
}

.modal__btn-primary {
  background: #007bff;
  color: white;
  text-decoration: none;
}
.weconnect-18modal .wc-leaving-site-modal__title {
    width:60%
}
.weconnect-18modal main#modal-1-content {
    font-family: 'Montserrat Light';
}

@media (max-width: 768px) {
    .weconnect-18modal .wc-leaving-site-modal__title {
        width:80%
    }
    .weconnect-18modal .wc-leaving-site-modal__button--confirm{
     height: 40px;
     width: 55%;
    }
}