.search-list-page {
    margin-top: 24px !important;
}
.search-list-page > div,
.st-Main p {
    margin-top: 0px !important;
}

.quantity-sort {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: fit-content;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.quantity-sort .search-quantity {
    color: var(--indigo-700);
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    margin-top: 5px !important;
}
.sort-list {
    display: flex;
    height: 26px;
    gap: 16px;
    align-items: center;
}
.sort-item {
    display: flex;
    gap: 4px;
    cursor: pointer;
    align-items: center;
}
.sort-item a {
    height: 100%;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-top: 0px;
    color: var(--indigo-700);
    line-height: 20px;
    font-size: 18px;
    font-weight: 500;
}
.search-item {
    padding: 24px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0px 4px 16px 0px #0040E229;
    position: relative;
}

.favourite-search-item {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 150px;
    height: 40px;
    border-radius: 8px;
    padding: 8px 16px;
    border: 1px solid var(--indigo-700);
}

.favourite-search-item.active img {
    content: url("/img/search/active-favourite.png");
}

.favourite-search-item img {
    width: 24px;
    height: 24px;
}

.favourite-search-item:hover span {
    color: #615EA8;
}

.st-Main h2 {
    padding: 0 0 .5rem 0; }

.search-item h2 {
    color: var(--indigo-700);
    font-size: 24px;
    font-weight: 700;
    position: relative;
    padding: 0 0 .5rem 0; }
.search-item h2:before, .search-item h2:after {
    content: "";
    display: block;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 2px; }
.search-item h2::before {
    background-color: var(--indigo-700);
    width: 100%; }
.search-item h2::after {
    background-color: var(--indigo-700);
    width: 100%; }
.search-infor div {
    border-bottom: 1px dashed var(--indigo-100);
}
.search-infor div:last-child {
    border-bottom: none;
}
.infor-row {
    min-height: 48px;
}
.infor-title {
    background-color: #FEFCF3;
    font-size: 16px;
    font-weight: 700;
    min-width: 22%;
    padding: 12px 0 12px 12px;
    line-height: 22.4px;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
}
.infor-desc {
    font-size: 16px;
    font-weight: 400;
    padding: 12px 0 12px 12px;
    line-height: 22.4px;
    display: flex;
    align-items: center;
    margin-top: 0 !important;
}

.infor-desc a {
    color: #003ACE;
}

.list-search-items {
    display: flex;
    flex-direction: column;
    margin-top: 24px !important;
}

.list-search-items > *:not(:first-child) {
    margin-top: 28px;
}

.popup {
    position: fixed;
    bottom: 120px;
    right: 30px;
    cursor: pointer;
    z-index: 9999;
}
.st-Main h2 {
    padding-left: 0px !important;
    padding-right: 0px !important;
    padding-bottom: .5rem !important;
}
.custom-icon{
    width: 24px !important;
}
@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .custom-line-left {
        transform: rotate(10deg);
        width: 6%;
    }
    .custom-line-right {
        transform: rotate(-8deg);
        width: 6%;
    }
}

@media screen and (max-width: 767px) {
    .custom-icon{
        width: 20px !important;
    }
    .cus-image{
        display: block !important;
    }
    
    .myPage .myPage__detail-question .myPage__detail-question-content > div:last-child > div:first-child .line-left.custom {
        content: url("/img/common/img_line_left.svg");
    }

    .myPage .myPage__detail-question .myPage__detail-question-content > div:last-child > div:first-child .right-left.custom {
        content: url("/img/common/img_line_right.svg");
    }
    .search-item {
        padding: 16px;
    }
    .quantity-sort {
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: start !important;
        gap: 0 !important;
    }
    .quantity-sort > *:not(:first-child) {
        margin-top: 16px;
    }
    .sort-list {
        gap: 0 !important;
    }
    .sort-list > *:not(:first-child) {
        margin-left: 8px;
    }
    .sort-item p {
        font-size: 14px;
    }
    .search-item h2 {
        font-size: 20px;
    }
    .infor-row {
        min-height: 36px;
    }
    .infor-title {
        min-width: 40%;
        font-size: 14px;
        padding: 8px 0 8px 12px;
    }
    .infor-desc {
        padding: 8px 0 8px 12px;
        font-size: 14px !important;
    }
    .popup {
        display: none;
    }
    .sort-item a {
        font-size: 14px;
    }
    .quantity-sort .search-quantity {
        font-size: 16px;
    }

    .custom-line-left {
        transform: rotate(10deg);
        width: 18%;
    }
    .custom-line-right {
        transform: rotate(-8deg);
        width: 18%;
    }
}

@media screen and (max-width: 767px) {
    .favourite-search-item {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 132px;
        height: 30px;
        padding: 4px 12px;
    }

    .favourite-search-item span {
        font-size: 14px;
        font-weight: 700;
    }
}

button.disabled {
    background: #F5F5F5 !important;
    color: #B8B8B8 !important;
    border: 1px solid #D9D9D9 !important;
    cursor: not-allowed !important;
}

.favourite-list-redirect-container.intersecting {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-direction: column;
    border-radius: 12px;
    background-color: var(--white);
    min-height: 108px;
    height: fit-content;
}

.favourite-list-redirect-container.not-intersecting {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    box-shadow: 0px 2px 16px 0px #00000040;
    z-index: 1;
}

.favourite-list-redirect-container .favourite-list-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1132px;
    margin: 0 auto;
    height: 108px;
}

.favourite-list-redirect-container .favourite-list-wrapper a {
    padding: 0 10px;
}



.st-formBack label[for="all-check"]::before {
    border: 1px solid var(--indigo-700);
}

.st-formBack input[id="all-check"]:hover + label::before {
    border: 1px solid var(--indigo-700) !important;
}

label[for^="item-"] {
    font-size: 18px !important;
    font-weight: 500 !important;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .favourite-list-redirect-container .favourite-list-wrapper { 
        height: 100px;
    }
    .favourite-list-redirect-container.not-intersecting .favourite-list-wrapper {
        max-width: 640px;
    }

    .favourite-list-redirect-container.intersecting .favourite-list-wrapper {
        max-width: 640px;
        padding: 24px;
    }

    .favourite-search-item { 
        top: 24px;
        right: 24px;
    }

    .quantity-sort {
        justify-content: space-between !important;
        align-items: flex-end;
    }

    .sort-list {
        gap: 12px;
    }

    .sort-item a {
        font-size: 18px;
    }

    .custom-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .quantity-sort .search-quantity {
        font-size: 16px;
    }

    #actions-btn button[type="submit"] {
        font-size: 20px !important; 
    }
}

@media screen and (max-width: 767px) {
    .favourite-list-redirect-container .favourite-list-wrapper { 
        height: 92px;
    }

    .favourite-list-redirect-container.not-intersecting .favourite-list-wrapper {
        max-width: 343px;
    }

    label[for^="item-"] {
        font-size: 16px !important;
        font-weight: 400 !important;
    }
}


@media screen and (max-width: 374px) {
    #Main.myPage,
    #Main.st-Main {
        padding: 0 10px !important;
        max-width: 100% !important;
    }

    .favourite-list-redirect-container .favourite-list-wrapper a {
        min-width: 272px !important;
        max-width: 272px;
        font-size: 18px !important;
    }
}