/* ===== Welcome Popup styles ===== */

.wlcpop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  font-family: 'Montserrat', sans-serif;
}

.wlcpop-overlay.wlcpop-is-visible {
  opacity: 1;
  visibility: visible;
}

.wlcpop-box {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  padding: 90px 32px 82px;
  text-align: center;
  box-sizing: border-box;
  transform: translateY(20px);
  transition: transform 0.35s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.wlcpop-overlay.wlcpop-is-visible .wlcpop-box {
  transform: translateY(0);
}

.wlcpop-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #111111;
}

.wlcpop-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px;
  color: #444444;
}

.wlcpop-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}

/* ===== Buttons =====
   Every size-related property is locked with !important and the selector is
   made extra specific, so site/theme hover styles can't grow or move them. */

.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-primary,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-close,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-primary:hover,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-close:hover,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-primary:focus,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-close:focus,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-primary:active,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-close:active {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-align: center !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0.3rem !important;
  padding: 14px 26px !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  height: auto !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  rotate: none !important;
  zoom: 1 !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  flex: 1 1 0 !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.25s ease !important;
}

/* Colours: red normally, black on hover */
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-primary,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-close {
  background: #ED1400 !important;
}

.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-primary:hover,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-close:hover,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-primary:focus-visible,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-close:focus-visible,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-primary:active,
.wlcpop-overlay .wlcpop-buttons .wlcpop-btn-close:active {
  background: #000000 !important;
}

/* Mobile: stack the buttons */
@media (max-width: 480px) {
  .wlcpop-box {
    padding: 82px 20px 74px;
  }

  .wlcpop-title {
    font-size: 24px;
  }

  .wlcpop-buttons {
    flex-direction: column;
  }

  .wlcpop-overlay .wlcpop-buttons .wlcpop-btn-primary,
  .wlcpop-overlay .wlcpop-buttons .wlcpop-btn-close,
  .wlcpop-overlay .wlcpop-buttons .wlcpop-btn-primary:hover,
  .wlcpop-overlay .wlcpop-buttons .wlcpop-btn-close:hover,
  .wlcpop-overlay .wlcpop-buttons .wlcpop-btn-primary:focus,
  .wlcpop-overlay .wlcpop-buttons .wlcpop-btn-close:focus,
  .wlcpop-overlay .wlcpop-buttons .wlcpop-btn-primary:active,
  .wlcpop-overlay .wlcpop-buttons .wlcpop-btn-close:active {
    flex: none !important;
    width: 100% !important;
  }
}
