.lich_su_wrap::-webkit-scrollbar{
    width: 0;
    height: 0;
}
.tieu_de_ls::-webkit-scrollbar{
    width: 4px;
}
.lich_su_wrap {
    cursor: pointer;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px;
    gap: 2em;
    width: 100%;
    transition: all ease-in .3s;
}
.lich_su_item {
    width: 100%;
    display: block;
    margin-left: -10px;
    transition: all ease-in .3s;
}
.lich_su_item_inner {
    width: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 230px;
    padding-bottom: 0;
    justify-content: space-between;
    position: relative;
}
.lich_su_item:nth-child(even)
.lich_su_item_inner {
    flex-direction: column-reverse;
    margin-top: 140px;
    padding-top: 0;
}
.tieu_de_ls {
    text-wrap: balance;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 10px #0000001a;
    background: #fff1d8;
    border-radius: var(--radius-1);
    border: 5px solid #ffffff85;
    padding: 10px;
    color: var(--txt-color-normal);
    font-weight: 500;
    position: relative;
    height: 110px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all ease-in .4s;
    overflow-y: auto;
    font-size: 15px;
}
.line_lich_su {
    width: 100%;
    height: 2px;
    background: #ccc;
    z-index: 2;
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;
    transition: all ease-in .3s;
}
.line_item {
    width: 2px;
    height: 45px;
    position: absolute;
    background: transparent;
    border-left: 2px dashed #ccc;
    top: 115px;
    left: 0;
    right: 0;
    margin: auto;
    transition: all ease-in .3s;
}
.line_item:before {
    content: "";
    width: 2px;
    height: 0px;
    position: absolute;
    border-left: 2px dashed var(--primary-color);
    top: 0;
    right: 0;
    transition: height ease-in .3s;
}
.lich_su_item:nth-child(odd) .lich_su_item_inner .line_item:before {
    top: auto;
    bottom: 0;
}
.lich_su_item_inner:hover .line_item:before{
    height: 45px;
}
.lich_su_item:nth-child(even) .lich_su_item_inner .line_item {
    bottom: 115px;
    top: auto;
}
.diamond_item {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ccc;
    left: 0;
    right: 0;
    top: calc((100% / 2 ) + 63px);
    margin: auto;
    transform: rotateZ(45deg);
    z-index: 4;
    transition: all ease-in .3s;
}
.lich_su_item:nth-child(even) .lich_su_item_inner .diamond_item {
    bottom: calc((100% / 2 ) + 63px);
    top: auto;
}
.lich_su_item_inner:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    top: calc((100% / 2 ) + 69px);
    left: 50%;
    z-index: 3;
    transition: width ease-in-out .5s;
}
.lich_su_item_inner.active:after, .lich_su_item_inner:hover:after {
    width: calc(100% + 20px);
}
.lich_su_item:nth-child(even) .lich_su_item_inner:after{
    bottom: calc((100% / 2 ) + 69px);
    top: auto;
}
.nam_ls {
    font-size: 25px;
    font-weight: 800;
    position: absolute;
    bottom: -10px;
    color: var(--txt-color);
    transition: all ease-in .3s;
}
.lich_su_item:nth-child(even) .lich_su_item_inner .nam_ls {
    top: -10px;
    bottom: auto;
}
.lich_su_wrap:after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 10px solid transparent;
    border-left: 15px solid #cccccc;
    border-right: 0px solid transparent;
    right: -5px;
    top: 0;
    bottom: 0;
    margin: auto;
    background: transparent;
    z-index: 5;
}
.popup_lich_su {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity ease-in .3s;
}
.popup_lich_su.active {
    opacity: 1;
    visibility: visible;
}
.popup_lich_su_wrap {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    position: relative;
    max-width: 500px;
    max-height: 50vh;
    overflow-y: auto;
    margin: auto;
    box-shadow: 0 0 10px black;
    transform: scale(0);
    transition: transform ease-in .3s;
    position: relative;
}
.popup_lich_su.active .popup_lich_su_wrap {
    transform: scale(1);
}
.lich_su_item_inner.active .tieu_de_ls, .lich_su_item_inner:hover .tieu_de_ls {
    box-shadow: 0 0 10px var(--primary-color);
}
.lich_su_item_inner.active .diamond_item, .lich_su_item_inner:hover .diamond_item {
    background: var(--primary-color);
}
.lich_su_item_inner.active .nam_ls, .lich_su_item_inner:hover .nam_ls {
    color: var(--primary-color);
}
.lich_su_item_inner.active .line_item, .lich_su_item_inner:hover .line_item {
    border-color: var(--primary-color);
}
/* 	 */
.popup_content p:last-child {
    margin-bottom: 0;
}

/* 	 */
.lds-ellipsis {
    position: relative;
    width: 64px;
    height: 64px;
    margin: auto;
}

.lds-ellipsis div {
    position: absolute;
    top: 27px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3498db;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 6px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 6px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 26px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 45px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(19px, 0);
    }
}

@media (max-width: 549px){
    .popup_lich_su {
        padding: 0 10px;
    }

    .popup_lich_su_wrap {
        min-width: 100%;
    }
    .lich_su_item_inner {
        width: 180px;
    }
    .tieu_de_ls {
        padding: 5px 10px !important;
    }
}