.eo-header-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    --eo-expanded-width: 260px;
    --eo-icon-color: #ffffff;
    --eo-input-bg: rgba(255, 255, 255, 0.15);
    --eo-input-color: #ffffff;
    --eo-placeholder-color: rgba(255, 255, 255, 0.7);
    --eo-border-radius: 999px;
}

.eo-header-search .eo-search-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.eo-header-search .eo-search-icon {
    font-size: 1.1rem;
    line-height: 1;
    color: var(--eo-icon-color);
}

.eo-header-search .eo-search-form {
    position: relative;
    display: inline-flex;
    align-items: center;
    opacity: 0;
    width: 0;
    max-width: 100%;
    overflow: hidden;
    transform-origin: left center;
    transition:
        width 0.25s ease,
        opacity 0.2s ease;
}

.eo-header-search .eo-search-field {
    width: 100%;
    padding: 0.5rem 0.8rem;
    border-radius: var(--eo-border-radius);
    border: none;
    background: var(--eo-input-bg);
    color: var(--eo-input-color);
    font-size: 0.9rem;
    outline: none;
}

.eo-header-search .eo-search-field::placeholder {
    color: var(--eo-placeholder-color);
}

/* Expanded state */
.eo-header-search.is-open .eo-search-form {
    opacity: 1;
    width: var(--eo-expanded-width);
}

/* Small devices */
@media (max-width: 767px) {
    .eo-header-search.is-open .eo-search-form {
        width: min(90vw, var(--eo-expanded-width));
    }
}
