.wpa-card {
  margin: 20px 10%;
  color: #fff;
  font-family: "Libre Franklin", Sans-serif;
}
.wpa-pass {
  padding-left: 20px;
  padding-right: 20px;
}
.wpa-card-reg {
  height: 100%;
  margin: 5px auto;
  color: #fff;
  font-family: "Libre Franklin", Sans-serif;
}
.wpa-title {
  margin-top: 30px;
  font-size: 32px;
  margin-bottom: 30px;
  color: #f2f2f2;
  font-weight: 600;
  text-align: left;
  font-family: "Libre Franklin", Sans-serif;
  line-height: 100%;
  letter-spacing: 0.15px;
}
.wpa-sub {
  font-size: 18px;
  color: #f2f2f2;
  font-family: "Libre Franklin", Sans-serif;
  font-weight: normal;
  line-height: 100%;
  letter-spacing: 0.15px;
}

.wpa-form p {
  font-size: 15px;
  color: #f2f2f2;
  align-items: left;
  justify-content: left;
}

.wpa-form label,
.wpa-grid label {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: "Libre Franklin", Sans-serif;
}
.wpa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  font-size: 16px;
  font-family: "Libre Franklin", Sans-serif;
  line-height: 24px;
  font-weight: 400;
}
.wpa-input-field {
  border: 1px solid #e9e9e9 !important;
  min-height: 38px !important;
  max-height: 38px !important;
  font-size: 15px !important;
  line-height: 20px !important;
  padding: 0 14px !important;
  color: #383838 !important;
  width: 100% !important;
  margin-top: 10px !important;
  margin-bottom: 20px !important;
  background: #e8f0fe !important;
}

.wpa-input-field-reg {
  margin-bottom: 10px;
  margin-top: 10px;
  outline: 0;
  border: 1px solid #e9e9e9;
  min-height: 38px;
  max-height: 38px;
  font-size: 15px;
  line-height: 20px;
  padding: 0 14px;
  color: #383838;
  height: 45px;
  background: #e8f0fe !important;
}

.wpa-input-field-pass {
  margin-bottom: 10px;
  outline: 0;
  border: 1px solid #e9e9e9;
  min-height: 38px;
  max-height: 38px;
  font-size: 15px;
  line-height: 20px;
  padding: 0 14px;
  color: #383838;
  height: 45px;
  background: #e8f0fe !important;
  width: 100%;
}

.wpa-select {
  width: 100%;
}
.wpa-card input[type="password"] {
  letter-spacing: 0.08em;
}
.wpa-btn {
  display: inline-block;
  border: 0;
  /* border-radius: 10px; */
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.wpa-btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.wpa-btn-primary {
  background: #fd6a44;
  color: #fff;
  text-align: center;
  margin-top: 36px;
  padding: 10px 24px;
  font-size: 15px;
  line-height: 25px;
  font-family: "Libre Franklin", Sans-serif;
}
.wpa-btn-primary:hover {
  background: #f4945c;
}
.wpa-link {
  margin-left: 15px;
  padding: 16px 32px !important;
  line-height: 100%;
  fill: #fd6a44;
  color: #fff78d !important;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #fff78d;
  border-radius: 0 0 0 0;
  border-bottom: 1px solid #fff78d !important;
}
.wpa-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  font-size: 15px;
}
.wpa-footer {
  font-size: 15px;
  color: #f8fafc;
  display: flex;
  width: 100%;
  padding-top: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

.wpa-alert {
  margin-bottom: 15px;
  padding: 10px 12px;
}
.wpa-alert-error {
  background: #ff000054;
  color: #fefefe;
}
@media (max-width: 640px) {
  .wpa-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.wpa-red {
  color: #fff;
}

.wpa-loader {
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.wpa-a {
  color: #ffffff;
  text-decoration: underline;
  font-size: 15px;
}

.wpa-a-a {
  color: #ff693b;
  text-decoration: underline;
  font-size: 15px;
}

.wpa-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.wpa-eye-btn {
  position: absolute;
  right: 0px;
  top: 0;
  height: 90%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wpa-eye-btn:hover {
  color: #000;
}

.wpa-eye-btn img {
  width: 24px;
  height: 24px;
}

.wpa-btn-pass {
  margin-bottom: 10px;
}

/* Hide arrows in number input (Chrome, Safari, Edge, Opera) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide arrows in Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* --- Modal Base --- */
.wpa-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* --- Overlay --- */
.wpa-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* --- Modal Box --- */
.wpa-modal-content {
  position: relative;
  background: #033331;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  padding: 30px;
  z-index: 2;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.3s ease;
}

/* --- Close Button --- */
.wpa-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
}

/* --- Simple Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.password-hints {
  background: #f2f2f2;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}
.password-hints p {
  margin: 4px 0;
  display: flex;
  align-items: center;
}
.password-hints .hint-icon {
  margin-right: 8px;
  font-weight: bold;
}
.password-hints .valid {
  color: #2ecc71; /* green */
}
.password-hints .invalid {
  color: #e74c3c; /* red */
}

.password-popup {
  position: absolute;
  background: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  width: 260px;
  font-size: 14px;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  display: none;
  z-index: 100;
}
.password-popup::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 20px;
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent #f2f2f2 transparent;
}
.password-popup p {
  margin: 4px 0;
  display: flex;
  align-items: center;
}
.hint-icon {
  margin-right: 8px;
  font-weight: bold;
}
.hint-icon.valid {
  color: #2ecc71; /* green */
}
.hint-icon.invalid {
  color: #e74c3c; /* red */
}

.password-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.password-popup {
  position: absolute;
  top: 100%;
  left: 0;
  background: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  font-size: 14px;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 6px;
  display: none;
  z-index: 10;
}

.password-popup p {
  margin: 4px 0;
  display: flex;
  align-items: center;
}

.hint-icon {
  margin-right: 8px;
  font-weight: bold;
}

.hint-icon.valid {
  color: #2ecc71; /* green */
}

.hint-icon.invalid {
  color: #e74c3c; /* red */
}

button[disabled],
button.disabled {
  background: #656565 !important;
  cursor: not-allowed;
}

.simple-divider {
  width: 100%;
  display: flex;
  align-items: center;
  margin: 20px 0;
  padding: 40px 0 20px 0;
}

.simple-divider-line {
  flex-grow: 1;
  height: 1px;
  background: #656565;
}

/* --------------------------------------------------
   POPUP OVERLAY (Checkout Blocker)
-------------------------------------------------- */

#wpa-auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75); /* dark overlay */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  z-index: 999999;
}

#wpa-auth-popup {
  background: #033331;
  height: 98%;
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  animation: wpaFadeDown 0.35s ease-out;
}

/* Tabs */
.wpa-auth-tabs {
  display: flex;
  border-bottom: 1px solid #033331;
}

.wpa-auth-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-weight: 400;
  cursor: pointer;
  background: #116d66;
  border: none;
  color: #f2f2f2b3;
  border-bottom: 0.5px solid #f2f2f2b3;
}

.wpa-auth-tab.active {
  background: #033331;
  color: #fff;
  border-bottom: 2px solid #fff;
  font-weight: 600;
}

/* Panels */
.wpa-auth-content {
  height: 100%;
  padding: 15px 20px 20px;
}

.wpa-auth-panel {
  display: none;
}
.wpa-auth-panel.active {
  width: 100%;
  display: block;
}

@keyframes wpaFadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.checkout.unlocked .woocommerce,
body.checkout.unlocked #main,
body.checkout.unlocked .site-main,
body.checkout.unlocked .container {
  filter: none !important;
  pointer-events: auto !important;
}

.wpa-auth-content .wpa-auth-panel .wpa-card .wpa-footer,
.wpa-auth-content .wpa-auth-panel .wpa-card .simple-divider {
  display: none;
}

.wpa-popup-header {
  font-size: 34px;
  color: #fff;
  font-weight: 600;
  text-align: center;
  font-family: "Libre Franklin", Sans-serif;
  margin-bottom: 0;
  margin-top: 10px;
}

.wpa-popup-subheader {
  font-size: 20px;
  color: #fff;
  text-align: center;
  font-family: "Libre Franklin", Sans-serif;
  font-weight: 400;
}

.simple-divider-popup {
  width: 100%;
  display: flex;
  align-items: center;
  margin: 0 0 20px 0;
  padding: 0 0 20px 0;
}

#wpa-success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.wpa-success-inner {
  text-align: center;
  animation: pop 0.4s ease-out;
}

.wpa-success-title {
  font-size: 28px;
  margin-bottom: 8px;
  color: #2ecc71;
  font-weight: bold;
}

.wpa-success-text {
  font-size: 16px;
  color: #555;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 🔥 Success Popup Container */
#wpa-success-popup {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🔥 Blurred background */
.wpa-success-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.4);
}

/* 🔥 Modal box */
.wpa-success-modal {
  position: relative;
  background: white;
  padding: 35px 50px;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  z-index: 10;
  text-align: center;
  animation: popIn 0.4s ease-out;
}

/* Title and text */
.wpa-success-title {
  color: #033331;
  font-size: 34px;
  font-weight: 600;
  font-family: "Libre Franklin", Sans-serif;
}

.wpa-success-text {
  font-size: 20px;
  color: #444;
  font-family: "Libre Franklin", Sans-serif;
}

/* Popup animation */
@keyframes popIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 🎆 Fireworks container */
.wpa-fireworks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* 🎆 Single firework */
.firework {
  position: absolute;
  width: 6px;
  height: 6px;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 -20px #ff4757, 14px -14px #ffa502, 20px 0 #2ed573,
    14px 14px #1e90ff, 0 20px #3742fa, -14px 14px #ff6b81, -20px 0 #7bed9f,
    -14px -14px #70a1ff;
  animation: explode 1.2s ease-out forwards;
}

/* Explosion animation */
@keyframes explode {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  80% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Cool looping loader */
.wpa-loader-loop {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.wpa-dot {
  width: 10px;
  height: 10px;
  background: #27ae60;
  border-radius: 50%;
  animation: wpaPulse 0.6s infinite alternate ease-in-out;
}

.wpa-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.wpa-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Pulse animation */
@keyframes wpaPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.7);
    opacity: 1;
  }
}

/* ---------------------------------------------------------
   1) PREVENT PAGE SCROLL WHEN POPUP IS OPEN
---------------------------------------------------------- */
body.wpa-popup-open {
  overflow: hidden !important;
  height: 100vh;
}

/* ---------------------------------------------------------
   2) MAKE POPUP WRAPPER FULLSCREEN AND OWN THE SCROLL
---------------------------------------------------------- */
#wpa-auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);

  display: flex;
  justify-content: center;
  align-items: flex-start;

  overflow-y: auto !important; /* **Popup scrolls** */
  overscroll-behavior: contain !important; /* Prevent scroll reaching body */
  -webkit-overflow-scrolling: touch;
  padding-top: 40px;
  padding-bottom: 40px;

  pointer-events: auto;
}

/* ---------------------------------------------------------
   3) LIMIT POPUP HEIGHT SO IT SCROLLS INSIDE SCREEN
---------------------------------------------------------- */
#wpa-auth-popup {
  max-height: 90vh;
  overflow-y: auto !important; /* **Scroll here too** */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ---------------------------------------------------------
   4) ENSURE REGISTER AND LOGIN PANELS ARE SCROLLABLE
---------------------------------------------------------- */
.wpa-auth-panel {
  max-height: 100%;
  /* overflow-y: auto !important; MAIN FIX */
  padding-right: 8px;
}

/* REGISTER FORM scroll area */
#wepropel-register-popup {
  max-height: 100%;
}

/* LOGIN form scroll area */
#wpa-popup-login {
  max-height: 100%;
}

/* MOBILE + iPhone scroll */
/* @media (max-width: 767px) {
  #wepropel-register-popup,
  #wpa-popup-login {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
} */

/* iPhone small screens (≤ 480px) */
/* @media (max-width: 480px) {
  #wepropel-register-popup,
  #wpa-popup-login {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
} */

/* OPTIONAL scrollbar beautify */
.wpa-auth-panel::-webkit-scrollbar,
#wepropel-register-popup::-webkit-scrollbar,
#wpa-popup-login::-webkit-scrollbar {
  width: 6px;
}

.wpa-auth-panel::-webkit-scrollbar-thumb,
#wepropel-register-popup::-webkit-scrollbar-thumb,
#wpa-popup-login::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* General mobile (≤ 767px) */
@media (max-width: 767px) {
  .wpa-row {
    flex-direction: column;
    text-align: left;
  }

  .wpa-row > * {
    width: 100%;
    margin-bottom: 12px;
  }

  .wpa-row > *:last-child {
    margin-bottom: 0;
  }
}

/* iPhone small screens (≤ 480px) */
@media (max-width: 480px) {
  .wpa-row {
    flex-direction: column;
    text-align: left;
  }

  .wpa-row > * {
    width: 100%;
    margin-bottom: 12px;
  }
}

#wpa-auth-overlay {
  display: none;
}

#wpa-auth-overlay.active {
  display: flex !important;
}

.wpa-space {
  margin-bottom: 20px;
}

.wpa-popup-res {
  margin-bottom: 20px;
}
