/* 모바일 반응형 추가 */


.wrap-sport .top {
    padding-top:12px;
    width: 100% !important;
    height:4rem;
    background:linear-gradient(#fc6e58, #f1464c);
}

.wrap-sport .top .btn-top-event {
    display:none;
}

.wrap-sport .btn-top-member button>i {
    display: inline-flex;
    align-items: center;
}

.wrap-sport .nav-gnb {
    height:100vh;
    max-height: 100vh;
}

.wrap-sport {
    padding-top: 2.5rem;
    margin: 0 auto;
    background: url(../../images/renewal/bg-base.webp) 50% top no-repeat;
    background-size: cover;
}

/* Override to display:block because we're controlling visibility differently */
.wrap-sport .betting-list-area {
    position: relative;
    display: block;
}

/* Both containers take full width */
.wrap-sport .fixtures-container,
.wrap-sport .fixtures-bet-details {
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    height: 100vh;
    max-height: calc(100vh - 282px);
}

/* Show back button on mobile */
.wrap-sport .back-button {
    display: flex;
    align-items: center;
    width:100%;
    border-radius:none;
}

/* Containers will be visible/hidden based on these classes */
.wrap-sport .mobile-hidden {
    display: none !important;
}

.wrap-sport .mobile-visible {
    display: block !important;
}

/* Add smooth transitions */
.wrap-sport .fixtures-container,
.wrap-sport .fixtures-bet-details {
    transition: all 0.3s ease;
}

/* Fix bet details placeholder positioning */
.wrap-sport .bet-details-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wrap-sport {
    background: #faf5e6;
}

.wrap-sport .fixtures-container > div + div {
    margin-top:0.75rem;
}

.wrap-sport .betting-list-area {
    flex-direction: column;
}

.wrap-sport .fixtures-container,
.wrap-sport .fixtures-bet-details {
    max-width:calc(100vw - 22px);
}

.wrap-sport .fixtures-container .fixture-header {
    flex-direction: column;

    padding:0.25rem 0 0;
    height:auto;
    background:#fff;
    border-bottom:none;
}


.wrap-sport .fixtures-container .fixture-header .fixture-league {
    width:100%;
    padding: 0.25rem 0.5rem;
    font-size:12px;
    margin: 0 auto 0.25rem 0;
}

.wrap-sport .fixtures-container .fixture-header .fixture-time {
    justify-content: center;
    width: 100%;
    height:1.25rem;
    font-size:11px;
    border:none;
}

.wrap-sport .betting-slip {
    position: fixed;
    bottom: 0;
    width: 100%;
    top: auto;
    height: calc(100% - 6rem);
    transform: translateY(100%);
    transition: transform 0.3s;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
}

.wrap-sport .more-markets-button {
    flex:1;
    width:100%;
    max-width:100%;
    padding:0.25rem;
    border-radius:0;
    margin:0;
}

.wrap-sport .betting-slip.active {
    z-index: 1000;
    transform: translateY(0);
}

.wrap-sport .slip-header {
    flex-wrap: wrap;
}

.wrap-sport .slip-close {
    display: block;
    order: -2;
    width: 100%;

    padding: 0.5rem 0 0.75rem;
    color: #ff424c;
    background: #fff;
    border-top: 1px solid #ffe8e9;
    border-bottom: 1px solid #ff424c;

}

.wrap-sport .bet-slip-toggle {
    display: flex;
}

.wrap-sport .contents {
    padding-right: 0;
}

.wrap-sport {
    min-width: 100%;
}

.wrap-sport .header {
    display: none;
}

.wrap-sport .menu-type-container {
    background: none;
    border: none;
}

.wrap-sport .menu-type-container .menu-section {
    flex-wrap: wrap;
}

.wrap-sport .menu-type-container .sports-list {
    display: none;
    opacity: 1;
}

.wrap-sport .menu-type-container .sports-list.active {
    display: flex;
}

.wrap-sport .menu-type-container .menu-section {
    gap: 0.5rem;
    background: none;
}

.wrap-sport .menu-type-container .menu-section>button {
    width: calc(50% - 0.25rem);
    justify-content: center;

    border: 2px solid #fff;
    box-shadow:inset 0 0 0 2px #f3f3f3;
    border-radius: 0.25rem;
}

.wrap-sport .menu-type-container .menu-button:hover,
.wrap-sport .menu-type-container .menu-button.active {
    border: 2px solid #ed424a;
    box-shadow: inset 0 0 0 2px #ffa6a64f;
}

.wrap-sport .menu-type-container .menu-section>button::after {
    display: none;
}

.wrap-sport .menu-type-container .menu-section>button:first-child {
    order: 1;
}

.wrap-sport .menu-type-container .menu-section>button:nth-child(3) {
    order: 2;
}

.wrap-sport .menu-type-container .menu-section>div:nth-child(2) {
    order: 3;
}

.wrap-sport .menu-type-container .menu-section>div:nth-child(4) {
    order: 4;
}

.wrap-sport .menu-type-container .menu-section>div:nth-child(2),
.wrap-sport .menu-type-container .menu-section>div:nth-child(4) {
    width: 100%;
    padding: 4px 4px 6px;
    max-width: calc(100vw - 20px);
    background: linear-gradient(to bottom, #fdfdfc, #e7e7e7);
    border: 1px solid #f5e9c5;
    border-radius: 0.5rem 0.5rem 0 0;
    overflow: auto hidden;
    transition: all 0s ease;
    box-shadow: 0 10px 20px #ebe7d8;
}

.wrap-sport .menu-type-container .menu-section>div:nth-child(2)::-webkit-scrollbar-thumb,
.wrap-sport .menu-type-container .menu-section>div:nth-child(4)::-webkit-scrollbar-thumb {
    background:#775d5e;
}

.wrap-sport .menu-type-container .menu-section>div:nth-child(2)::-webkit-scrollbar-track,
.wrap-sport .menu-type-container .menu-section>div:nth-child(4)::-webkit-scrollbar-track {
    background: #ccc;
  }

.wrap-sport .menu-type-container .sport-item {
    padding: 1rem;
    box-shadow: inset 0 5px 17px #e7e7e7;
    background: linear-gradient(to bottom, #ffffff, #f7f7f7);
    border: 1px solid #ffffff;
}

.wrap-sport .menu-type-container .sport-item:hover,
.wrap-sport .menu-type-container .sport-item.active {
    background: linear-gradient(to bottom, #ffffff, #f7f7f7);
    filter: none;
}

.wrap-sport .menu-type-container .sports-list>div+div {
    border-left: 1px solid #c3c3c3;
}

.wrap-sport .menu-type-container .sport-item:first-child {
    border-radius: 0.312rem 0 0 0.312rem;
}

.wrap-sport .menu-type-container .sport-item:last-child {
    border-radius: 0 0.312rem 0.312rem 0;
}

.wrap-sport .search-bar {
    padding:0.625rem;
}

.btn-memu-league {
    display:inline !important;
}

.wrap-sport .menu-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    display: none;
    width: 100%;
    max-width: 100%;
}

.wrap-sport .menu-wrapper {
    flex-direction: column;
}

.wrap-sport .menu-section {
    width: 100%;
}

.wrap-sport .fixtures-container .fixture-details {
    padding: 0;
}

.wrap-sport .fixtures-container .market-name .fixtures-container {
    min-height: 300px;
    max-height: calc(100vh - 308px);
}

.wrap-sport .fixtures-container .markets {
    flex-direction: column;
    gap: 0;
}

.wrap-sport .fixtures-container .market {
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.wrap-sport .fixtures-container .market>div {
    flex: 1;
}

.wrap-sport .fixtures-container .market>div:first-child {
    display:none;
}

.wrap-sport .fixtures-container .market .bets {
    flex-direction: row;
    flex-wrap:nowrap;

    width:100%;
}

.wrap-sport .fixtures-container .bet {
    flex: 1;
    flex-direction: row !important;
    justify-content: center;
    padding:0.25rem;
    min-width: auto;
    height:auto;
}

.wrap-sport .fixtures-container .bet .bet-name > i {
    width:1rem;
    min-width:1rem;
}

.wrap-sport .fixtures-container .bet .bet-name > i img {
    width:100%;
}

.wrap-sport .fixtures-container .bet:nth-child(2) {
    max-width: 14%;
}

.wrap-sport .fixtures-container .bet:nth-child(2) .bet-name,
.wrap-sport .fixtures-container .bet:nth-child(2) .bet-name > i,
.wrap-sport .fixtures-container div:nth-child(2).bet-vs {
    display:none;
}

.wrap-sport .fixtures-container .bet .bet-price {
    margin: 0 auto;
}

.wrap-sport .fixtures-container div:nth-child(2).bet .bet-align-item > span {
    display:none;
    }

.wrap-sport .fixtures-container .bet-align-item > span {
    font-size: 11px;
    font-weight: bold;

    white-space: wrap;
    overflow:initial;
    text-overflow: ellipsis;
}

.wrap-sport .fixtures-container .market-name {
    width: 100%;
    max-width:100%;

    text-align:center;
}

.wrap-sport .fixtures-container .bet:nth-child(3) {
    justify-content: flex-end;
    flex-direction: row-reverse !important;
}

.wrap-sport .fixtures-container .bet:nth-child(3) .bet-align-item {
    flex-direction: row-reverse;
    text-align:right;
}

.wrap-sport .fixtures-bet-details {
    display:flex;

    border-radius: 0;
}

.wrap-sport .fixtures-bet-details .markets-container {
    display: block;
    height: 100vh;
    max-height: calc(100vh - 364px);
    overflow-y: auto;
}

.wrap-sport .fixtures-bet-details .markets-container .market-item+div {
    margin-top: 10px;
}


.wrap-sport .bet-details-header {
    padding:0;
    border-radius: 0;
}

.wrap-sport .bet-details-teams {
    font-size: 14px;
    margin-bottom: 0;
}

.wrap-sport .bet-details-content {
    gap: 8px;
    width: 100%;
    margin: 0;
}

.wrap-sport .teams {
    flex-direction: column;
    gap: 10px;
}

.wrap-sport .team {
    width: 100%;
}

.wrap-sport .vs {
    margin: 10px 0;
}

.wrap-sport .bets {
    flex-direction: column;
}

.wrap-sport .bet {
    width: 100%;
}

.wrap-sport .bet .bet-name{
    width:60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrap-sport .market-header,
.wrap-sport .bet-details-info,
.wrap-sport .bet-details-teams {
    padding:0.625rem;
    font-size:0.75rem;
}

.wrap-sport .fixtures-bet-details .market-tabs-3 .bet {
    min-width:31% !important;
}

.wrap-sport .back-button {
		position:fixed;
		left:1rem;
		bottom:1rem;
		
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    padding:0;
    width:50px;
    height:50px;
    
    color: #ff424c;
    font-weight: 800;
    background: #fff;
    border-radius:10in;
    border:1px solid #ff424c;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wrap-sport .menu-container.active {
    display: block;
    max-height: 100%;
}

.popup-sport-box {
    top:0;
    left:50%;
    width:100%;
    height:100%;
}

.pop-list-sport .no-data {
    line-height: 2.25rem;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.pop-list-sport .bet-history-sport {
    max-height:calc(100vh - 12.75rem);
    overflow-x:auto;
    margin-top:0.25rem;
}

.pop-list-sport .bet-history-sport th {
    background: #fafafa;
}

.pop-list-sport .bet-history-sport .betting-table .detail-btn {
    padding:0.25rem 0.425rem 0.375rem;
    width:auto;
    height:auto;
    font-size:0.75rem;
    border-radius:0.25rem;
}

.list-sport-pageing {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    height:3rem;
    background: #ff7558;
    margin:0;
}

.list-sport-pageing > a {
    width:1.625rem;
    height: 1.5rem;
    line-height:1.5rem;
}

.wrap-sport .bet-limits {
    justify-content: space-between;
    margin-bottom:0; 
}

.wrap-sport .bet-limits span:last-child {
    color:#ffff00;
    margin-left:0.25rem;
}


/* white mode */
@media (orientation: landscape) {
    body.wrap-sport {
        padding-top: 0;
        min-width: auto;
        max-width: 100%;
        background: #edf2fa;
        margin: 0 auto !important;
    }

    .wrap-sport .wrap-mobile {
        padding-top: 2.75rem;
        background: #fcf1ee;
    }

    .wrap-sport .wrap-mobile .top {
        max-width: 393px;
    }

    .wrap-sport .menu-type-container .menu-section>div:nth-child(2),
    .wrap-sport .menu-type-container .menu-section>div:nth-child(4) {
        max-width: 393px;
    }

    .wrap-sport .bet-slip-toggle {
        right: 50%;
        transform: translateX(176.5px);
    }

    .wrap-sport .nav-gnb {
        height: 100vh;
    }

    .wrap-sport .betting-slip {
        max-width:393px;
        height: calc(100% - 3rem);
        overflow-y:scroll !important;
    }
}

.score-box {
    min-width:100%;
}

.icon-score-background {
    width:2rem;
}

/* bet history new */

.bet-summary-row {
    flex-direction: row;
    align-items: flex-start;
    gap:18px;
}

.bet-summary-left,
.bet-summary-right {
    width: 42%;
    min-width: auto;
    align-items: flex-start;
}

.bet-summary-right {
    align-items: flex-start;
}

.bet-details-table {
    font-size: 12px;
}

.bet-details-table th,
.bet-details-table td {
    padding: 8px 5px;
}

.bet-info-item {
    font-size: 13px;
}

.info-label {
    min-width: 70px;
    font-size: 12px;
}

.bet-odds-info {
    gap:0;
}

.bet-summary-footer {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    flex-wrap:nowrap;
}

.pop-list-sport > div {
    position:relative;
    padding-top:3rem !important;
    max-height:calc(100vh - 6rem);
}

.pop-list-sport > div::before {
    content:'베팅기록';
    position:absolute;
    top:1rem;
    left:50%;
    font-size:1.125rem;
    font-family:'Pretendard';
    color:#fff;
    font-weight:bold;
    transform:translateX(-50%);
}

.bet-details-table-container {
    width:100%;
    overflow-x:auto;
}

.bet-summary {
    padding:0.5rem;
    background:#fff !important;
    border-top:2px solid #eee;
}

.bet-info-item {
    width:100%;
    justify-content: space-between;
}

.wrap-sport .total-odds {
    padding:0;
    color:#dc3545;
    border:none;
}

.wrap-sport .bet-amount {
    margin:0;
}

.bet-history-item + .bet-history-item {
    margin-top:0.25rem;
}

.bet-payout {
    font-size:14px;
    font-weight:bold;
}

.bet-status {
    padding:0;
}

.bet-summary-footer > .bet-info-item {
    width:100%;
    height:1.625rem;
}

.status-pending {
    background: none;
    color: #db07ff;
}

.status-won {
    background: none;
    color: #28a745;
}

.status-lost {
    background: none;
    color: #dc3545;
}

.status-canceled {
    background: none;
    color: #333;
}


.wrap-sport .bet-amount-btn {
	padding:5px 0;;
	min-width:16%;
}

.wrap-sport .bet-limits > div {
	flex:1;
	display:flex;
	flex-direction: column;
	
	padding:4px;
}

.wrap-sport .bet-amount-buttons {
	margin:0;
}

#betHistoryList .popup-box,
.wrap-sport .popup-box {
	top:0;
	width:100%;
	
}

.wrap-sport .cancel-modal .cancel-modal-content {
	top:50%;
	left:0;
   transform: translateY(-50%);
   height:382px;
   background:#ff7558;
	clip-path:polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px)
	}
	
.wrap-sport .cancel-modal h3 {
	font-size:1.8575rem;
}


.bet-history-sports table th {
	padding:2px 3px;
	height:2.25rem;
}

.bet-history-sports table th:first-child,
.bet-history-sports table td:first-child {
	display:none;
}

.bet-history-sports table .text-left > div{
	max-width:100px;
	text-align:left;
	white-space: nowrap;
	overflow:hidden;
	text-overflow: ellipsis;	
}

.bet-history-sports table .text-left > div:nth-child(2) {
	color:#888;
}

.bet-history-sports table td:nth-child(4) > span{
	display:block;
	max-width:60px;
	white-space: nowrap;
	overflow:hidden;
	text-overflow: ellipsis;	
}

.bet-info-item .info-label {
	color:#878787;
}
