.searcher-section {
    padding-top: 0px;
    overflow: hidden;
    position: relative;

    &.searcher-complete {
        border-radius: 24px;

        .title-section {
            color: white;
        }

        .searcher-form {
            .filters {
                .btn {
                    color: #FFF;
                    border-radius: 4px;
                    background: rgba(151, 168, 187, 0.40);

                    &:hover,
                    &:active,
                    &.active {
                        border-radius: 4px;
                        background: var(--Secundario-2, #008CB7);
                    }
                }
            }
        }
    }

    .searcher-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .wp {
        position: relative;
        z-index: 1;
    }

    .searcher-form {
        max-width: 687px;
        width: 100%;
        text-align: center;
        margin: 0 auto;
        padding: 0 38px;

        .filters {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-bottom: 20px;

            .btn {
                width: auto;
                color: var(--primary-color);
                background-color: #D1D5DB;
                border: 0;
                height: 42px;
                padding: 7px 20px;
                font-weight: 400;

                &:hover,
                &:active,
                &.active {
                    background-color: var(--primary-color);
                    color: #FFF;
                }

            }
        }

        .searcher-simple,
        .searcher-pn {
            input {
                display: flex;
                width: 590px;
                height: 60px;
                padding: 1px 38px;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 10px;

                border-radius: 15px;
                border: 1px solid #F3F4F6;
                background: #FFF;

                &::placeholder {
                    color: #D4D4D4;
                    text-align: center;
                    font-family: Lato;
                    font-size: 16px;
                    font-style: italic;
                    font-weight: 400;
                    line-height: 35px;
                }
            }
        }

        .searcher-file {
            border-radius: 15px;
            border: 1px solid #F3F4F6;
            background: #FFF;
            display: flex;
            width: 590px;
            /* height: 105px; */
            padding: 1px 38px;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 10px;
            position: relative;

            .file-input {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                opacity: 0;
                cursor: pointer;
                z-index: 1;
            }

            label {
                color: #A1A1A1;
                text-align: center;
                font-family: Lato;
                font-size: 16px;
                font-style: italic;
                font-weight: 400;
                line-height: 35px;
            }

            .file-preview {
                width: 100%;
                border: 1px solid #ccc;
                padding: 1rem;
                margin-top: 1rem;
                max-height: 200px;
                overflow: auto;
                white-space: pre-wrap;
                font-family: monospace;
                font-size: 0.9rem;
                overflow-y: scroll;
                position: relative;
                z-index: 2;
            }
        }

        .searcher-paste {
            display: flex;
            width: 590px;
            height: 105px;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
            border-radius: 13px;
            border: 1px solid var(--Sombra-3, #C4CED8);
            background-color: white;

            textarea {
                width: 100%;
                height: 100%;
                padding: 10px;
                resize: none;
                border-radius: 13px;
                border: none;
                font-family: Lato;
                font-size: 16px;
                font-style: italic;
                font-weight: 400;
                line-height: 35px;
                color: #A1A1A1;
            }
        }

        .searcher-simple,
        .searcher-pn,
        .searcher-file,
        .searcher-paste {
            display: none;
            width: 100%;

            &.show {
                display: block;
            }
        }
    }
}


.results-list {
    .header-results-container {
        display: none;

        &.show {
            display: block;
        }
    }

    .header-results {
        display: flex;
        justify-content: space-between;

        .options {
            display: flex;
            align-items: center;
            gap: 20px;

            .dropdown {
                display: flex;
                align-items: center;
                gap: 5px;
                position: relative;

                .dropdown-toggle {
                    border-radius: 6px;
                    border: 1px solid #002A54;
                    background-color: transparent;
                    cursor: pointer;
                    display: flex;
                    padding: 7px 13px 7px 7px;
                    align-items: center;
                    gap: 15px;
                    transition: background-color 0.3s ease;

                    img {
                        width: 19px;
                        height: 19px;
                        transition: filter 0.3s ease, transform 0.3s ease;
                    }

                    .arrow-icon {
                        width: 10px;
                        height: 5px;
                        transition: transform 0.3s ease;
                    }

                    span {
                        color: #002A54;
                        font-size: 16px;
                        font-style: normal;
                        font-weight: 400;
                        line-height: normal;
                        transition: color 0.3s ease;
                    }

                    &.active {
                        background-color: var(--primary-color);

                        img {
                            filter: invert(1);
                        }

                        span {
                            color: #FFF;
                        }

                        .arrow-icon {
                            transform: rotate(180deg);
                        }
                    }
                }

                .dropdown-menu {
                    position: absolute;
                    top: 100%;
                    right: 0;
                    background-color: white;
                    border-radius: 8px;
                    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
                    padding: 10px 0;
                    z-index: 10;
                    opacity: 0;
                    visibility: hidden;
                    transition: opacity 0.3s ease, visibility 0.3s ease;

                    li {
                        padding: 10px;
                        transition: background-color 0.3s ease, color 0.3s ease;

                        &:hover {
                            background-color: var(--secondary-color);
                            color: #FFF;
                            cursor: pointer;
                        }
                    }

                    &.show {
                        opacity: 1;
                        visibility: visible;

                    }
                }
            }
        }
    }

    .reviews {
        &.products {
            .multi_reviews {
                &.search-result {
                    gap: 30px;
                }
            }
        }
    }
}

.section-search-results {
    padding-bottom: 40px;

    &.section-uploaded-purchase,
    &.section-search-products {
        display: none;
    }

    &.show {
        display: block;
    }
}


.container-col-uploaded-purchase {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;

    .col-uploaded-purchase {
        flex: 1;
        margin-right: 20px;

        &:last-child {
            margin-right: 0;
        }

        .reviews {
            &.products {
                .multi_reviews {
                    flex-wrap: wrap;
                    justify-content: space-between;

                    .container-review {
                        flex-basis: 48%;
                    }

                    &.search-result {
                        gap: 20px;
                    }
                }
            }
        }
    }

    h2 {
        color: var(--primary-color);
        font-size: 32px;
        font-style: normal;
        font-weight: 500;
        line-height: 36px;
        /* 112.5% */
        margin-bottom: 30px;
    }

    .title-section-uploaded-purchase {
        p {
            margin-bottom: 30px;
            color: var(--primary-color);
            font-size: 16px;
            font-style: normal;
            font-weight: 400;
            line-height: 20px;
            /* 125% */
        }
    }

}



.uploaded-purchase-section {
    .alert-warning {
        color: var(--secondary-color);
    }

    hr {
        margin: 30px 0;
        border-color: #D9D9D9;
    }

    .uploaded-purchase {
        margin-bottom: 30px;
        margin-top: 30px;

        .list-document {
            margin-bottom: 30px;
            overflow-y: scroll;
            max-height: 250px;
            width: 100%;
            padding-right: 4px;

            &::-webkit-scrollbar {
                width: 4px;
            }

            &::-webkit-scrollbar-thumb {
                background-color: #A1A1A1;
                border-radius: 10px;
            }

            .document-item {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 20px;

                .document-info {
                    width: 90%;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    flex-shrink: 0;
                    background-color: white;
                    border-radius: 8px;
                    padding: 10px;

                    .document-title {
                        flex: 1;
                        margin-right: 10px;
                        display: flex;
                        align-items: center;

                        img {
                            width: 52px;
                            height: 52px;
                            margin-right: 20px;
                        }

                        p {
                            color: var(--primary-color);
                            font-size: 16px;
                            font-style: normal;
                            font-weight: 700;
                            line-height: 18px;
                        }
                    }

                    .document-options {
                        display: none;
                        align-items: center;
                        gap: 10px;

                        .dropdown {
                            position: relative;
                            display: inline-block;
                            line-height: 100%;

                            .dropdown-toggle {
                                background-color: transparent;
                                border: none;
                                cursor: pointer;

                                img {
                                    width: 24px;
                                    height: 24px;
                                }
                            }

                            .dropdown-menu {
                                position: absolute;
                                top: 100%;
                                right: 0;
                                background-color: white;
                                border-radius: 8px;
                                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
                                padding: 10px;
                                z-index: 10;
                                display: none;

                                &.show {
                                    display: block;
                                }
                            }

                            &:hover .dropdown-menu {
                                display: block;
                            }
                        }
                    }
                }

                .del {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 32px;
                    height: 32px;
                    background-color: #F3F4F6;
                    border-radius: 50%;
                    cursor: pointer;

                    img {
                        width: 16px;
                        height: 16px;
                    }
                }
            }
        }
    }

    .review-order {
        h3 {
            color: var(--primary-color);
            font-size: 24px;
            font-style: normal;
            font-weight: 500;
            line-height: 28px;
            margin-bottom: 30px;
        }

        p {
            color: var(--primary-color);
            font-size: 16px;
            font-style: normal;
            font-weight: 400;
            line-height: 20px;
            margin-bottom: 20px;
        }
    }

    .table-review {
        margin-bottom: 30px;

        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 23px 14px;

            .checkbox-header {
                display: flex;
                align-items: center;

                input[type="checkbox"] {
                    width: 20px;
                    height: 20px;
                    margin-right: 10px;
                }

                label {
                    color: var(--primary-color);
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 16px;
                }
            }

            .actions {
                button {
                    background-color: transparent;
                    border: none;
                    cursor: pointer;
                    margin-left: 10px;

                    img {
                        width: 12px;
                        height: 12px;
                    }

                    span {
                        color: var(--primary-color);
                        text-align: center;
                        font-size: 14px;
                        font-style: normal;
                        font-weight: 400;
                        line-height: 16px;
                        margin-left: 5px;
                    }
                }
            }
        }

        .table-body {
            overflow-y: scroll;
            max-height: 400px;
            width: 100%;
            padding-right: 4px;

            &::-webkit-scrollbar {
                width: 4px;
            }

            &::-webkit-scrollbar-thumb {
                background-color: #A1A1A1;
                border-radius: 10px;
            }

            .item-list {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 23px 14px;
                background-color: white;

                &:nth-child(even) {
                    background-color: #E9ECF0;
                }

                label {
                    width: 80%;
                    display: flex;
                    align-items: center;

                    input {
                        width: 20px;
                        height: 20px;
                        margin-right: 10px;
                    }

                    span {
                        color: var(--primary-color);
                        font-size: 16px;
                        font-style: normal;
                        font-weight: 400;
                        line-height: 20px;
                        width: 100%;
                    }
                }

                .in-stock {
                    white-space: nowrap;
                }
            }
        }
    }
}

.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);

    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;

    &.show {
        display: flex;
        visibility: visible;
    }

    .bue {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 20px;
        cursor: pointer;
    }

    .modal-content {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        width: 350px;
        max-width: 90%;
        text-align: center;
        position: relative;
        box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3);

        h2 {
            font-family: Public Sans;
            font-weight: 500;
            font-style: Medium;
            font-size: 24px;
            color: var(--primary-color);
            line-height: 28px;
            letter-spacing: 0%;
            text-align: center;
            vertical-align: middle;
        }

        .texto {
            margin-top: 12px;
            margin-bottom: 12px;
            font-family: Public Sans;
            font-weight: 400;
            font-style: Regular;
            font-size: 16px;
            color: var(--primary-color);
            line-height: 20px;
            letter-spacing: 0%;
            text-align: center;
            vertical-align: middle;
            margin-bottom: 25px;
        }

        .text_contenedor {
            display: flex;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 10px;
            margin-bottom: 10px;
            column-gap: 10px;

            p {
                margin: 0;
            }

            .texto-instruccion {
                width: 100%;
                margin-top: 15px;
                padding: 12px;
                background-color: #fff3cd;
                border: 1px solid #ffc107;
                border-radius: 5px;
                color: #856404;
                font-size: 14px;
                line-height: 1.5;

                strong {
                    color: #664d03;
                }
            }
        }
    }

}

// Animación para destacar el botón Search después de subir archivo
.highlight-search {
    position: relative;
    animation: pulse-highlight 2s ease-in-out 3;

    &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        border-radius: inherit;
        animation: pulse-ring 2s ease-out infinite;
    }
}

@keyframes pulse-highlight {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 193, 7, 0.3);
    }
    100% {
        box-shadow: 0 0 0 30px rgba(255, 193, 7, 0);
    }
}

// Product excluded animation
.product-excluded {
    animation: fadeOutSlide 2s ease-out forwards;
}

@keyframes fadeOutSlide {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-20px);
    }
    100% {
        opacity: 0;
        transform: translateX(-40px);
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
}

// Product replaced animation
.product-replaced {
    animation: highlightReplace 1s ease-in-out;
}

@keyframes highlightReplace {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(34, 197, 94, 0.2);
    }
}

@media only screen and (min-width: 768px) and (max-width: 1200px) and (orientation: landscape) {
        .uploaded-purchase-section {
        .table-review {
            .table-body {
                .item-list {
                    label {
                        span {
                            width: 80%;
                        }
                    }
                }
            }
        }
    }
    .container-col-uploaded-purchase {
        & .col-uploaded-purchase {
            .reviews {
                &.products {
                    .multi_reviews {
                        .container-review {
                            flex-basis: 46%;
                        }
                    }
                }
            }
        }
    }
}

@media only screen and (min-width: 768px) and (max-width: 1200px) and (orientation: portrait) {
    .uploaded-purchase-section {
        .table-review {
            .table-body {
                .item-list {
                    label {
                        span {
                            width: 80%;
                        }
                    }
                }
            }
        }
    }
    .container-col-uploaded-purchase {
        & .col-uploaded-purchase {
            .reviews {
                &.products {
                    .multi_reviews {
                        .container-review {
                            flex-basis: 100%;
                        }
                    }
                }
            }
        }
    }

}

@media screen and (max-width: 768px) {

    .container-col-uploaded-purchase {
        & .col-uploaded-purchase {
            .reviews {
                &.products {
                    .multi_reviews {
                        .container-review {
                            flex-basis: 100%;
                        }
                    }
                }
            }
        }
    }

    .searcher-section {
        padding-top: 20px;

        .searcher-form {
            .filters {
                /* flex-direction: column; */
                gap: 10px;
            }

            .searcher-input {
                input {
                    width: 100%;
                    max-width: 100%;
                }
            }
        }
    }
}


@media screen and (max-width:576px) {

    .uploaded-purchase-section {
        .table-review {
            .table-body {
                .item-list {
                    label {
                        span {
                            width: 80%;
                        }
                    }
                }
            }
        }
    }

    .searcher-section {
        .searcher-form {

            .searcher-simple,
            .searcher-pn {
                input {
                    width: 100%;
                }
            }
        }
    }

    .container-col-uploaded-purchase {
        flex-direction: column;
        row-gap: 30px;

        & .col-uploaded-purchase {
            margin-right: 0;

            .reviews {
                &.products {
                    .multi_reviews {
                        .container-review {
                            flex-basis: 100%;
                        }

                        &.search-result {
                            width: 100%;
                        }
                    }
                }
            }
        }
    }
}