.jpro-header-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 44px;
    height: 44px;
    margin: 0;
    overflow: visible;
}

.jpro-header-search,
.jpro-header-search * {
    box-sizing: border-box;
}

.jpro-header-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.jpro-header-search__panel {
    position: absolute;
    top: 50%;
    right: 44px;
    width: 0;
    height: 42px;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-50%);
    transition: width 0.22s ease, opacity 0.16s ease;
    pointer-events: none;
}

.jpro-header-search.is-open .jpro-header-search__panel {
    width: 280px;
    opacity: 1;
    pointer-events: auto;
}

.jpro-header-search__input {
    width: 100%;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(20, 20, 20, 0.16);
    border-radius: 999px;
    outline: 0;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jpro-header-search__input:focus {
    border-color: #f26a21;
    box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.14), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.jpro-header-search__input::placeholder {
    color: #777777;
}

.jpro-header-search__toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111111;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.jpro-header-search__toggle:hover,
.jpro-header-search__toggle:focus {
    background: rgba(0, 0, 0, 0.06);
    color: #f26a21;
}

.jpro-header-search__icon {
    display: block;
    width: 40px;
    height: 40px;
}

@media (max-width: 768px) {
    .jpro-header-search.is-open .jpro-header-search__panel {
        width: min(240px, calc(100vw - 90px));
    }
}
