/* 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;
  }
}


/* ==========================================================
   WC WALLET — 3 MAIN ACTION BUTTONS
   Balans artır / Balans çıxar / Qəbzlərin statusu
   Fixed, identical design protected from theme/WooCommerce CSS.
   ========================================================== */

html body .wcwallet-actions > a.button.wcwallet-topup-btn,
html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle,
html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle {
  /* Exact common size based on the existing wallet action buttons */
  width: 163px !important;
  min-width: 163px !important;
  max-width: 163px !important;

  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;

  flex: 0 0 163px !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  box-sizing: border-box !important;
  padding: 0 10px !important;
  margin: 8px 0 0 !important;

  background: #0067ed !important;
  background-color: #0067ed !important;
  background-image: none !important;

  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;

  border: 0 !important;
  border-width: 0 !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 5px !important;

  font-family: inherit !important;
  font-size: 15px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;

  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  cursor: pointer !important;
  vertical-align: middle !important;

  transition: background-color .15s ease, transform .15s ease !important;
}

/* Keep the original action group compact and in one row where space allows. */
html body .wcwallet-actions {
  display: flex !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
}

/* Hover */
html body .wcwallet-actions > a.button.wcwallet-topup-btn:hover,
html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle:hover,
html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle:hover {
  background: #005bd4 !important;
  background-color: #005bd4 !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* Active */
html body .wcwallet-actions > a.button.wcwallet-topup-btn:active,
html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle:active,
html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle:active {
  background: #0054c4 !important;
  background-color: #0054c4 !important;
  transform: translateY(1px) !important;
}

/* Keyboard focus */
html body .wcwallet-actions > a.button.wcwallet-topup-btn:focus,
html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle:focus,
html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle:focus {
  background: #0067ed !important;
  background-color: #0067ed !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(0,103,237,.18) !important;
}

/* Do not let a theme inject icons/arrows into these buttons. */
html body .wcwallet-actions > a.button.wcwallet-topup-btn::before,
html body .wcwallet-actions > a.button.wcwallet-topup-btn::after,
html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle::before,
html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle::after,
html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle::before,
html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle::after {
  content: none !important;
  display: none !important;
}

/* Mobile: keep all three buttons equal; reduce them only when the screen is narrow. */
@media (max-width: 560px) {
  html body .wcwallet-actions > a.button.wcwallet-topup-btn,
  html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle,
  html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle {
    width: 31vw !important;
    min-width: 0 !important;
    max-width: 163px !important;
    flex-basis: 31vw !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 5px !important;
    font-size: 11px !important;
  }

  html body .wcwallet-actions {
    gap: 5px !important;
  }
}


/* ==========================================================
   WC WALLET — COMPACT BUTTONS + REAL WRAPPING
   Final override: smaller on desktop/mobile, no horizontal scroll.
   ========================================================== */

html body .wcwallet-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 8px !important;

  width: 100% !important;
  max-width: 100% !important;

  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  white-space: normal !important;
}

/* All 3 buttons: compact and exactly equal */
html body .wcwallet-actions > a.button.wcwallet-topup-btn,
html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle,
html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle {
  width: 145px !important;
  min-width: 145px !important;
  max-width: 145px !important;

  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;

  flex: 0 0 145px !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 8px !important;
  margin: 0 !important;

  box-sizing: border-box !important;

  background: #0067ed !important;
  background-color: #0067ed !important;
  background-image: none !important;

  color: #fff !important;
  -webkit-text-fill-color: #fff !important;

  border: 0 !important;
  border-radius: 5px !important;

  font-family: inherit !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;

  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  cursor: pointer !important;
  vertical-align: middle !important;
}

/* Mobile: smaller still. If 3 do not fit, the 3rd naturally goes to row 2. */
@media (max-width: 560px) {
  html body .wcwallet-actions {
    flex-wrap: wrap !important;
    gap: 6px !important;
    overflow: visible !important;
    overflow-x: visible !important;
  }

  html body .wcwallet-actions > a.button.wcwallet-topup-btn,
  html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle,
  html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle {
    width: 135px !important;
    min-width: 135px !important;
    max-width: 135px !important;

    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;

    flex: 0 0 135px !important;

    padding: 0 6px !important;
    font-size: 11.5px !important;
  }
}

/* Very narrow phones */
@media (max-width: 330px) {
  html body .wcwallet-actions > a.button.wcwallet-topup-btn,
  html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle,
  html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle {
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
    flex-basis: 128px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    font-size: 11px !important;
  }
}


/* ==========================================================
   WC WALLET — BUTTON HOVER / ACTIVE
   Hover/click: white background + #0067ed text
   ========================================================== */

html body .wcwallet-actions > a.button.wcwallet-topup-btn:hover,
html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle:hover,
html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle:hover,
html body .wcwallet-actions > a.button.wcwallet-topup-btn:active,
html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle:active,
html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle:active {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;

  color: #0067ed !important;
  -webkit-text-fill-color: #0067ed !important;

  border: 1px solid #0067ed !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
}

html body .wcwallet-actions > a.button.wcwallet-topup-btn:focus-visible,
html body .wcwallet-actions > button.button.wcwallet-withdraw-btn#wcwalletWithdrawToggle:focus-visible,
html body button.button.waif-receipt-status-btn#waifReceiptStatusToggle:focus-visible {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0067ed !important;
  -webkit-text-fill-color: #0067ed !important;
  border: 1px solid #0067ed !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(0,103,237,.16) !important;
}


/* v2.2.1 — transaction balance before/after */
.wcwallet-history-balance-flow{
    display:block;
    margin-top:4px;
    color:#64748b;
    font-size:11px;
    line-height:1.35;
    white-space:nowrap;
}
.wcwallet-history-balance-flow .woocommerce-Price-amount,
.wcwallet-history-balance-flow .woocommerce-Price-currencySymbol{
    color:inherit!important;
    font-size:inherit!important;
    font-weight:600!important;
}
