/* Base container for centering and responsive width */
.pls-container-8a52e32f {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* Pill-shaped search bar */
.pls-search-bar-8a52e32f {
    display: flex;
    align-items: center;
    border-radius: 50px;
    padding: 6px 6px 6px 25px;
    box-shadow: 0 4px 15px rgba(15, 56, 48, 0.15);
    transition: box-shadow 0.3s ease, width 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
}

.pls-search-bar-8a52e32f:focus-within {
    box-shadow: 0 6px 20px rgba(15, 56, 48, 0.25);
}

/* Input field */
.pls-input-8a52e32f {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    outline: none !important;
    font-size: 16px;
    font-family: inherit;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
    width: 100%;
}

.pls-input-8a52e32f::placeholder {
    color: #ffffff;
    opacity: 0.9;
    font-weight: 500;
}

/* Circular Search Button */
.pls-search-btn-8a52e32f {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    padding: 0;
    margin-left: 10px;
    flex-shrink: 0;
}

.pls-search-btn-8a52e32f svg {
    width: 16px;
    height: 16px;
}

.pls-search-btn-8a52e32f i {
    font-size: 16px;
}

.pls-search-btn-8a52e32f:hover {
    transform: scale(1.08);
}

/* Live Results Dropdown Overlay */
.pls-results-dropdown-8a52e32f {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 12px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.pls-results-dropdown-8a52e32f.pls-show-8a52e32f {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Result Item */
.pls-result-item-8a52e32f {
    display: block;
    padding: 16px 25px;
    color: #333333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.pls-result-item-8a52e32f:last-child {
    border-bottom: none;
}

.pls-result-item-8a52e32f:hover,
.pls-result-item-8a52e32f:focus {
    background-color: #f7f9fa;
    color: #0f3830;
    padding-left: 30px;
    outline: none;
}

/* Loading State inside dropdown */
.pls-loading-8a52e32f, .pls-no-results-8a52e32f {
    padding: 20px 25px;
    color: #777777;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .pls-container-8a52e32f {
        display: flex;
        justify-content: flex-end;
    }
    
    .pls-search-bar-8a52e32f {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        background-color: transparent !important;
        box-shadow: none;
        overflow: hidden;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .pls-input-8a52e32f {
        display: none;
        width: 0;
        opacity: 0;
        transition: width 0.3s ease, opacity 0.3s ease;
    }

    .pls-search-btn-8a52e32f {
        margin: 0;
        width: 44px;
        height: 44px;
        background-color: transparent !important; /* Force transparent initially */
    }

    /* Expanded state for mobile */
    .pls-container-8a52e32f.pls-mobile-expanded-8a52e32f .pls-search-bar-8a52e32f {
        width: 100%;
        border-radius: 50px;
        padding: 6px 6px 6px 25px;
        box-shadow: 0 4px 15px rgba(15, 56, 48, 0.15);
        justify-content: space-between;
        /* Background color will be applied via inline style from settings in JS, 
           falling back to default teal here if needed, but JS handles it better */
        background-color: #0f3830 !important; 
    }
    
    .pls-container-8a52e32f.pls-mobile-expanded-8a52e32f .pls-input-8a52e32f {
        display: block;
        width: 100%;
        opacity: 1;
    }
    
    .pls-container-8a52e32f.pls-mobile-expanded-8a52e32f .pls-search-btn-8a52e32f {
        margin-left: 10px;
        background-color: #13473d !important; /* Default accent, will be overridden by JS inline style */
    }

    .pls-results-dropdown-8a52e32f {
        top: calc(100% + 15px); /* Push below expanded bar */
    }
}