/* CanPay Lightning Demo — Custom Overrides
   Only styles for demo-specific elements not covered by canpay-app.css */

/* ── Screen routing ─────────────────────────────────────────────────────── */
.screen { display: none; }

/* ── Lightning button ───────────────────────────────────────────────────── */
.lightning-btn {
  width: 100%;
  background: linear-gradient(135deg, #f7931a 0%, #ffb347 100%);
  color: #fff;
  border-radius: 8px;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(247, 147, 26, 0.4);
  font-family: 'Open Sans', sans-serif;
}
.lightning-btn:hover {
  background: linear-gradient(135deg, #e8870f 0%, #f0a030 100%);
}

/* ── QR placeholder ─────────────────────────────────────────────────────── */
.qr-placeholder {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ── Expiry countdown ───────────────────────────────────────────────────── */
.expiry-countdown.expiry-warning {
  color: #f7931a !important;
}

/* ── Amount option tiles ────────────────────────────────────────────────── */
.amount-option {
  transition: all 0.12s;
}
.amount-option:hover {
  opacity: 0.85;
}
.amount-option.selected {
  background: #fff !important;
  border-color: #fff !important;
}
.amount-option.selected .amount-value {
  color: #149240 !important;
}

/* ── Processing steps ───────────────────────────────────────────────────── */
.proc-step {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.proc-step.active,
.proc-step.done {
  opacity: 1;
}
.proc-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #666;
  flex-shrink: 0;
  transition: all 0.3s;
}
.proc-step.active .proc-icon {
  background: #f7931a;
  border-color: #f7931a;
  color: #fff;
}
.proc-step.done .proc-icon {
  background: #149240;
  border-color: #149240;
  color: #fff;
}
.proc-label {
  font-size: 14px;
  color: #999;
}
.proc-label.active {
  color: #333;
  font-weight: 600;
}
.proc-label.done {
  color: #333;
}

/* ── Processing spinner ─────────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.proc-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── PurchPower update animation ────────────────────────────────────────── */
.purchpower-updated {
  color: #b8ffd4 !important;
  transform: scale(1.05);
}
.purchasepower-box-amount {
  transition: color 0.3s, transform 0.3s;
}

/* ── Side drawer toggle ─────────────────────────────────────────────────── */
#side-drawer-panel {
  transition: left 0.3s ease;
}

/* ── Purchase gift card button (CanPay style) ───────────────────────────── */
.purchase-gift-card-btn {
  width: 100%;
  background: #000;
  color: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: left;
}
.purchase-gift-card-btn:hover {
  background: #222;
}
.purchase-btn-content {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.purchase-btn-text {
  flex: 1;
}

/* ── Fix CanPay CSS conflicts ───────────────────────────────────────────── */
#app {
  font-family: 'Open Sans', sans-serif;
}

/* Green backgrounds matching real CanPay app */
#screen-gift-cards {
  background: #e8e8e8;
  min-height: 100vh;
}
#screen-purchase {
  background: #149240;
  min-height: 100vh;
}
#screen-purchase .container {
  background: #fff !important;
  border-radius: 12px;
  padding-bottom: 20px !important;
  margin-top: 10px;
}
#screen-lightning {
  background: #149240;
  min-height: 100vh;
}
#screen-lightning .container {
  background: #fff !important;
  border-radius: 12px;
  padding: 20px !important;
  margin-top: 10px;
}
#screen-processing {
  background: #149240;
  min-height: 100vh;
}
#screen-processing .container {
  background: #fff !important;
  border-radius: 12px;
  padding: 20px !important;
  margin-top: 40px;
}
#screen-success {
  background: #149240;
  min-height: 100vh;
}
#screen-success .container {
  background: #fff !important;
  border-radius: 12px;
  padding: 20px !important;
  margin-top: 10px;
}
#screen-gift-cards-loaded {
  background: #e8e8e8;
  min-height: 100vh;
}
/* Home screen green is set inline — no override needed */

/* Override any conflicting common-nav styles from canpay-app.css for our green header */
#screen-gift-cards > .common-nav,
#screen-gift-cards-loaded > .common-nav {
  border-radius: 0;
  margin: 0;
}
