/* Search Slide Widget - CS Elementor Widgets */
.cs-search-slide-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.cs-search-icon {
    position: relative;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.cs-search-form {
    position: absolute;
    z-index: 9999;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 0;
    transition: width 0.5s ease;
}

/* Position the form flush to the button based on slide direction */
.cs-search-slide-wrapper[style*="direction: ltr"] .cs-search-form {
    left: 100%;
}

.cs-search-slide-wrapper[style*="direction: rtl"] .cs-search-form {
    right: 100%;
}

.cs-search-input {
    padding: 5px;
    box-sizing: border-box;
    display: block;
    width: 100%;
}

.cs-search-icon i {
    font-size: 18px;
    transition: color 0.3s ease;
}

.cs-search-icon svg {
    width: 18px;
    height: 18px;
    transition: fill 0.3s ease;
}
