.search_field_wrapper {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    background-color: #fff;
}
.search_field_wrapper .search-form-group {
    margin-right: 6px;
}
.search_field_wrapper input {
    width: 100%;
}
.search_field_wrapper input,
.search_field_wrapper select {
    border: 0;
    background-color: #fff;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
}    
.shared-primary-search {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    padding: 6px;
    border-radius: 8px;
    background-color: #ef8062;
    box-sizing: border-box;
}

.shared-primary-search__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 1.65fr) minmax(220px, 1fr) minmax(220px, 1fr) 62px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    background-color: #fff;
    overflow: visible;
}

.shared-primary-search__keyword,
.shared-primary-search__select {
    min-width: 0;
    border-right: 1px solid #d1d5db;
}

.shared-primary-search__input,
.shared-primary-search .mega-select__trigger {
    width: 100%;
    min-height: 54px;
    padding: 10px 18px;
    border: 0;
    background: #fff;
    color: #1f2937;
    font-size: 15px;
    font-weight: 500;
}

.shared-primary-search__input::placeholder {
    color: #b8bdc3;
}

.shared-primary-search__input {
    border-radius: 8px 0 0 8px;
}

.shared-primary-search__submit {
    padding: 0;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: #fff;
    color: #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shared-primary-search__submit:hover {
    color: #366f90;
}

.shared-primary-search__submit i {
    font-size: 29px;
}

.mega-select {
    position: static;
}

.mega-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.mega-select__trigger {
    position: relative;
    padding-right: 42px !important;
    text-align: left;
    cursor: pointer;
}

.mega-select__trigger::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s ease;
}

.mega-select.is-open .mega-select__trigger::after {
    transform: translateY(-25%) rotate(225deg);
}

.mega-select__panel {
    display: none;
    position: absolute;
    z-index: 40;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: min(56vh, 560px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(31, 41, 55, .2);
}

.mega-select.is-open .mega-select__panel {
    display: block;
}

.mega-select__search {
    position: relative;
    width: 100%;
    margin-bottom: 9px;
}

.mega-select__panel .mega-select__search input {
    width: 100%;
    height: 34px !important;
    min-height: 34px !important;
    padding: 6px 36px 6px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #374151;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    outline: none;
    box-shadow: none;
}

.mega-select__panel .mega-select__search input:focus {
    border-color: #ef8062 !important;
    box-shadow: 0 0 0 3px rgba(239, 128, 98, .13);
}

.mega-select__panel .mega-select__search input::-webkit-search-cancel-button {
    display: none;
}

.mega-select__search-clear {
    display: none;
    position: absolute;
    top: 50%;
    right: 5px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    transform: translateY(-50%);
    cursor: pointer;
}

.mega-select__search.has-value .mega-select__search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-select__search-clear:hover {
    background: #fff1ed;
    color: #b94f35;
}

.mega-select__search-clear i {
    font-size: 17px;
}

.mega-select__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px 18px;
}

.mega-select__grid.mega-select__grid--categories {
    display: block !important;
    width: 100%;
}

.mega-select__grid--categories .mega-select__option--all {
    display: block;
    min-height: 32px;
    margin-bottom: 8px;
}

.mega-select__category-columns {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.mega-select__category-column {
    min-width: 0;
}

.mega-select__category-block {
    width: 100%;
    min-width: 0;
    margin-bottom: 9px;
}

.mega-select__category-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    margin-bottom: 3px;
}

.mega-select__category-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
}

.mega-select__category-heading .mega-select__option {
    min-height: 30px;
    padding: 5px 6px;
    color: #252b31;
    font-size: 14px;
    font-weight: 700;
}

.mega-select__option {
    width: 100%;
    min-height: 28px;
    padding: 4px 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #374151;
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.mega-select__option:hover,
.mega-select__option:focus-visible {
    background: #fff1ed;
    color: #b94f35;
    outline: none;
}

.mega-select__option.is-selected {
    background: #ef8062;
    color: #fff !important;
    font-weight: 700;
}

.mega-select__grid--categories .mega-select__option--child {
    width: calc(100% - (var(--category-depth, 1) * 15px));
    min-height: 25px;
    margin-left: calc(var(--category-depth, 1) * 15px);
    padding: 3px 6px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.2;
}

@media(max-width: 991px) {
    .shared-primary-search__inner {
        grid-template-columns: 1fr 1fr 54px;
    }

    .shared-primary-search__keyword {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 1px solid #d1d5db;
    }

    .shared-primary-search__input {
        border-radius: 8px 8px 0 0;
    }

    .mega-select__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mega-select__category-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 560px) {
    .shared-primary-search__inner {
        display: flex;
        flex-direction: column;
    }

    .shared-primary-search__keyword,
    .shared-primary-search__select {
        border-right: 0;
        border-bottom: 1px solid #d1d5db;
    }

    .shared-primary-search__submit {
        min-height: 46px;
        border-radius: 0 0 8px 8px;
    }

    .mega-select {
        position: relative;
    }

    .mega-select__panel {
        top: 100%;
        padding: 14px;
    }

    .mega-select__grid {
        grid-template-columns: 1fr;
    }

    .mega-select__category-columns {
        grid-template-columns: 1fr;
    }
}
