/* ==========================================================================
   OPPAK Welcome Popup — styled to match the OPPAK theme
   (colors/radius fall back to the theme's :root vars when present,
   otherwise use the OPPAK brand hex values directly).
   ========================================================================== */

.oppak-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(27, 58, 92, 0.55); /* var(--oppak-navy) tint */
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  font-family: var(--oppak-font, 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif);
}

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

.oppak-popup {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--oppak-white, #fff);
  border-radius: var(--oppak-radius, 10px);
  border-top: 3px solid var(--oppak-gold, #E2D36B);
  box-shadow: 0 20px 48px rgba(27, 58, 92, 0.24);
  padding: 32px 28px 28px;
  transform: translateY(12px) scale(.98);
  transition: transform .25s ease;
}

.oppak-popup-overlay.is-visible .oppak-popup {
  transform: translateY(0) scale(1);
}

.oppak-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--oppak-midgray, #8A8F98);
  cursor: pointer;
  padding: 4px;
}

.oppak-popup__close:hover {
  color: var(--oppak-navy, #1B3A5C);
}

.oppak-popup__title {
  margin: 0 0 12px;
  padding-right: 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--oppak-navy, #1B3A5C);
}

.oppak-popup__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--oppak-charcoal, #2E2E2E);
}

.oppak-popup__body p:last-child {
  margin-bottom: 0;
}

.oppak-popup__body a {
  color: var(--oppak-blue, #6C8CBF);
}

.oppak-popup__actions {
  margin-top: 22px;
  text-align: right;
}

.oppak-popup__btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--oppak-gold, #E2D36B);
  color: var(--oppak-navy, #1B3A5C);
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.oppak-popup__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

@media (max-width: 480px) {
  .oppak-popup {
    padding: 26px 20px 22px;
  }
}
