/* ============================================================
   BWA Popup – Frontend styles
   Based on themes/bwa/assets/css/globals/modals.css
   and themes/bwa/assets/css/footer/footer.css
   ============================================================ */

/* ---- Base modal ------------------------------------------ */
#popupwebsite {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

#popupwebsite.in {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  background: rgba(0, 0, 0, 0.5);
}

/* ---- Dialog container ------------------------------------ */
#popupwebsite .modal-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

#popupwebsite .modal-dialog {
  min-width: 450px;
}

/* ---- Tab panels ------------------------------------------ */
#popupwebsite .modal-dialog-centered {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 1;
  transition: 0.3s ease;
}

#popupwebsite .modal-dialog-centered.active {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  position: absolute;
  transition: 0.3s ease;
}

/* ---- Content --------------------------------------------- */
#popupwebsite .modal-content {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border-radius: .3rem;
  outline: 0;
  overflow: hidden;
}

#popupwebsite .modal-body {
  padding: 0;
}

#popupwebsite .modal-footer {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #e5e5e5;
}

/* ---- Image ----------------------------------------------- */
#popupwebsite .modal-media img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Close button ---------------------------------------- */
.btn-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  cursor: pointer;
}

/* ---- Action button --------------------------------------- */
.btn-popup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 0 auto;
  transition: 0.3s ease;
  background: #ffffff73;
  text-decoration: none;
}

.btn-popup span {
  color: var(--color-primary, #27445D);
  font-size: 16px;
  font-weight: 400;
  line-height: 15px;
  text-transform: initial;
}

.btn-popup:hover span {
  color: #27445D;
}

/* ---- Text content ---------------------------------------- */
.message_popup {
  margin: 1rem 0;
  color: #27445D;
  text-align: center;
}

.popup-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 32px;
  margin: 0 0 .5rem;
}

.popup-subtitle {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 .5rem;
}

.popup-description {
  font-size: 14px;
  line-height: 1.6;
}

.popup-btn-wrapper {
  margin-top: 1rem;
  text-align: center;
}

/* ---- Newsletter ------------------------------------------ */
#popupwebsite .message_newsletter {
  color: var(--color-primary, #27445D);
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  margin-top: 1rem;
}

#popupwebsite .newsletter .section__title-content__inner {
  margin: 15px auto 0;
}

#popupwebsite .newsletter .block_newsletter form .input__wrapper {
  background: #EEECED;
  width: unset;
}

#popupwebsite .newsletter .block_newsletter form input[type=email] {
  background: transparent;
}

/* ---- Responsive ------------------------------------------ */
@media screen and (max-width: 569px) {
  #popupwebsite .modal-grid {
    justify-content: unset !important;
  }

  #popupwebsite .modal-dialog {
    min-width: 95vw;
  }
}
