/* WC Wallet - light, theme-friendly styles */

.wcwallet-summary{
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
}

.wcwallet-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.wcwallet-topup-btn,
.wcwallet-withdraw-btn,
.wcwallet-withdraw-submit{
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.08);
}

.wcwallet-withdraw-panel{
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.wcwallet-withdraw-title{
  margin: 0 0 12px;
  font-size: 18px;
}

.wcwallet-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 720px){
  .wcwallet-grid{ grid-template-columns: 1fr; }
}

.wcwallet-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wcwallet-field span{
  font-size: 13px;
  color: rgba(0,0,0,0.65);
  font-weight: 600;
}

.wcwallet-field input,
.wcwallet-field select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 2px solid rgba(0,0,0,0.10);
  background: #fff;
  outline: none;
}

.wcwallet-field input:focus,
.wcwallet-field select:focus{
  border-color: rgba(0,0,0,0.24);
}

.wcwallet-field-full{
  grid-column: 1 / -1;
}

.wcwallet-withdraw-summary{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.03);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.wcwallet-withdraw-hint{
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}

.wcwallet-alert{
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.wcwallet-alert-success{
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.25);
}

.wcwallet-alert-error{
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.25);
}

.wcwallet-modal-open{overflow:hidden;}
.wcwallet-modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:18px;z-index:999999;}
.wcwallet-modal{width:100%;max-width:440px;background:#fff;border-radius:20px;padding:26px 20px 20px;box-shadow:0 24px 80px rgba(15,23,42,.25);position:relative;text-align:center;border:1px solid rgba(0,103,237,.12);animation:wcwalletModalIn .18s ease-out;}
.wcwallet-modal-icon{width:58px;height:58px;border-radius:999px;margin:0 auto 14px;background:#fff1f2;color:#dc2626;border:1px solid #fecdd3;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700;}
.wcwallet-modal h3{margin:0 0 10px;font-size:24px;line-height:1.15;color:#0f172a;}
.wcwallet-modal-text{margin:0 0 14px;color:#475569;font-size:14px;line-height:1.55;}
.wcwallet-modal-shortfall{margin:0 0 16px;padding:12px 14px;border-radius:14px;background:#eff6ff;border:1px solid #bfdbfe;color:#0f172a;font-size:14px;}
.wcwallet-modal-shortfall strong{color:#0067ed;font-size:17px;}
.wcwallet-modal-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}
.wcwallet-modal-topup,.wcwallet-modal-back{min-width:150px;padding:12px 16px;border-radius:12px;text-decoration:none;font-weight:700;display:inline-flex;align-items:center;justify-content:center;border:1px solid #0067ed;cursor:pointer;}
.wcwallet-modal-topup{background:#0067ed;color:#fff;}
.wcwallet-modal-back{background:#fff;color:#0067ed;}
@keyframes wcwalletModalIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media (max-width:480px){.wcwallet-modal{padding:22px 14px 16px;border-radius:18px}.wcwallet-modal h3{font-size:22px}.wcwallet-modal-actions,.wcwallet-modal-actions.wcwallet-modal-actions--triple{grid-template-columns:1fr !important;max-width:100% !important}.wcwallet-modal-topup,.wcwallet-modal-back,.wcwallet-modal-whatsapp{width:100%;}}


/* Theme reset for insufficient balance modal */
.wcwallet-modal-overlay,
.wcwallet-modal-overlay *{
  box-sizing:border-box !important;
}
.wcwallet-modal-overlay{
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
}
.wcwallet-modal{
  background:#ffffff !important;
}
.wcwallet-modal h3,
.wcwallet-modal p,
.wcwallet-modal div,
.wcwallet-modal strong{
  font-family:inherit !important;
  text-transform:none !important;
  letter-spacing:normal !important;
}
.wcwallet-modal-topup,
.wcwallet-modal-back,
.wcwallet-modal-whatsapp{
  appearance:none !important;
  -webkit-appearance:none !important;
  font-family:inherit !important;
  font-size:14px !important;
  line-height:1.2 !important;
  text-transform:none !important;
  letter-spacing:normal !important;
  text-shadow:none !important;
  box-shadow:none !important;
  outline:none !important;
}
.wcwallet-modal-actions{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:8px !important;
  max-width:360px !important;
  margin:0 auto !important;
}
.wcwallet-modal-actions.wcwallet-modal-actions--triple{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  max-width:390px !important;
}
.wcwallet-modal-topup,
.wcwallet-modal-back,
.wcwallet-modal-whatsapp{
  min-width:0 !important;
  width:100% !important;
  min-height:42px !important;
  padding:10px 12px !important;
  border-radius:10px !important;
  text-decoration:none !important;
  font-weight:600 !important;
  transition:all .15s ease !important;
}
.wcwallet-modal-topup{
  background:#0067ed !important;
  color:#ffffff !important;
  border:1px solid #0067ed !important;
}
.wcwallet-modal-back{
  background:#ffffff !important;
  color:#0067ed !important;
  border:1px solid #0067ed !important;
}
.wcwallet-modal-whatsapp{
  background:#25D366 !important;
  color:#ffffff !important;
  border:1px solid #25D366 !important;
}
.wcwallet-modal-topup:hover,
.wcwallet-modal-whatsapp:hover,
.wcwallet-modal-back:hover{
  transform:translateY(-1px) !important;
}
@media (max-width:680px){
  .wcwallet-modal-actions,
  .wcwallet-modal-actions.wcwallet-modal-actions--triple{
    grid-template-columns:1fr !important;
  }
}
