

/* Start Event Marathon Manga */

.main{
    font-family: 'Nunito Sans';
}
 
.event-marathon{
    border: 1px solid #e6e6e6;background-color: #fff;
    margin-top: 15px;
    border-radius: 8px;
    font-family: 'Nunito Sans';
}

.marathon-right-header{
    display: flex; flex-direction: row; align-items: center; justify-content: space-between; margin: 8px 5px; font-size: 14px;font-weight: 700;
}

.marathon-right-header span:last-child{
    font-weight: 400;
    color: #64748B;
}

.event-marathon-header{
    border-bottom: 1px solid #e6e6e6;
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.marathon-see-all {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.event-marathon-body{
    margin: 15px;
}



.event-marathon-rank {
    text-align:center;
}



#event-marathon-last-update{
    float: right;
    /* margin: 10px; */
}

.marathon-left-container{
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);

    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    min-height: 380px;
    cursor: pointer;
}

/* 
@media (min-width: 769px){
    .marathon-left-container{
        min-height: unset;
        height: auto;
        aspect-ratio: 634 / 443;
    }

    #event-marathon-list-right{
        max-height: 100% !important;
        height: 100%;
    }
} */

.marathon-left-footer {
    margin-top: auto;
    text-align: center;
    z-index: 1;
    padding-top:12px;
    /* padding-bottom: 10px; */
}

.marathon-left-footer img {
    max-width: 100%;
    height: auto;
    display: block;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.marathon-left-body{
    display: flex; flex-direction: row; align-items: flex-end; width:100%; padding-top: 24px; text-align: left;
}

.icon-top-marathon {
    text-align: center;
}

.frame-top-marathon-left {
    display: flex; flex-direction: row; align-items: center; border-radius: 12px; border: 1px solid #212121; min-height: 45px; margin: 12px 6px 0 6px; padding:8px;
}

.customer-marathon-top-info{
    flex: 1; margin-left: 12px; min-width: 0;
}

.icon-mini-marathon-left-container{
    width: 32px;
    height: 32px;
    padding: 2px;

    border: 1px solid #CBD5E1;
    border-radius: 50%;

    overflow: hidden;
    box-sizing: border-box;
    background-color: #fff;
}

.frame-top-marathon-left.rank-1 .icon-mini-marathon-left-container{
    border: 1px solid #FBBF24;
}

.frame-top-marathon-left.rank-2 .icon-mini-marathon-left-container{
    border: 1px solid #1677FF;
}

.frame-top-marathon-left.rank-3 .icon-mini-marathon-left-container{
    border: 1px solid #722ED1;
}

.icon-mini-marathon-left{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.customer-marathon-top-info .name, .customer-info-marathon-right .name{
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; word-break: break-word; transition: all 300ms ease-in 0s; min-width: 0; line-height: 1.7; font-weight: 600; font-family: 'Nunito Sans';
}
.customer-marathon-top-info .name{
    padding-bottom: 3px;
}

#event-marathon-list-right{
    overflow-y: auto; width: 100%; height: 100%; max-height: 360px;
}

.event-marathon-item{
    display: flex; flex-direction: row; align-items: center; padding:4px 8px; margin: 10px 0; border-radius:8px; width:99%; border: 1px solid #E2E8F0;
}

.rank-icon-marathon-right{
    width: 25%; display: flex; align-items: center; padding-left: 4px;
}

.customer-info-marathon-right-container{
    width:75%; display:flex; flex-direction:row; align-items: center
}

.number-rank-marathon-right{
    width: 48px; text-align: center; color: #475569; font-weight: 600; font-size: 18px;
}

.icon-mini-marathon-right-container{
    width: 40px;
    height: 40px;
    padding: 2px;

    border: 1px solid #CBD5E1;
    border-radius: 50%;

    overflow: hidden;
    box-sizing: border-box;
    background-color: #fff;
}


.icon-mini-marathon-right{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.customer-info-marathon-right{
    flex: 1; padding: 0 4px;
}

.frame-total-marathon-container{
    position: relative; min-width: 120px; height: 25px;
}

.customer-total-marathon-right{
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

#event-marathon-list-right::-webkit-scrollbar {
    width: 6px;
    margin-left: 6px;
}

#event-marathon-list-right::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background-clip: padding-box; 
}
.customer-marathon-top-info .total_order_marathon {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* padding: 10px; */
    border-radius: 20px;
    font-weight: 600;
    color: white;
    height: 23px;
    position: relative;
    justify-content: center;
    position: relative;
}
.total_order_marathon img {
    height: inherit;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    left: -6px;
}
.customer-marathon-top-info .total{
    margin-left: 8px;
}

@media (max-width: 768px){
    .customer-marathon-top-info .total{
        margin-left: 12px;
    }
   .total_order_marathon img {
        left: -2px;
    }
    .frame-top-marathon-left{
        position: relative;
        padding: 8px 4px 8px;
        margin: 12px 2px 2px
    }
    /* .icon-mini-marathon-left {
        width: 32px;
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
    } */
    .icon-top-marathon{
        margin-top: -20px;
    }
    .customer-marathon-top-info{
        margin: 0;
        margin-top: 10px;
        text-align: center;
    }
    .number-rank-marathon-right{
        width: 38px;
        font-size: 14px;
        padding-left: 0;
    }
    /* .icon-mini-marathon-right{
        width: 30px;
    } */
    
    /* Rank 1 */
    .frame-top-marathon-left.rank-1 {
        background: linear-gradient(180deg, #FEF3C7 0%, #FFF8DE 30%, #FFFFFF 65%) !important;
    }

    /* Rank 2 */
    .frame-top-marathon-left.rank-2 {
        background: linear-gradient(180deg, #BAE0FF 0%, #EDF8FF 30%, #FFFFFF 65%) !important;
    }

    /* Rank 3 */
    .frame-top-marathon-left.rank-3 {
        background: linear-gradient(180deg, #EFDBFF 0%, #F8F1FF 30%, #FFFFFF 65%) !important;
    }
    .customer-marathon-top-info .total_order_marathon {
        height: 20px;
    }
    .frame-total-marathon-container{
        max-width: 110px !important;
    }
    .marathon-left-container{
        min-height: 270px;
    }

    .marathon-total-badge{
        height: 24px !important;
        width: 120px !important;
        font-size: 12px !important;
    }
    .marathon-coin-icon{
        width: 24px !important;
        height: 24px !important;
        left: -2px !important;
    }
    .icon-mini-marathon-left-container{
        width: 32px;
        height: 32px;
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    .icon-mini-marathon-right-container{
        width: 32px !important;
        height: 32px !important;
    }

    .marathon-right-header span:last-child{
        font-size: 12px !important;
    }

    .marathon-program-info-inner{
        padding: 8px !important;
    }
    .event-marathon-item{
        height: 48px !important;
    }
}

@media (max-width: 375px){
    .customer-marathon-top-info .total_order_marathon {
        height: 18px !important;
    }
}

@media (max-width: 320px){
    .customer-marathon-top-info .total_order_marathon {
        font-size: 12px !important;
        height: 18px !important;
    }
    .total_order_marathon img{
        position: unset;
        height: 12px;
        margin-left: 3px;
    }
    .customer-marathon-top-info .total{
        margin-left: 0;
    }
}
/* End Event Marathon Manga */

.marathon-total-badge{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    height: 28px;
    width: 142px;
    padding: 0 14px 0 18px;

    border-radius: 16px;
    background: #E2E8F0;
    border: 1px solid #E2E8F0;

    font-weight: 700;
    font-size: 13px;
    color: #334155;
}

.marathon-coin-icon{
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);

    width: 28px;
    height: 28px;
}

.marathon-coin-icon span {
    text-align: center;
}

.marathon-total-badge.rank-1{
    background-color: #F59E0B;
    color: #fff;
}
.marathon-total-badge.rank-2{
    background-color: #1677FF;
    color: #fff;
}
.marathon-total-badge.rank-3{
    background-color: #722ED1;
    color: #fff;
}

.event-marathon-item.rank-1{
    border: 1px solid #FEF3C7;
}

.event-marathon-item.rank-2{
    border: 1px solid #BAE0FF;
}

.event-marathon-item.rank-3{
    border: 1px solid #EFDBFF;
}


@media (min-width: 1025px){
    .marathon-right-container {
        background-color: #F8FAFCB2;
        border-radius: 12px;
    }

    .marathon-left-wrapper{
        padding-left: 0;
    }

}

.marathon-program-info-inner {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border: 1px solid #FEE2E2;
    border-radius: 8px;

    margin-top: 12px;
    
}

.marathon-date-range,
.marathon-announce {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
}

.marathon-info-divider {
    width: 1px;
    height: 20px;
    background-color: #E2E8F0;
    flex-shrink: 0;
}

.marathon-date-range strong,
.marathon-announce strong {
    color: #D3152B;
}

.icon_see_more_gray {
    -webkit-mask: url(/skin/frontend/ma_vanese/fahasa/images/ico_arrow_gray.svg) no-repeat center center;
    mask: url(/skin/frontend/ma_vanese/fahasa/images/ico_arrow_gray.svg) no-repeat center center;
    -webkit-mask-size: 18px;
    mask-size: 18px;
    background-color: #ED1E36;  /* ← đổi màu tại đây */
    background-image: none;     /* xóa background url cũ */
    transform: rotate(-180deg);
    height: 18px;
    width: 18px;
    transition: transform 0.5s ease;
}