/* Вывод денег партнёрам (assets/js/cashout.js): кабинет «Друзья» и /referral после входа. Переменные — из style.css */
[data-cashout][hidden], [data-cashout] [hidden] { display: none !important; }
[data-cashout] { display: grid; gap: 16px; }
.co-bal { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.co-bal > div { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.co-bal small { color: var(--muted); font-size: 13.5px; }
.co-bal b { font: 700 30px/1.1 var(--display); }
.co-av { border-color: rgba(62, 240, 160, .45) !important; background: rgba(62, 240, 160, .08) !important; }
.co-av b { color: var(--mint); }
.co-bal em { font-style: normal; color: var(--dim); font-size: 12.5px; line-height: 1.3; }
.co-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.co-note { color: var(--muted); font-size: 14px; margin: 0; }
.co-note:empty { display: none; }

.co-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 14px; border: 1px solid var(--line-hi, rgba(255, 255, 255, .16)); background: transparent; color: var(--text); font: 600 15.5px var(--font); cursor: pointer; transition: transform .25s var(--ease), opacity .2s, border-color .2s; }
.co-btn:hover:not(:disabled) { border-color: rgba(255, 255, 255, .4); transform: translateY(-1px); }
.co-btn--main { background: #fff; color: #050507; border-color: #fff; font-weight: 700; min-width: 160px; }
.co-btn:disabled { opacity: .45; cursor: default; }
.co-link { padding: 0; border: 0; background: none; color: var(--mint); font: 500 14px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.co-form { display: grid; gap: 16px; padding: 18px; border-radius: 20px; border: 1px solid var(--line-hi, rgba(255, 255, 255, .16)); background: rgba(255, 255, 255, .025); }
.co-field { display: grid; gap: 8px; min-width: 0; }
.co-field > span:first-child { font-size: 14px; color: var(--muted); }
.co-field small { color: var(--dim); font-size: 12.5px; }
.co-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 12px; }
.co-input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-hi, rgba(255, 255, 255, .16)); background: rgba(255, 255, 255, .04); color: var(--text); font: 16px var(--font); transition: border-color .2s, box-shadow .2s; }
.co-input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(62, 240, 160, .14); }
.co-input.is-bad { border-color: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, .14); }
.co-input::placeholder { color: var(--dim); }
.co-amount { position: relative; display: flex; align-items: center; gap: 14px; }
.co-amount .co-input { font: 700 22px var(--display); padding-right: 38px; max-width: 240px; }
.co-amount b { position: absolute; left: min(240px, 100%); margin-left: -30px; color: var(--muted); font: 700 20px var(--display); pointer-events: none; }
.co-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.co-seg label { position: relative; }
.co-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.co-seg span { display: block; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line-hi, rgba(255, 255, 255, .16)); font-size: 15px; transition: border-color .2s, background .2s; }
.co-seg input:checked + span { border-color: var(--mint); background: rgba(62, 240, 160, .1); color: var(--mint); }
.co-seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(62, 240, 160, .35); }
.co-saved { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 14px 16px; border-radius: 14px; background: rgba(62, 240, 160, .07); border: 1px solid rgba(62, 240, 160, .3); font-size: 15px; }
.co-saved b { white-space: nowrap; }
[data-co-details] { display: grid; gap: 12px; }
[data-co-details] > div { display: grid; gap: 12px; }
[data-co-details] > div > .co-row { margin-top: 0; }
.co-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.co-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--mint); flex: none; }
.co-pay-note { margin: 0; font-size: 13.5px; color: var(--dim); line-height: 1.45; }
.co-err { margin: 0; color: #ff8a8a; font-size: 14px; }
.co-err:empty { display: none; }
.co-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.co-open { display: grid; gap: 6px; padding: 18px; border-radius: 18px; border: 1px solid rgba(255, 196, 77, .45); background: rgba(255, 196, 77, .07); }
.co-open b { font: 700 26px var(--display); }
.co-open small { color: var(--muted); font-size: 13.5px; }
.co-open p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; }
.co-pill { justify-self: start; display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.co-pill._pending { background: rgba(255, 196, 77, .16); color: #ffcf6b; }
.co-pill._paid { background: rgba(62, 240, 160, .14); color: var(--mint); }
.co-pill._rejected { background: rgba(255, 107, 107, .14); color: #ff8a8a; }

.co-hist { display: grid; gap: 8px; }
.co-hist h3 { font-size: 15px; color: var(--muted); font-weight: 500; text-transform: none; margin: 4px 0 2px; }
.co-hist [data-co-list] { display: grid; gap: 8px; }
.co-item { display: grid; gap: 4px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.co-item__main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.co-item__main b { font: 700 18px var(--display); }
.co-item p { margin: 0; color: var(--dim); font-size: 13.5px; }
.co-item .co-item__reason { color: #ff9f9f; }

@media (max-width: 600px) {
  .co-bal { grid-template-columns: 1fr 1fr; }
  .co-bal > div { padding: 14px; }
  .co-bal b { font-size: 22px; }
  .co-row { grid-template-columns: 1fr; }
  .co-form { padding: 14px; }
  .co-amount { flex-wrap: wrap; }
  .co-amount .co-input { max-width: none; flex: 1 1 100%; }
  .co-amount b { left: auto; right: 16px; margin: 0; top: 14px; }
  .co-actions .co-btn, .co-cta .co-btn--main { flex: 1 1 100%; }
}
.co-saved__acts { display: flex; gap: 14px; }
.co-link--dim { color: var(--muted); }
.co-item .co-item__comment { color: var(--muted); }
