.LnjWFRAFghmeef {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.gQgHEjbdTD {
    display: flex;
    gap: 14px;
    align-items: center;
}

.xZlnzbTpMvZys7 {
    display: flex;
    align-items: center;
    gap: 5px;
    width: auto;
    border: 0.65px solid #784B8D;
    background-color: #1E002C;
    border-radius: 50px;
    padding: 13px 21px;
    transition: all 0.3s ease-in-out;
}

.QpCARUSO2OQ0L91 {
    width: 212px;
    color: #784B8D;
    font-size: 15px;
    transition: all 0.3s ease-in-out;
    background: transparent;
    outline: none;
    border: none;
}

.xZlnzbTpMvZys7:hover {
    border-color: #688fe9;
}

.QpCARUSO2OQ0L91:focus  {
    border-color: #688fe9;
    width: 471px;
    background: transparent;
}

.xZlnzbTpMvZys7 input::placeholder {
    color: inherit;
}

/* Button inside searchBlock form */
.xZlnzbTpMvZys7 button[type="submit"] {
    background: transparent;
    border: none;
    color: #784B8D;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    transition: color 0.3s ease-in-out;
    white-space: nowrap;
    font-weight: 500;
}

.xZlnzbTpMvZys7 button[type="submit"]:hover {
    color: #688fe9;
}

/* Slot Filter Form */
.RBfRSUJ17gC {
    display: flex;
    gap: 14px;
    align-items: center;
    position: relative;
}

.RBfRSUJ17gC select.qzxhPGQKcO70f {
    width: 155px;
    padding: 13px 14px;
    padding-right: 40px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    border: 0.65px solid #784B8D !important;
    border-radius: 50px !important;
    background-color: #1E002C !important;
    background-image: url('../img/icons/sort-arrow.svg') !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: auto !important;
    cursor: pointer;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -ms-appearance: none !important;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    height: auto;
    min-height: auto;
    -webkit-border-radius: 50px !important;
    -moz-border-radius: 50px !important;
    text-align: center;
}

/* Стилі для випадаючого списку select - адаптовано з sortMenu */
.RBfRSUJ17gC select.qzxhPGQKcO70f option {
    background: #000F31 !important;
    color: #8F9E7C !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    border: none !important;
}

/* Стилі для вибраної опції */
.RBfRSUJ17gC select.qzxhPGQKcO70f option:checked,
.RBfRSUJ17gC select.qzxhPGQKcO70f option:hover,
.RBfRSUJ17gC select.qzxhPGQKcO70f option:focus {
    background: rgba(8, 62, 188, 0.3) !important;
    color: #EFFFDA !important;
}

/* Стилі для першої опції (placeholder) */
.RBfRSUJ17gC select.qzxhPGQKcO70f option[value=""] {
    color: #8F9E7C !important;
}

/* Спроба стилізувати сам випадаючий список через псевдоелемент (працює не в усіх браузерах) */
.RBfRSUJ17gC select.qzxhPGQKcO70f::-webkit-select {
    background: #000F31 !important;
}

.RBfRSUJ17gC select.qzxhPGQKcO70f::-moz-select {
    background: #000F31 !important;
}

/* Додаткові стилі для кращого відображення */
.RBfRSUJ17gC select.qzxhPGQKcO70f optgroup {
    background: #000F31 !important;
    color: #8F9E7C !important;
    border: 0.65px solid #083EBC !important;
}

.RBfRSUJ17gC select.qzxhPGQKcO70f:hover {
    border-color: #688fe9 !important;
}

.RBfRSUJ17gC select.qzxhPGQKcO70f:focus {
    border-color: #688fe9 !important;
    outline: none !important;
    box-shadow: none !important;
    /* Змінюємо border-radius при відкритті, як у старого sortBtn.openSort */
    border-radius: 25px 25px 0 0 !important;
    -webkit-border-radius: 25px 25px 0 0 !important;
    -moz-border-radius: 25px 25px 0 0 !important;
}

/* Додаткові стилі для різних браузерів */
.RBfRSUJ17gC select.qzxhPGQKcO70f::-ms-expand {
    display: none !important;
}

.RBfRSUJ17gC select.qzxhPGQKcO70f::-webkit-select {
    background: #000F31 !important;
}

/* Button inside slotFilterForm - adapted from old filterBtn */
.RBfRSUJ17gC button[type="submit"] {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 155px;
    padding: 13px 14px;
    color: #ffffff;
    font-size: 15px;
    border: 0.65px solid #784B8D;
    border-radius: 50px;
    background: #1E002C;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-weight: 500;
}

.RBfRSUJ17gC button[type="submit"]:hover {
    border-color: #688fe9;
    color: #EFFFDA;
}


@media (max-width: 768px) {
    .LnjWFRAFghmeef {
        flex-direction: column;
        align-items: flex-start;
    }

    .gQgHEjbdTD {
        width: 100%;
        flex-direction: column;
        gap: 14px;
    }

    .xZlnzbTpMvZys7 {
        width: 100%;
    }

    .RBfRSUJ17gC {
        width: 100%;
        flex-direction: column;
        gap: 14px;
    }

    .RBfRSUJ17gC select.qzxhPGQKcO70f {
        width: 100%;
    }

    .RBfRSUJ17gC button[type="submit"] {
        width: 100%;
    }
}