/* Live Search Results Widget — 5708 */

.lsr-5708-wrap {
    position: relative;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.lsr-5708-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lsr-5708-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    color: #419D79;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

.lsr-5708-input {
    width: 100%;
    padding: 12px 44px 12px 42px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #494949;
    background-color: #ffffff;
    border: 2px solid #419D79;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lsr-5708-input:focus {
    box-shadow: 0 0 0 3px rgba(65, 157, 121, 0.18);
}

.lsr-5708-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

/* Spinner */
.lsr-5708-spinner {
    position: absolute;
    right: 14px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(65, 157, 121, 0.3);
    border-top-color: #419D79;
    border-radius: 50%;
    display: none;
    animation: lsr5708spin 0.7s linear infinite;
}

.lsr-5708-wrap.lsr-5708-loading .lsr-5708-spinner {
    display: block;
}

@keyframes lsr5708spin {
    to { transform: rotate(360deg); }
}

/* Dropdown */
.lsr-5708-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(65, 157, 121, 0.25);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    z-index: 9999;
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}

.lsr-5708-dropdown.lsr-5708-open {
    display: block;
}

/* Editor preview hint */
.lsr-5708-preview-hint {
    display: block;
    position: static;
    border: 1px dashed rgba(65, 157, 121, 0.4);
    margin-top: 6px;
}

/* Result Items */
.lsr-5708-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.lsr-5708-item:last-child {
    border-bottom: none;
}

.lsr-5708-item:hover {
    background-color: #f5faf8;
}

.lsr-5708-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.lsr-5708-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.lsr-5708-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #494949;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.lsr-5708-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #419D79;
    line-height: 1.2;
}

.lsr-5708-item-price del {
    color: #aaa;
    font-weight: 400;
    margin-right: 4px;
}

.lsr-5708-item-price ins {
    text-decoration: none;
}

/* No results */
.lsr-5708-no-results {
    padding: 16px 14px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

/* View All */
.lsr-5708-view-all {
    display: block;
    padding: 11px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #A10953;
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    transition: opacity 0.15s ease;
    letter-spacing: 0.02em;
}

.lsr-5708-view-all:hover {
    opacity: 0.8;
}
