@use '../utilities' as *;

.my-form-group {
    display: block;
    margin-bottom: 10px;
}

label {
    font-size: .75rem;
}

.widget select {
    width: 100%;
    display: block;
    padding: 5px;
    font-size: .85rem;
}

.wp-block-search__inside-wrapper {
    position: relative;
    width: auto;
    display: flex;
    align-items: center;
    gap: 0;
    border: none;
    border-radius: 2px;
    overflow: hidden;

    .wp-block-search__input {
        position: relative;
        padding: 10px 55px 10px 10px;
        width: 100%;
        margin-bottom: 0;
        border: 1px solid $border_color;
        border-radius: 0;
        border-top-left-radius: 2px;
        border-bottom-left-radius: 2px;
        box-shadow: 0 0 0.25rem rgba(80 80 80 / 20%);
        background-color: transparent;
        font-size: 0.85rem;
    }

    .wp-block-search__button {
        position: absolute;
        right: 0;
        height: 100%;
        padding: 15px;
        border: none;
        border-radius: 0;
        border-top-right-radius: 2px;
        border-bottom-right-radius: 2px;
        background-color: transparent;
        @include transition();
        font-weight: 400;
        font-size: 0.7rem;
        text-transform: uppercase;
        text-decoration: none;
        cursor: pointer;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;

        &:focus {
            outline: 2px solid;
            outline-color: #505050;
        }
    
        .search-icon {
            color: $secondary_black !important;
        }
    
        &:hover {
            background: transparent !important;
    
            .search-icon {
                color: $secondary_black !important;
            }
        }
    }
}

.slab-form {
    position: relative;
    width: auto;
    display: flex;
    align-items: center;
    gap: 0;
    border: none;
    border-radius: 2px;
    overflow: hidden;

    .input-field {
        position: relative;
        padding: 10px 40px 10px 10px;
        width: 100%;
        margin-bottom: 0;
        border: 1px solid $border_color;
        border-radius: 0;
        border-top-left-radius: 2px;
        border-bottom-left-radius: 2px;
        box-shadow: 0 0 0.25rem rgba(80 80 80 / 20%);
        background-color: transparent;
        font-size: 0.85rem;
    }

    .form-button {
        position: absolute;
        right: 0;
        height: 100%;
        padding: 15px;
        border: none;
        border-radius: 0;
        border-top-right-radius: 2px;
        border-bottom-right-radius: 2px;
        background-color: transparent;
        @include transition();
        font-weight: 400;
        font-size: 0.85rem;
        text-decoration: none;
        cursor: pointer;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;

        &:focus {
            outline: 2px solid;
            outline-color: #505050;
        }
    
        .search-icon {
            color: $secondary_black !important;
        }
    
        &:hover {
            background: transparent !important;
    
            .search-icon {
                color: $secondary_black !important;
            }
        }
    }
}

.top-header-search {
    width: 400px;
    max-width: 100%;
    
    .slab-form {
        width: 100%;
        max-width: 100%;
        border-radius: 100px;

        .input-field {
            border-radius: 100px;
        }

        .form-button {
            border: none;
            border-top-right-radius: 100px;
            border-bottom-right-radius: 100px;
    
            .search-icon {
                color: $secondary_white !important;
            }
        
            &:hover {
                background: transparent !important;
        
                .search-icon {
                    color: $secondary_white !important;
                }
            }
        }
    }
}