.tne-search-widget,
.tne-search-widget * {
    box-sizing: border-box;
}

.tne-search-widget {
    display: block;
    line-height: 1;
}

.tne-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3efed;
    color: #777;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: transform .22s ease, background-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.tne-search-toggle:hover,
.tne-search-toggle:focus {
    outline: none;
    transform: translateY(-1px);
}

.tne-search-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.tne-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tne-search-icon i,
.tne-search-icon svg {
    display: block;
}

.tne-search-icon svg {
    width: 1em;
    height: 1em;
}

.tne-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, .25);
    transition: opacity .28s ease, visibility .28s ease;
}

.tne-search-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.tne-search-panel {
    position: relative;
    width: 100%;
    background: #fff;
    padding: 32px 24px;
    transform: translateY(-105%);
    transition: transform .34s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .10);
}

.tne-search-overlay.is-open .tne-search-panel {
    transform: translateY(0);
}

.tne-search-form {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.tne-search-field-form {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0;
}

.tne-search-field-box {
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    border: 1px solid rgba(217, 181, 109, .65);
    border-radius: 10px;
    background: #081826;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.tne-search-field-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    color: #d9b56d;
    font-size: 15px;
    line-height: 1;
}

.tne-search-field-icon i,
.tne-search-field-icon svg {
    display: block;
}

.tne-search-field-icon svg {
    width: 1em;
    height: 1em;
}

.tne-search-input {
    display: block;
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #f7f7f7;
    color: #222;
    font-size: 18px;
    line-height: 1.4;
    outline: none;
    direction: rtl;
    text-align: right;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.tne-search-field-input {
    height: 100%;
    padding: 0 14px 0 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    box-shadow: none;
}

.tne-search-input::placeholder {
    color: #888;
    opacity: 1;
}

.tne-search-input:focus {
    border-color: rgba(0, 0, 0, .25);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .06);
}

.tne-search-field-input:focus {
    box-shadow: none;
}

.tne-search-field-box:focus-within {
    border-color: rgba(217, 181, 109, .95);
    box-shadow: 0 0 0 3px rgba(217, 181, 109, .14);
}

.tne-search-results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: 420px;
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

.tne-search-results.is-visible {
    display: block;
}

.tne-search-results-list {
    display: flex;
    flex-direction: column;
}

.tne-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    transition: background-color .18s ease;
}

.tne-search-result-item:last-child {
    border-bottom: 0;
}

.tne-search-result-item:hover,
.tne-search-result-item:focus {
    background: rgba(0, 0, 0, .035);
    text-decoration: none;
    outline: none;
}

.tne-search-result-image {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.tne-search-result-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tne-search-result-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.tne-search-result-title {
    display: block;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.tne-search-result-price {
    display: block;
    color: #111;
    font-size: 13px;
    line-height: 1.5;
}

.tne-search-results-message {
    padding: 12px 14px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
    text-align: right;
}

.tne-search-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color .2s ease, transform .2s ease;
}

.tne-search-close:hover,
.tne-search-close:focus {
    background: rgba(0, 0, 0, .06);
    outline: none;
}

.tne-search-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.tne-search-close svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

body.tne-search-lock {
    overflow: hidden;
}

@media (max-width: 767px) {
    .tne-search-panel {
        padding: 26px 16px 22px;
    }

    .tne-search-input {
        height: 52px;
        font-size: 16px;
        padding: 0 16px;
    }

    .tne-search-field-box {
        height: 44px;
    }

    .tne-search-field-input {
        height: 100%;
        font-size: 13px;
    }

    .tne-search-close {
        top: 8px;
        right: 8px;
    }
}
