/* ══════════════════════════════════════════════
   ORDER POPUP — Modern Fyberlink Style
══════════════════════════════════════════════ */

/* ── Overlay ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.popup-overlay.active,
.popup-overlay[style*="flex"] {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

/* ── Box ── */
.popup-box {
  background: #ffffff;
  border-radius: 30px;
  max-width: 380px;
  width: 95%;
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.10),
    0 24px 56px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
  animation: popupSpringIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* gold top accent bar */
.popup-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffcc00 0%, #ffe566 50%, #ffcc00 100%);
  border-radius: 24px 24px 0 0;
}

@keyframes popupSpringIn {
  0%   { opacity: 0; transform: scale(0.85) translateY(20px); }
  55%  { opacity: 1; transform: scale(1.03) translateY(-3px); }
  75%  { transform: scale(0.98) translateY(1px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Icon ── */
.order-modal-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 10px;
  animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes iconPop {
  from { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── Title ── */
.popup-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #222222;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* ── Order details card ── */
.popup-box p {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 18px;
  background: #f7f7f7;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
}

.popup-box p strong {
  color: #333;
  font-weight: 700;
}

/* ── Email input ── */
.order-email {
  display: block;
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #333;
  background: #fafafa;
  outline: none;
  margin: 0 auto 18px auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.order-email::placeholder {
  color: #bbb;
  font-size: 0.82rem;
}

#orderPopup .order-email:focus {
  border-color: #ffcc00;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.18);
}

/* ── Pay button ── */
#popupPaystack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(255, 204, 0, 0.45),
    0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  position: relative;
  overflow: hidden;
}

#popupPaystack::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

#popupPaystack:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(255, 204, 0, 0.55),
    0 2px 6px rgba(0,0,0,0.12);
  background: linear-gradient(135deg, #ffd819 0%, #ffe04d 100%);
}

#popupPaystack:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 3px 10px rgba(255, 204, 0, 0.35);
}

/* lock icon inside pay button */
#popupPaystack::before {
  content: "🔒";
  font-size: 0.82rem;
}

/* ── Dismiss on overlay click ── */
.popup-overlay[style*="flex"] {
  animation: overlayFadeIn 0.25s ease forwards;
}

@keyframes overlayFadeIn {
  from { background: rgba(0,0,0,0); backdrop-filter: blur(0px); }
  to   { background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .popup-box {
    border-radius: 30px;
    padding: 26px 25px 22px;
  }
  .popup-box h3 { font-size: 1.05rem; }
  .popup-box p  { font-size: 0.82rem; }
}

/* ── Order detail rows (label left, value right) ── */
.popup-box p {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  
}

.order-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: #222;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}
