/* Common Base Styles */
.jo-smart-search {
    position: relative;
    display: flex;
    align-items: center;
}

/* Search Style: Input — a simple always-visible search box, no toggle/modal/overlay */
.jo-smart-search-input-style {
    width: 100%;
}

.jo-smart-search-input-style .jo-search-form-static {
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
}

.jo-smart-search-input-style .jo-search-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.jo-smart-search-input-style .js-finder-search-query {
    flex: 1;
    height: 100%;
}

.jo-smart-search-input-style .awesomplete {
    flex: 1;
    width: 100%;
}

.jo-search-icon-wrapper {
    display: inline-block;
    position: relative;
    width: 1.8em;
    height: 1.8em;
    overflow: visible;
}

/* Search Icon Styles */
.jo-search-icon {
    cursor: pointer;
    font-size: 24px;
    color: #C0C0C0;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform-origin: center;
    will-change: transform;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.jo-search-icon:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.jo-search-form {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
    z-index: 99999;
}

.jo-search-form.active {
    opacity: 1;
    visibility: visible;
}

.jo-search-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 8px;
}

.jo-smart-search .js-finder-search-query {
    flex-grow: 1;
    border: none;
    outline: none;
    margin-right: 8px;
    font-size: 16px;
}

.jo-smart-search .btn-primary {
    padding: 5px 10px;
    font-size: 14px;
}

/* Style for the search icon button */
.jo-search-submit {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #007bff; /* Bootstrap primary blue */
    padding: 0;
}

.jo-search-submit:hover {
    color: #0056b3; /* Darker blue on hover */
}

/* Adjust alignment of the search icon within the input wrapper */
.jo-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between input and icon */
}

/* Ensure the search icon is vertically aligned with the input */
.jo-search-submit span.icon-search {
    vertical-align: middle;
}