/* ============================================================
   Search Widget ITR — Frontend Styles
   ============================================================ */

/* ── Container ────────────────────────────────────────────── */
.itr-search-container {
    width: 100%;
}

.itr-search-form {
    width: 100%;
    margin: 0;
}

/* ── Wrap (flex row) ──────────────────────────────────────── */
.itr-search-wrap {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
	position: relative;

}


.itr-search-wrap::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    
    width: 18px;
    height: 18px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23666' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    
    background-size: contain;
    background-repeat: no-repeat;
}

/* ── Input ────────────────────────────────────────────────── */
.itr-search-input {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    line-height: 1.4;
    background-color: #fff;
    border: 1px solid #E6E6E5 !important;
    border-radius: 12px ;
    padding: 16px 35px !important;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.itr-search-input::placeholder {
    color: #aaa;
}

.itr-search-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.18);
}

/* Remove default clear (×) button in Chrome/Edge/IE */
.itr-search-input::-webkit-search-cancel-button,
.itr-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* ── Button ───────────────────────────────────────────────── */
.itr-search-button {
    flex-shrink: 0;
    padding: 10px 22px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.itr-search-button:hover {
    background-color: #005f8a;
}

.itr-search-button:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.itr-search-button:active {
    background-color: #004d70;
}

/* ── No-button mode ───────────────────────────────────────── */
.itr-no-button .itr-search-input {
    border-radius: 12px;
}

/* ── No results message ───────────────────────────────────── */
.itr-no-results {
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    font-size: 15px;
    color: #666;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
    margin-top: 12px;
    box-sizing: border-box;
}
