/* ===============================
   🚨 Overlay Styling (Redirect Screen)
   =============================== */
.smepfowo-redirect-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

.smepfowo-redirect-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.smepfowo-redirect-message {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.smepfowo-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: smepfowo-spin 1s linear infinite;
}

@keyframes smepfowo-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes smepfowo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

li.payment_method_smepfowo img,
li.payment_method_smepfowo_partial_cod img {
  max-height: 2em;
}


/* ===============================
   🖼️ QR Code Styling (Classic Checkout)
   =============================== */
#payment ul.payment_methods img.smepfowo-qr-code {
  display: block;
  margin: 20px auto;
  float: none;
  max-height: none;
  max-width: none;
  width: 260px;
  height: auto;
}


/* ===============================
   📱 Responsive Adjustments
   =============================== */

/* 🔒 Hide QR on small screens */
@media (max-width: 767px) {
  .smepfowo-qr-image {
    display: none !important;
  }
}

/* 🔒 Hide UPI intents block on desktop */
@media (min-width: 768px) {
  .smepfowo-intents-mobile-only {
    display: none !important;
  }
}


/* ===============================
   💳 UPI Intents Grid (Mobile)
   =============================== */
.smepfowo-intents-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.smepfowo-intent-item {
  flex: 0 0 45%;
  max-width: 45%;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.smepfowo-intent-item img {
  margin-bottom: 4px;
}

.smepfowo-intent-item div {
  font-size: 12px;
  line-height: 1.2;
}
