/* Payment picker is intentionally isolated from the global red button palette. */
body.cash-page .payment-modal-backdrop,
body.cash-page .payment-modal-backdrop:hover,
body.cash-page .payment-modal-backdrop:active {
  inset: 0;
  background: rgba(4, 6, 13, .82) !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.cash-page .payment-modal-dialog {
  border-color: rgba(115, 132, 170, .22) !important;
  background:
    radial-gradient(circle at 85% 0, rgba(54, 92, 170, .16), transparent 34%),
    linear-gradient(150deg, rgba(28, 32, 45, .99), rgba(15, 18, 27, .99)) !important;
}

body.cash-page .payment-modal-head > div > small {
  color: #63b3ff !important;
  -webkit-text-fill-color: #63b3ff !important;
}

body.cash-page .payment-modal-close,
body.cash-page .payment-modal-close:hover,
body.cash-page .payment-modal-close:active {
  color: #dce7ff !important;
  -webkit-text-fill-color: #dce7ff !important;
  border-color: rgba(132, 151, 190, .25) !important;
  background: rgba(101, 122, 166, .11) !important;
  box-shadow: none !important;
}

body.cash-page .payment-modal-close:hover {
  border-color: rgba(99, 179, 255, .65) !important;
  background: rgba(99, 179, 255, .16) !important;
}

body.cash-page button.payment-method,
body.cash-page button.payment-method:hover,
body.cash-page button.payment-method:active {
  color: #f5f8ff !important;
  -webkit-text-fill-color: #f5f8ff !important;
  border-color: rgba(131, 151, 193, .18) !important;
  background: linear-gradient(145deg, rgba(55, 65, 87, .55), rgba(30, 36, 50, .72)) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .025) !important;
}

body.cash-page button.payment-method:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 179, 255, .55) !important;
  background: linear-gradient(145deg, rgba(64, 80, 110, .72), rgba(35, 43, 61, .88)) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24), 0 0 0 1px rgba(99, 179, 255, .08) !important;
}

body.cash-page button.payment-method[data-provider="yoomoney"] {
  border-color: rgba(139, 79, 255, .48) !important;
  background: linear-gradient(145deg, rgba(116, 55, 225, .25), rgba(39, 34, 66, .72)) !important;
}

body.cash-page button.payment-method[data-method="sbp"] {
  border-color: rgba(38, 201, 172, .44) !important;
  background: linear-gradient(145deg, rgba(20, 155, 139, .22), rgba(36, 44, 69, .74)) !important;
}

body.cash-page button.payment-method[data-method="card"] {
  border-color: rgba(75, 137, 255, .32) !important;
}

body.cash-page button.payment-method[data-method="wm"] {
  border-color: rgba(45, 151, 224, .34) !important;
}

body.cash-page button.payment-method[data-method="advcash"] {
  border-color: rgba(24, 190, 133, .34) !important;
}

body.cash-page button.payment-method > span:nth-child(2) > b {
  color: #f6f8ff !important;
  -webkit-text-fill-color: #f6f8ff !important;
}

body.cash-page button.payment-method > span:nth-child(2) > small {
  color: #98a6c3 !important;
  -webkit-text-fill-color: #98a6c3 !important;
}

body.cash-page button.payment-method > i {
  color: #75c3ff !important;
  -webkit-text-fill-color: #75c3ff !important;
}

body.cash-page button.payment-method .payment-logo {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .12) !important;
}

body.cash-page button.payment-method .payment-logo img {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

body.cash-page button.payment-method .logo-yoomoney img,
body.cash-page button.payment-method .logo-sbp img,
body.cash-page button.payment-method .logo-card img,
body.cash-page button.payment-method .logo-volet img {
  width: 32px;
  height: 32px;
}

body.cash-page button.payment-method .logo-yoomoney { background: linear-gradient(145deg, #9a51ff, #5a19cf) !important; }
body.cash-page button.payment-method .logo-sbp { background: linear-gradient(145deg, #20c8a8, #5f66e9) !important; }
body.cash-page button.payment-method .logo-card { background: linear-gradient(145deg, #3974df, #1e376e) !important; }
body.cash-page button.payment-method .logo-wm { background: linear-gradient(145deg, #1d8bd4, #075186) !important; }
body.cash-page button.payment-method .logo-volet { background: linear-gradient(145deg, #18bd84, #087150) !important; }
body.cash-page button.payment-method .logo-btc { background: linear-gradient(145deg, #ffad32, #e37900) !important; }
body.cash-page button.payment-method .logo-eth { background: linear-gradient(145deg, #7387f1, #3c4db2) !important; }
body.cash-page button.payment-method .logo-ltc { background: linear-gradient(145deg, #5b85c8, #294a80) !important; }
body.cash-page button.payment-method .logo-usdt { background: linear-gradient(145deg, #36b991, #17775d) !important; }
body.cash-page button.payment-method .logo-usdc { background: linear-gradient(145deg, #4092e5, #175fa8) !important; }
body.cash-page button.payment-method .logo-ton { background: linear-gradient(145deg, #35b9ee, #167cad) !important; }
body.cash-page button.payment-method .logo-bch { background: linear-gradient(145deg, #28d6a5, #098362) !important; }
body.cash-page button.payment-method .logo-dash { background: linear-gradient(145deg, #35a8ec, #116baa) !important; }
body.cash-page button.payment-method .logo-zec { background: linear-gradient(145deg, #deb75b, #98721f) !important; }
body.cash-page button.payment-method .logo-doge { background: linear-gradient(145deg, #ceb35f, #8e7529) !important; }

body.cash-page button.payment-method.is-disabled,
body.cash-page button.payment-method.is-disabled:hover,
body.cash-page button.payment-method:disabled {
  opacity: .42 !important;
  transform: none !important;
  cursor: not-allowed !important;
  border-color: rgba(119, 129, 151, .13) !important;
  background: linear-gradient(145deg, rgba(54, 58, 68, .48), rgba(31, 34, 42, .65)) !important;
  box-shadow: none !important;
}

body.cash-page .payment-modal-note {
  color: #aab5cc !important;
  border: 1px solid rgba(123, 143, 182, .13);
  background: rgba(74, 90, 122, .1) !important;
}

/* The global theme intentionally uses an ID inside :not(), so payment controls
   need a real modal ID in their selector to win the cascade. */
body.cash-page #paymentModal .payment-modal-backdrop,
body.cash-page #paymentModal .payment-modal-backdrop:hover,
body.cash-page #paymentModal .payment-modal-backdrop:active {
  background: rgba(4, 6, 13, .86) !important;
  background-color: rgba(4, 6, 13, .86) !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.cash-page #paymentModal .payment-modal-close,
body.cash-page #paymentModal .payment-modal-close:active {
  color: #dce7ff !important;
  -webkit-text-fill-color: #dce7ff !important;
  border-color: rgba(132, 151, 190, .25) !important;
  background: rgba(101, 122, 166, .11) !important;
  background-color: rgba(101, 122, 166, .11) !important;
  background-image: none !important;
}

body.cash-page #paymentModal .payment-modal-close:hover {
  border-color: rgba(99, 179, 255, .65) !important;
  background: rgba(99, 179, 255, .16) !important;
  background-color: rgba(99, 179, 255, .16) !important;
  background-image: none !important;
}

body.cash-page #paymentModal button.payment-method,
body.cash-page #paymentModal button.payment-method:active {
  color: #f5f8ff !important;
  -webkit-text-fill-color: #f5f8ff !important;
  border-color: rgba(131, 151, 193, .2) !important;
  background: linear-gradient(145deg, rgba(55, 65, 87, .62), rgba(30, 36, 50, .82)) !important;
  background-color: #222a39 !important;
  background-image: linear-gradient(145deg, rgba(55, 65, 87, .62), rgba(30, 36, 50, .82)) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .035) !important;
}

body.cash-page #paymentModal button.payment-method:hover {
  border-color: rgba(99, 179, 255, .62) !important;
  background: linear-gradient(145deg, rgba(64, 80, 110, .82), rgba(35, 43, 61, .96)) !important;
  background-color: #2c3850 !important;
  background-image: linear-gradient(145deg, rgba(64, 80, 110, .82), rgba(35, 43, 61, .96)) !important;
}

body.cash-page #paymentModal button.payment-method[data-provider="yoomoney"] {
  border-color: rgba(139, 79, 255, .52) !important;
  background: linear-gradient(145deg, rgba(116, 55, 225, .3), rgba(39, 34, 66, .86)) !important;
  background-image: linear-gradient(145deg, rgba(116, 55, 225, .3), rgba(39, 34, 66, .86)) !important;
}

body.cash-page #paymentModal button.payment-method[data-method="sbp"] {
  border-color: rgba(38, 201, 172, .5) !important;
  background: linear-gradient(145deg, rgba(20, 155, 139, .28), rgba(36, 44, 69, .88)) !important;
  background-image: linear-gradient(145deg, rgba(20, 155, 139, .28), rgba(36, 44, 69, .88)) !important;
}

body.cash-page #paymentModal button.payment-method.is-disabled,
body.cash-page #paymentModal button.payment-method:disabled {
  opacity: .42 !important;
  border-color: rgba(119, 129, 151, .13) !important;
  background: linear-gradient(145deg, rgba(54, 58, 68, .48), rgba(31, 34, 42, .65)) !important;
  background-image: linear-gradient(145deg, rgba(54, 58, 68, .48), rgba(31, 34, 42, .65)) !important;
}

body.cash-page #paymentModal button.payment-method > span:nth-child(2) > b {
  color: #f6f8ff !important;
  -webkit-text-fill-color: #f6f8ff !important;
}

body.cash-page #paymentModal button.payment-method > span:nth-child(2) > small {
  color: #98a6c3 !important;
  -webkit-text-fill-color: #98a6c3 !important;
}

body.cash-page #paymentModal button.payment-method > i {
  color: #75c3ff !important;
  -webkit-text-fill-color: #75c3ff !important;
}
