/* Critical shell only. The full search panel stylesheet is loaded on first interaction. */
.kam-live-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    direction: rtl;
}

.kam-search-box-row {
    position: relative;
}

.kam-search-box {
    position: relative;
    z-index: 9999;
    display: flex;
    align-items: center;
    background-color: var(--kaman-color-border, #DBDBDB);
    border-radius: 12px;
    padding: 12px 16px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: text;
}

.kam-search-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-left: 15px;
    color: #717171;
}

.kam-search-icon path,
.kam-search-icon circle,
.kam-search-icon line,
.kam-search-icon polyline {
    stroke: currentColor;
}

.kam-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    font-family: inherit;
}

.kam-search-input::placeholder {
    color: #888;
}

.kam-search-clear {
    color: #999;
    cursor: pointer;
    padding: 0 5px;
    line-height: 0;
}

.kam-search-clear svg,
.kam-mobile-close-icon svg,
.kam-close-search-btn svg,
.kam-user-search-clear-all svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.kam-close-search-btn svg,
.kam-user-search-clear-all svg {
    flex: 0 0 18px;
}

.kam-mobile-close-icon {
    display: none;
}

@media (max-width: 768px) {
    .kam-search-box-row {
        z-index: 100000;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-direction: row-reverse;
    }

    .kam-search-box {
        position: static;
        flex: 1;
        margin: 0;
        right: auto;
        left: auto;
    }

    .kam-live-search-wrapper.kam-mobile-search-focused .kam-search-box {
        flex-basis: calc(100% - 42px);
    }

    .kam-mobile-close-icon {
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #000;
        cursor: pointer;
    }

    .kam-live-search-wrapper:not(.kam-mobile-search-focused) .kam-mobile-close-icon {
        display: none !important;
    }
}
