/* [P-FIX 20260824e] 한줄 검색·그린바·FAB닫기·3D아이콘·카트금액 */
html, body { touch-action: manipulation; }

@media (max-width: 1023px) {
  input, select, textarea { font-size: 16px !important; }

  .ax-sports-mobile-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    padding: 8px 12px 8px;
  }
  .ax-sports-mobile-hero {
    display: flex !important;
    align-items: center;
    width: auto !important;
    flex: none !important;
    padding: 2px 0 !important;
    min-width: 0;
  }
  .ax-sports-mobile-title {
    font-size: 1.45rem !important;
    font-weight: 900 !important;
    white-space: nowrap;
  }
  .ax-sports-mobile-title::after { display: none; }
  .ax-sports-mobile-sub { display: none; }
  .ax-sports-mobile-toolbar { display: contents; }
  .ax-sports-mobile-search {
    justify-self: end;
    width: min(58%, 230px);
    max-width: 230px !important;
    min-width: 0;
    margin-left: auto;
  }
  .ax-sports-mobile-tabs {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
  }

  .ax-sports-mobile-search input[name="matchSearch"],
  input[name="matchSearch"] {
    height: 36px;
    border: 1px solid rgba(0, 231, 1, 0.5) !important;
    background: rgba(0, 231, 1, 0.08) !important;
    color: #00e701 !important;
    border-radius: 8px !important;
    caret-color: #00e701;
  }
  .ax-sports-mobile-search input[name="matchSearch"]::placeholder,
  input[name="matchSearch"]::placeholder {
    color: rgba(0, 231, 1, 0.45) !important;
  }
  .ax-sports-mobile-search button,
  .ax-sports-mobile-search .fa-search { color: #00e701 !important; }

  .sort-row { flex-wrap: nowrap !important; }
  .sort-row .sort-tabs { flex-wrap: nowrap; overflow-x: auto; min-width: 0; align-items: center; }
  .sort-row > .btn-secondary,
  .sort-row > .btn-secondary--sm {
    flex-shrink: 0;
    margin-left: auto;
    background: #ff0f50 !important;
    border-color: #ff0f50 !important;
    color: #fff !important;
  }
  .ax-odds-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
  }
  .ax-odds-sort button {
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 700;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--dim, #9aa4b2);
    cursor: pointer;
  }
  .ax-odds-sort button.on,
  .ax-odds-sort.is-on .ax-odds-label {
    background: rgba(255, 15, 80, 0.14);
    color: var(--pink, #ff0f50);
  }
  .ax-odds-sort .ax-odds-up,
  .ax-odds-sort .ax-odds-dn {
    min-width: 26px;
    padding: 5px 6px;
  }

  .ax-mobile-menu-drawer {
    background: linear-gradient(180deg, #14202c 0%, #0b1220 42%, #091018 100%) !important;
  }
  .ax-profile-drawer {
    background: linear-gradient(180deg, #162232 0%, #0d1522 48%, #0a1018 100%) !important;
  }
  .ax-mobile-menu-drawer .menu-route-btn,
  .profile-action {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
  }
  .ax-mobile-menu-drawer .menu-route-btn i,
  .profile-action i {
    background: none !important;
    box-shadow: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0 !important;
  }
  .ax-ui3d {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  }
  .ax-bottom-nav .ax-ui3d { width: 26px; height: 26px; }

  .ax-fab-search-wrap {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 148px;
    z-index: 55;
  }
  .ax-fab-search-wrap.is-show { display: block; }
  .ax-fab-search {
    display: flex;
    align-items: center;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--pink, #ff0f50);
    color: #fff;
    border: 0;
    box-shadow: 0 8px 24px -6px rgba(255, 15, 80, 0.5);
    overflow: hidden;
    transition: width .22s ease, background .18s ease;
    padding: 0;
  }
  .ax-fab-search i.fa-search {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
  }
  .ax-fab-search input {
    flex: 1;
    min-width: 0;
    width: 0;
    opacity: 0;
    height: 40px;
    border: 0 !important;
    background: transparent !important;
    color: #00e701 !important;
    padding: 0 !important;
    outline: none;
  }
  .ax-fab-search-close {
    display: none;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-right: 8px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
  }
  .ax-fab-search-wrap.is-open .ax-fab-search {
    width: min(78vw, 300px);
    background: #0b1a14;
    border: 1px solid #00e701;
    box-shadow: 0 8px 24px -6px rgba(0, 231, 1, 0.45);
  }
  .ax-fab-search-wrap.is-open .ax-fab-search i.fa-search { color: #00e701; }
  .ax-fab-search-wrap.is-open .ax-fab-search input {
    width: auto;
    opacity: 1;
    padding: 0 8px 0 0 !important;
  }
  .ax-fab-search-wrap.is-open .ax-fab-search-close { display: inline-flex; align-items: center; justify-content: center; }
}

/* [P-FIX 20260824slip D] 금액·정정 — PC/모바일 공통 (1024 가드 제거) */
.betslip-panel .betamount,
.ax-mobile-cart .ax-mcart-amt,
.open-slip .quick-amt {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 8px 4px;
}
.betslip-panel .betamount button,
.ax-mobile-cart .ax-mcart-amt button,
.open-slip .quick-amt button {
  flex: 1 1 calc(33% - 6px);
  min-width: 72px;
  height: 42px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: #1b1b3d !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  color: #fff !important;
}
.betslip-panel .betamount button.ax-amt-reset,
.ax-mobile-cart .ax-mcart-amt button.ax-amt-reset,
.open-slip #stClear,
.open-slip .quick-amt button.danger {
  background: #ffd400 !important;
  border-color: #e6be00 !important;
  color: #1a1400 !important;
  flex: 0 0 auto;
}
.open-slip #stClear,
.ax-hide-old-reset { display: none !important; }
.open-slip .stake-row input#stakeInput,
.open-slip .stake-row input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}
.ax-amt-yellow,
.open-slip .quick-amt button.danger,
.open-slip .quick-amt button.ax-amt-yellow {
  background: #ffd400 !important;
  border-color: #e6be00 !important;
  color: #1a1400 !important;
  font-weight: 800 !important;
}
#ax-bet-done {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ax-bet-done-card {
  width: min(92vw, 360px);
  background: #121826;
  border: 1px solid rgba(255,212,0,.45);
  border-radius: 12px;
  padding: 22px 18px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.ax-bet-done-ttl {
  margin: 0 0 18px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.ax-bet-done-btns { display: flex; gap: 8px; }
.ax-bet-done-btns button {
  flex: 1; min-height: 44px; border-radius: 8px; border: 0;
  font-size: 14px; font-weight: 800; cursor: pointer;
}
.ax-bet-done-hist { background: #ffd400; color: #1a1400; }
.ax-bet-done-ok { background: #2a3344; color: #fff; }


/* [P-FIX 20260824slip B] 거절 픽 빨강 */
.slip-card.ax-slip-rejected,
.ax-mcart-item.ax-slip-rejected {
  border-color: #ff3b5c !important;
  background: rgba(255, 15, 80, 0.14) !important;
  box-shadow: inset 0 0 0 1px #ff3b5c;
}

/* [P-FIX 20260824slip C] 배팅취소·전체삭제 터치 */
.bet-card-foot .btn-primary,
.bet-foot-money .btn-primary {
  min-height: 44px !important;
  min-width: 96px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.open-slip .quick-amt button.danger {
  min-height: 44px !important;
  font-size: 14px !important;
}

/* [P-FIX 20260824ui2] 페이아웃 숨김 · 내역 압축 · 카트버튼 통일 · 알림만 모달 */
/* ui3: payout hide via JS label, not nth-child */
@media (max-width: 1023px) {
  .stat-grid { gap: 6px !important; margin: 8px 0 !important; }
  .stat-card { padding: 8px 8px !important; }
  .stat-card .lbl { font-size: 10px !important; }
  .stat-card .val { font-size: 13px !important; }
  .bet-card { margin-bottom: 8px !important; }
  .bet-card-foot, .bet-card-foot--rich { padding: 8px 10px !important; min-height: 0 !important; }
  .bet-hist-pick { padding: 8px 10px !important; }
  .bet-hist-kickoff { margin-bottom: 2px !important; }
  .sub-tabs { margin-bottom: 6px !important; }
  .tabs.sub-tabs { padding-top: 0 !important; }
}
.open-slip .quick-amt {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
}
.open-slip .quick-amt button,
.ax-mobile-cart .ax-mcart-amt button {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  background: #1b1b3d !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
}
.open-slip .quick-amt button.danger,
.open-slip .quick-amt button.ax-amt-yellow,
.ax-mobile-cart .ax-mcart-amt button.ax-amt-yellow {
  background: #ffd400 !important;
  border-color: #e6be00 !important;
  color: #1a1400 !important;
  grid-column: auto !important;
}
.open-slip #stClear, .ax-hide-old-reset { display: none !important; }
.open-slip .stake-row { display: flex !important; align-items: stretch !important; gap: 6px !important; }
.open-slip .stake-row input {
  flex: 1 1 auto !important;
  min-width: 80px !important;
  height: 40px !important;
}

/* [P-FIX 20260824ui3] 카트칩 PC동일 · 결과목록 모바일 잘림 복구 · 내역압축 */
/* ui3: payout hide via JS label, not nth-child */
@media (max-width: 1023px) {
  .ax-sports-page {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    flex: none !important;
  }
  .events-area {
    display: block !important;
    flex: none !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 40vh !important;
    padding-bottom: 72px !important;
  }
  .stat-grid { gap: 6px !important; margin: 6px 0 8px !important; }
  .stat-card { padding: 6px 8px !important; }
  .stat-card .lbl { font-size: 10px !important; }
  .stat-card .val { font-size: 13px !important; }
  .bet-card { margin-bottom: 8px !important; }
  .bet-card-foot, .bet-card-foot--rich { padding: 6px 10px !important; min-height: 0 !important; }
  .bet-hist-pick { padding: 6px 10px !important; }
  .sub-tabs, .tabs.sub-tabs { margin-bottom: 6px !important; padding-top: 0 !important; }
}
.open-slip .quick-amt,
.ax-mobile-cart .ax-mcart-amt,
.betslip-panel .betamount {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
}
.open-slip .quick-amt button,
.ax-mobile-cart .ax-mcart-amt button,
.betslip-panel .betamount button {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  background: #1b1b3d !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
}
.open-slip .quick-amt button.danger,
.open-slip .quick-amt button.ax-amt-yellow,
.ax-mobile-cart .ax-mcart-amt button.ax-amt-reset,
.betslip-panel .betamount button.ax-amt-reset {
  background: #ff0f50 !important;
  border-color: #ff0f50 !important;
  color: #fff !important;
}
.open-slip #stClear { display: none !important; }

/* 20260824 스페셜 버튼 노랑 */
.btn-ev-meta-pill--more,
.league-head-more {
  background: rgba(245, 197, 66, 0.14) !important;
  border: 1px solid #f5c542 !important;
  color: #f5c542 !important;
}
.btn-ev-meta-pill--more span,
.league-head-more span { color: #f5c542 !important; }
.league-head-more--pinned {
  border-color: #ffd56a !important;
  background: rgba(245, 197, 66, 0.24) !important;
  color: #ffe08a !important;
}

/* [P-FIX 20260824mtype] 모바일 서랍·카트·하단탭 글자/아이콘 가독 */
@media (max-width: 1023px) {
  .ax-mobile-menu-drawer .menu-route-btn,
  .ax-mobile-menu-drawer .menu-route-btn span {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }
  .ax-mobile-menu-drawer .menu-route-btn i,
  .ax-mobile-menu-drawer .menu-route-btn .ax-ui3d {
    width: 44px !important;
    height: 44px !important;
  }
  .ax-mobile-menu-drawer .ax-mobile-menu-drawer__head,
  .ax-mobile-menu-drawer .ttl {
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  .ax-profile-drawer .ax-profile-head .ttl {
    font-size: 17px !important;
    font-weight: 800 !important;
  }
  .ax-profile-drawer .profile-id { font-size: 16px !important; font-weight: 800 !important; }
  .ax-profile-drawer .profile-meta { font-size: 13px !important; line-height: 1.35 !important; }
  .ax-profile-drawer .profile-money .lbl { font-size: 12px !important; font-weight: 700 !important; }
  .ax-profile-drawer .profile-money .val { font-size: 15px !important; font-weight: 800 !important; }
  .ax-profile-drawer .profile-action,
  .ax-profile-drawer .profile-action span {
    font-size: 14px !important;
    font-weight: 700 !important;
  }
  .ax-profile-drawer .profile-action i,
  .ax-profile-drawer .profile-action .ax-ui3d {
    width: 42px !important;
    height: 42px !important;
  }

  .ax-sheet .ax-mcart-item { font-size: 13px !important; }
  .ax-sheet .ax-mcart-item .text-\[10px\],
  .ax-sheet .ax-mcart-item > div:first-of-type { font-size: 12px !important; }
  .ax-sheet .ax-mcart-item .text-\[11px\] { font-size: 13px !important; }
  .ax-sheet .ax-mcart-item .text-xs,
  .ax-sheet .ax-mcart-item .font-num { font-size: 14px !important; font-weight: 800 !important; }
  .ax-sheet .ax-mcart-x,
  .ax-sheet .ax-mcart-x i { font-size: 14px !important; }
  .ax-sheet .ax-mobile-cart input,
  .ax-sheet .ax-cart-sheet-inner input { font-size: 14px !important; height: 42px !important; }
  .ax-sheet .ax-mcart-amt button { font-size: 13px !important; font-weight: 800 !important; }
  .ax-sheet .text-xs { font-size: 13px !important; }
  .open-slip .slip-card,
  .open-slip .slip-card * { font-size: inherit; }
  .open-slip .slip-card { font-size: 13px !important; }
  .open-slip .slip-card .team,
  .open-slip .slip-card .pick,
  .open-slip .slip-card .odds { font-size: 14px !important; font-weight: 700 !important; }
  .open-slip i.fas { font-size: 14px !important; }

  .ax-bottom-nav { height: 70px !important; }
  .ax-bottom-nav .bn-btn {
    font-size: 12px !important;
    font-weight: 700 !important;
    gap: 4px !important;
  }
  .ax-bottom-nav .bn-btn i { font-size: 22px !important; }
  .ax-bottom-nav .ax-ui3d { width: 32px !important; height: 32px !important; }
}


/* [P-FIX 20260824slip3] 모바일 카트 안 — 라이브 번들 셀렉터 직접. 정정 숨김 금지 */
.ax-sheet .ax-cart-sheet-inner {
  font-size: 14px;
}
.ax-sheet .ax-mobile-cart,
.ax-sheet .p-2.border-t.border-white\/10 {
  padding: 10px 10px 12px !important;
}
.ax-sheet .ax-mobile-cart input,
.ax-sheet .p-2.border-t.border-white\/10 input {
  height: 48px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
.ax-sheet .text-\[10px\].text-white\/30,
.ax-sheet .ax-mcart-item .text-\[10px\],
.ax-sheet .ax-cart-sheet-inner .text-\[10px\].text-white\/30 {
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: rgba(255,255,255,.55) !important;
}
.ax-sheet .text-\[11px\].text-white\/70,
.ax-sheet .ax-mcart-item .text-\[11px\] {
  font-size: 15px !important;
  line-height: 1.35 !important;
  color: rgba(255,255,255,.88) !important;
}
.ax-sheet .ax-mcart-item .text-xs,
.ax-sheet .flex.justify-between.mt-1 .text-xs {
  font-size: 14px !important;
}
.ax-sheet .flex.justify-between.text-\[10px\],
.ax-sheet .flex.justify-between.text-sm.px-1 {
  font-size: 14px !important;
}
.ax-sheet .h-10.flex.items-center.justify-between.px-3.text-xs,
.ax-sheet .h-10.flex.items-center.justify-between.px-3.text-sm {
  font-size: 15px !important;
  height: 44px !important;
}
.ax-sheet .grid.grid-cols-3.gap-1.mb-2,
.ax-sheet .ax-mcart-amt {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}
.ax-sheet .grid.grid-cols-3.gap-1.mb-2 button:not(.ax-amt-reset),
.ax-sheet .ax-mcart-amt button:not(.ax-amt-reset),
.ax-sheet button.ax-amt-chip {
  height: 44px !important;
  min-height: 44px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: #1b1b3d !important;
  color: #fff !important;
  padding: 0 4px !important;
}
.ax-sheet.on .ax-mobile-cart .ax-mcart-amt button.ax-amt-reset,
.ax-sheet .ax-mcart-amt button.ax-amt-reset,
.ax-sheet button.ax-amt-reset {
  height: 44px !important;
  min-height: 44px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  background: #ffd400 !important;
  color: #111 !important;
  border: 1px solid #e6bf00 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.ax-sheet .opacity-40 span.text-xs,
.ax-sheet .opacity-40 span.text-sm {
  font-size: 15px !important;
  opacity: 1 !important;
  color: rgba(255,255,255,.75) !important;
}

/* [P-FIX 20260824slip5] 모바일 카트 픽행·빈문구 글자 */
.ax-sheet .ax-mcart-item { font-size: 15px !important; line-height: 1.4 !important; padding: 10px 12px !important; }
.ax-sheet .ax-mcart-item .text-\[13px\],
.ax-sheet .ax-mcart-item .truncate { font-size: 14px !important; }
.ax-sheet .ax-mcart-item .text-sm { font-size: 15px !important; }
.ax-sheet .ax-mcart-item .text-xs,
.ax-sheet .ax-mcart-item .text-brand { font-size: 16px !important; font-weight: 700 !important; }
.ax-sheet .opacity-40,
.ax-sheet .opacity-40 span { font-size: 15px !important; color: rgba(255,255,255,.75) !important; }

/* [P-FIX 20260825cart] 배팅카트 금액 여백·닫기 */
.betslip-panel .betamount button,
.ax-mobile-cart .ax-mcart-amt button,
.open-slip .quick-amt button {
  height: 46px !important;
  padding: 10px 8px !important;
  line-height: 1.2 !important;
}
.ax-sheet .ax-mcart-close,
.ax-mobile-cart .ax-mcart-close,
.ax-sheet button.ax-cart-close,
.ax-fab-search-close {
  min-width: 44px !important;
  min-height: 44px !important;
  width: 44px !important;
  height: 44px !important;
  font-size: 22px !important;
}
