.search-input-wrapper {
    width: 100%;
    position: relative;
    display: flex;
}

.search-input-wrapper .search-image {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
}

.search-input-wrapper .txt-search {
    padding-right: 30px;
}


.form-searchbox-image {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background-color: #fff;
    min-height: 120px;
    z-index: 999;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    box-shadow: 0px 3px 12px 0px #0000001C;
    max-height: 80vh;
    overflow-y: auto;
    padding: 16px 20px;
    z-index: 12000;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease-in-out;
    min-width: 500px;
}

.form-searchbox-image.isImageVisible {
    opacity: 1;
    visibility: visible;
    top: 0;
}

.form-searchbox-image-title {
    display: block;
    text-align: left;
    margin-bottom: 10px;
    font-size: 15px;
}

.close-searchbox-image {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 8px;
    right: 16px;
    background-color: transparent;
    color: #999;
    cursor: pointer;
}
.close-searchbox-image:hover {
    color: #333;
}
.form-searchbox-image-content {
    padding: 0 16px;
    display: grid;
    text-align: center;
    max-width: fit-content;
    font-size: 15px;
}

.form-searchbox-image-content-wrapper {
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    border: 1px dashed #e1e1e1;
    background-color: #f6f6f6;
    border-radius: 9px;
    position: relative;
}

.form-searchbox-image-content-wrapper.isDrag {
    border-color: #333;
    background: #e1e1e1;
    transition: .3s ease;
}

.form-searchbox-image-content-wrapper.isDrag .searchbox-image-or span {
    background: #e1e1e1;
}

.dragImageInput {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.form-searchbox-image-gr {
    margin: 0;
    align-items: center;
    grid-gap: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
}

.form-searchbox-image-input {
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    outline: 0;
    line-height: 1;
    padding: 10px 10px 10px 32px;
    width: 100%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    font-weight: 500;
    font-size: 16px;
    transition: all 222ms ease-in-out;
    -webkit-transition: all 222ms ease-in-out;
    -moz-transition: all 222ms ease-in-out;
    -ms-transition: all 222ms ease-in-out;
    -o-transition: all 222ms ease-in-out;
}
.form-searchbox-image-btn {
    border-radius: 5px;
    border: 1px solid var(--primary);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    background-color: var(--primary);
    padding: 10px 12px;
    line-height: 1;
    outline: 0;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 222ms ease-in-out;
    -webkit-transition: all 222ms ease-in-out;
    -moz-transition: all 222ms ease-in-out;
    -ms-transition: all 222ms ease-in-out;
    -o-transition: all 222ms ease-in-out;
}
.dragImageLabel:hover {
    border-color: #333;
}
.form-searchbox-image-input:hover {
    border-color: #333;
}
.form-searchbox-image-btn:hover {
    color: #fff;
    background-color: var(--primary-dk);
}
.dragImageLabelLoading {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 11px;
    grid-gap: 12px;
    color: var(--primary);
    font-weight: 400;
    cursor: default;
    z-index: 9;
}

.dragImageLabelLoader {
    display: block;
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(farthest-side,var(--primary) 94%,#0000) top/4px 4px no-repeat,
    conic-gradient(#0000 30%,var(--primary));
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 4px),#000 0);
    animation: l13 1s infinite linear;
}
@keyframes l13{ 
    100%{transform: rotate(1turn)}
}

.form-searchbox-image-result-wrapper .search-empty {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-searchbox-image-result-wrapper .search-empty p {
    font-size: 15px;
}

.choose-file-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    grid-gap: 4px;
}

.choose-file-wrapper > div {
    display: flex;
    align-items: center;
    grid-gap: 4px;
}

.choose-file-wrapper .dragImageLabel {
    cursor: pointer;
    color: var(--primary);
    margin-bottom: 0;
    font-weight: 400;
}

.choose-file-wrapper .dragImageLabel:hover {
    color: var(--primary-dk);
}

.searchbox-image-or {
    margin: 12px 0;
    position: relative;
}

.searchbox-image-or span {
    font-size: 13px;
    color: #aaa;
    padding: 0 6px;
    background: #f6f6f6;
    position: relative;
    z-index: 2;
}

.searchbox-image-or::before {
    content: "";
    width: 100%;
    height: 1px;
    background: #aaa;
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 1;
}

.form-searchbox-image-input-wrapper {
    position: relative;
}

.form-searchbox-image-input-wrapper svg {
    position: absolute;
    top: 11px;
    left: 10px;
}

.form-searchbox-image-result {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 24px 16px;
    text-align: left;
}

.result-item-image {
    background-color: var(--multiply, #f8f8f8);
    text-align: center;
    display: block;
    position: relative;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.result-item-image img {
    margin: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.result-item-image::after {
    content: "";
    padding-bottom: 100%;
    display: block;
}

.result-item-title {
    line-height: 17px;
    font-size: 14px;
    margin: 6px 0;
    color: var(--dark);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 34px;
}

.result-item-discount {
    background: var(--price);
    color: #fff !important;
    padding: 5px 7px;
    width: 36px;
    height: 36px;
    border-radius: 36px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 12px !important;
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 1;
    pointer-events: none;
    font-weight: 700;
}

.result-item {
    position: relative;
    width: calc((100% - 32px) / 3);
}

.result-item-price {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 2px;
    flex-direction: column;
}

.result-item-new-price {
    font-size: calc(16px + (19 - 16) * ((100vw - 300px) / (1920 - 300)));
    color: #f30;
    margin-right: 4px;
    line-height: 1;
}

.result-item-old-price {
    color: #595959;
    font-size: 14px;
    text-decoration: line-through;
    display: inline-block;
    line-height: 1;
}

.result-item-title:hover {
    color: var(--primary);
}

@media((min-width: 760px) and (max-width: 1180px) and (orientation: portrait)) {
    #search-header .search-input-wrapper .txt-search {
        padding-right: 26px;
    }
}
