.wc-centered-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  text-align: center;
}

/* Payment processing page – responsive iframe */
.fawaterk-payment-processing {
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

.fawaterk-payment-iframe-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.fawaterk-payment-iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  height: 800px;
  max-height: 80vh;
  border: 0;
}

.fawaterk-payment-actions {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .fawaterk-payment-processing {
    padding: 0.75rem;
    min-height: auto;
  }

  .fawaterk-payment-iframe-wrapper {
    margin-bottom: 1rem;
  }

  .fawaterk-payment-iframe {
    min-height: 400px;
    height: 600px;
    max-height: 75vh;
  }
}

@media (max-width: 480px) {
  .fawaterk-payment-processing {
    padding: 0.5rem;
  }

  .fawaterk-payment-iframe {
    min-height: 350px;
    height: 500px;
    max-height: 70vh;
  }
}
.wc-centered-wrapper h1 {
  margin-bottom: 1rem;
}
.wc-centered-wrapper p {
  margin-bottom: 1.5rem;
}
.wc-centered-wrapper .button {
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border: none;
  border-radius: 4px;
}

.font-size-20 {
  font-size: 20px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

#payment-timer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  padding: 15px 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  width: min(370px, calc(100vw - 2rem));
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

#qrcode_img canvas,
#qrcode_img img {
  display: block;
  max-width: 100%;
  height: auto;
}

#payment-countdown {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  font-family: "Roboto Mono", monospace;
  letter-spacing: 2px;
}

.countdown-label {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
  font-family: Arial, sans-serif;
}

.qr-pending-msg {
  font-size: 15px;
  font-weight: 600;
  color: #1e40af;
  margin: 10px 0 6px;
  padding: 10px 14px;
  line-height: 1.5;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Fawry / Aman / Masary / generic pending card ── */
.fawaterk-pending-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(420px, calc(100vw - 2rem));
  margin: 20px auto;
  padding: 24px 20px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
  text-align: center;
}

.fawaterk-pending-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.fawaterk-pending-text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  line-height: 1.65;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Highlight the reference code inside the message */
.fawaterk-pending-text b,
.fawaterk-pending-text strong {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 2px 10px;
  margin: 2px 2px;
  letter-spacing: 0.04em;
}
