/* ui-button */
.ui-button {
    font-family: inherit;
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    display: block;
    width: max-content;
    background-color: rgba(35, 32, 32, 1);
    border: none;
    cursor: pointer;
    transition: color .2s ease-in-out, background-color .2s ease-in-out;
}

.ui-button.ui-button--secondary {
    color: rgba(57, 54, 54, 1);
    background-color: rgba(248, 248, 248, 1);
}

.ui-button.ui-button--brand {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(220, 69, 136, 1);
}

.ui-button.ui-button--ghost {
    color: rgba(57, 54, 54, 1);
    background-color: rgba(255, 255, 255, 1);
}

.ui-button[disabled] {
    color: rgba(189, 188, 188, 1);
    background-color: rgba(248, 248, 248, 1);
    pointer-events: none;
    user-select: none;
}

@media (hover: hover) {
    .ui-button:hover {
        background-color: rgba(57, 54, 54, 1);
    }

    .ui-button.ui-button--secondary:hover {
        background-color: rgba(244, 244, 244, 1);
    }

    .ui-button.ui-button--brand:hover {
        background-color: rgba(176, 55, 109, 1);
    }

    .ui-button.ui-button--ghost:hover {
        background-color: rgba(244, 244, 244, 1);
    }
}

@media (hover: none) {
    .ui-button:active {
        background-color: rgba(57, 54, 54, 1);
    }

    .ui-button.ui-button--secondary:active {
        background-color: rgba(244, 244, 244, 1);
    }

    .ui-button.ui-button--brand:active {
        background-color: rgba(176, 55, 109, 1);
    }

    .ui-button.ui-button--ghost:active {
        background-color: rgba(244, 244, 244, 1);
    }
}

/* ui-link */
.ui-link {
    font-family: inherit;
    color: rgba(57, 54, 54, 1);
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease-in-out;
}

.ui-link.ui-link--secondary {
    color: rgba(167, 166, 166, 1);
}

.ui-link.ui-link--brand {
    color: rgba(220, 69, 136, 1);
}

@media (hover: hover) {
    .ui-link:hover,
    .ui-link.ui-link--secondary:hover {
        color: rgba(220, 69, 136, 1);
    }

    .ui-link.ui-link--brand:hover {
        color: rgba(176, 55, 109, 1);
    }
}

@media (hover: none) {
    .ui-link:active,
    .ui-link.ui-link--secondary:active {
        color: rgba(220, 69, 136, 1);
    }

    .ui-link.ui-link--brand:active {
        color: rgba(176, 55, 109, 1);
    }
}

/* ui-input */
.ui-input {
    font-family: inherit;
    font-size: 16px;
    line-height: 20px;
    color: inherit;
    min-width: 0;
    border: 1px solid rgba(233, 233, 233, 1);
    border-radius: 8px;
    transition: border-color .2s ease-in-out;
    padding: 13px 16px;
}

.ui-input::placeholder {
    color: rgba(167, 166, 166, 1);
}

@media (hover: hover) {
    .ui-input:hover {
        border-color: rgba(211, 210, 210, 1);
    }
}

.ui-input:focus {
    border-color: rgba(35, 32, 32, 1);
}

.ui-input:disabled {
    background-color: rgba(248, 248, 248, 1);
}

@media screen and (max-width: 1439px) and (min-width: 1024px) {
    .ui-input {
        font-size: 11px;
        line-height: 13px;
        border-radius: 5px;
        padding: 9px 11px;
    }
}

/* ui-input-wrapper */
.ui-input-wrapper {
    position: relative;
}

.ui-input-wrapper.ui-input-wrapper--search {

}

.ui-input-wrapper .ui-input-wrapper__input {
    width: 100%;
}

.ui-input-wrapper.ui-input-wrapper--search .ui-input-wrapper__input {
    padding: 13px 50px 13px 16px;
}

.ui-input-wrapper.ui-input-wrapper--search .ui-input-wrapper__icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

@media screen and (max-width: 1439px) and (min-width: 1024px) {
    .ui-input-wrapper.ui-input-wrapper--search .ui-input-wrapper__input {
        padding: 9px 33px 9px 11px;
    }

    .ui-input-wrapper.ui-input-wrapper--search .ui-input-wrapper__icon {
        right: 11px;
        width: 16px;
        height: 16px;
    }
}

/* ui-checkbox */
.ui-checkbox {
    display: flex;
    align-items: center;
    grid-gap: 12px;
    cursor: pointer;
}

.ui-checkbox .ui-checkbox__input {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.ui-checkbox .ui-checkbox__square {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    width: 30px;
    background-color: rgba(244, 244, 244, 1);
    border-radius: 8px;
    transition: background-color .2s ease-in-out;
}

@media (hover: hover) {
    .ui-checkbox:hover .ui-checkbox__square {
        background-color: rgba(233, 233, 233, 1);
    }
}

.ui-checkbox .ui-checkbox__input:checked + .ui-checkbox__square {
    background-color: rgba(35, 32, 32, 1);
}

.ui-checkbox .ui-checkbox__icon {
    opacity: 0;
    transition: opacity .2s ease-in-out;
}

.ui-checkbox .ui-checkbox__input:checked + .ui-checkbox__square .ui-checkbox__icon {
    opacity: 1;
}

.ui-checkbox .ui-checkbox__text {
    font-size: 16px;
    line-height: 20px;
}

@media screen and (max-width: 1439px) and (min-width: 1024px) {
    .ui-checkbox {
        grid-gap: 8px;
    }

    .ui-checkbox .ui-checkbox__square {
        width: 20px;
        border-radius: 5px;
    }

    .ui-checkbox .ui-checkbox__text {
        font-size: 11px;
        line-height: 13px;
    }
}

/* ui-switch */
.ui-switch {
    display: flex;
    align-items: center;
    grid-gap: 12px;
    cursor: pointer;
}

.ui-switch .ui-switch__input {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.ui-switch .ui-switch__inner {
    position: relative;
    display: block;
    width: 48px;
    height: 30px;
    background-color: rgba(233, 233, 233, 1);
    border-radius: 20px;
    transition: background-color .2s ease-in-out;
}

.ui-switch .ui-switch__input:checked + .ui-switch__inner {
    background-color: rgba(35, 32, 32, 1);
}

.ui-switch .ui-switch__caret {
    position: absolute;
    top: 15px;
    left: 15px;
    transform: translate(-50%, -50%);
    aspect-ratio: 1 / 1;
    width: 18px;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 50%;
    transition: left .2s ease-in-out, width .2s ease-in-out;
}

@media (hover: hover) {
    .ui-switch:hover .ui-switch__caret {
        width: 22px;
    }
}

.ui-switch .ui-switch__input:checked + .ui-switch__inner .ui-switch__caret {
    left: 33px;
    width: 22px;
}

.ui-switch .ui-switch__text {
    font-size: 16px;
    line-height: 20px;
}

@media screen and (max-width: 1439px) and (min-width: 1024px) {
    .ui-switch {
        grid-gap: 8px;
    }

    .ui-switch .ui-switch__inner {
        width: 32px;
        height: 20px;
        border-radius: 13px;
    }

    .ui-switch .ui-switch__caret {
        top: 10px;
        left: 10px;
        width: 12px;
    }

    @media (hover: hover) {
        .ui-switch:hover .ui-switch__caret {
            width: 15px;
        }
    }

    .ui-switch .ui-switch__input:checked + .ui-switch__inner .ui-switch__caret {
        left: 22px;
        width: 15px;
    }

    .ui-switch .ui-switch__text {
        font-size: 11px;
        line-height: 13px;
    }
}

/* ui-chip */
.ui-chip {
    position: relative;
    cursor: pointer;
}

.ui-chip .ui-chip__input {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.ui-chip .ui-chip__wrapper {
    display: flex;
    align-items: center;
    grid-gap: 4px;
    background-color: rgba(248, 248, 248, 1);
    border-radius: 100px;
    transition: color .2s ease-in-out, background-color .2s ease-in-out;
    padding: 8px 12px;
}

.ui-chip .ui-chip__input:checked + .ui-chip__wrapper {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(35, 32, 32, 1);
}

.ui-chip .ui-chip__text {
    font-size: 16px;
    line-height: 20px;
}

.ui-chip .ui-chip__close {
    display: none;
}

.ui-chip .ui-chip__input:checked + .ui-chip__wrapper .ui-chip__close {
    display: block;
}

/* ui-sort */
.ui-sort {

}

.ui-sort .ui-sort__button {
    font-size: 16px;
    line-height: 20px;
    white-space: nowrap;
    width: 100%;
    border-radius: 100px;
    padding: 13px 16px;
}

@media screen and (max-width: 1439px) and (min-width: 1024px) {
    .ui-sort .ui-sort__button {
        font-size: 11px;
        line-height: 13px;
        border-radius: 66px;
        padding: 9px 11px;
    }
}

@media screen and (max-width: 1023px) {
    .ui-sort .ui-sort__button {
        font-size: 14px;
        line-height: 16px;
        padding: 15px;
    }
}

/* ui-sort-dropdown */
.ui-sort-dropdown {
    position: relative;
}

.ui-sort-dropdown.hidden {
    opacity: 0;
    visibility: hidden;
}

.ui-sort-dropdown .ui-sort-dropdown__modal {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1;
    display: grid;
    grid-gap: 2px;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(244, 244, 244, 1);
    border-radius: 12px;
    padding: 8px;
}

.ui-sort-dropdown .ui-sort-dropdown__close {
    display: none;
}

.ui-sort-dropdown .ui-sort-dropdown__link {
    font-size: 16px;
    line-height: 20px;
    white-space: nowrap;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    grid-gap: 8px;
    width: 100%;
    border-radius: 8px;
    padding: 12px 8px 12px 16px;
}

.ui-sort-dropdown .ui-sort-dropdown__link-input {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.ui-sort-dropdown .ui-sort-dropdown__link-icon {
    opacity: 0;
}

.ui-sort-dropdown .ui-sort-dropdown__link-input:checked + .ui-sort-dropdown__link-icon {
    opacity: 1;
}

@media screen and (max-width: 1439px) and (min-width: 1024px) {
    .ui-sort-dropdown .ui-sort-dropdown__modal {
        top: calc(100% + 5px);
        border-radius: 8px;
        padding: 5px;
    }

    .ui-sort-dropdown .ui-sort-dropdown__link {
        font-size: 11px;
        line-height: 13px;
        grid-gap: 5px;
        border-radius: 5px;
        padding: 8px 5px 8px 11px;
    }

    .ui-sort-dropdown .ui-sort-dropdown__link-icon {
        width: 16px;
        height: 16px;
    }
}

@media screen and (max-width: 1023px) {
    .ui-sort-dropdown {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1001;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        height: 100dvh;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        overflow: hidden;
        padding-bottom: 20px;
        transition: background-color .2s ease-in-out, pointer-events .2s ease-in-out;
    }

    .ui-sort-dropdown.hidden {
        background-color: transparent;
        pointer-events: none;
        opacity: 1;
        visibility: visible;
    }

    .ui-sort-dropdown .ui-sort-dropdown__modal {
        position: relative;
        top: unset;
        right: unset;
        z-index: unset;
        width: 100%;
        max-width: 380px;
        border: none;
        border-radius: 20px;
        transition: transform .2s ease-in-out;
        padding: 24px 8px 8px;
    }

    .ui-sort-dropdown.hidden .ui-sort-dropdown__modal {
        transform: translateY(calc(100% + 20px));
    }

    .ui-sort-dropdown .ui-sort-dropdown__close {
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        width: calc(100% - 16px);
        background-color: transparent;
        border: none;
        padding: 0;
    }

    .ui-sort-dropdown .ui-sort-dropdown__close:before {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background-color: rgba(233, 233, 233, 1);
        border-radius: 4px;
    }
}

@media screen and (max-width: 767px) {
    .ui-sort-dropdown {
        padding-bottom: unset;
    }

    .ui-sort-dropdown .ui-sort-dropdown__modal {
        max-width: unset;
        border-radius: 20px 20px 0 0;
    }

    .ui-sort-dropdown.hidden .ui-sort-dropdown__modal {
        transform: translateY(100%);
    }
}

/* .ui-range */
.ui-range {
    display: grid;
    grid-gap: 16px;
}

.ui-range .ui-range__slider {
    padding: 19px 0;
}

.ui-range .slider {
    position: relative;
    height: 2px;
    background-color: rgba(35, 32, 32, 1);
    padding: 0 30px;
    touch-action: pan-y;
}

.ui-range .slider::before,
.ui-range .slider::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background-color: rgba(233, 233, 233, 1);
}

.ui-range .slider::before {
    left: 0;
}

.ui-range .slider::after {
    right: 0;
}

.ui-range .handler {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    width: calc(100% - 60px);
    height: 40px;
    cursor: pointer;
}

.ui-range .ui-range__slider .blackoutLeft,
.ui-range .ui-range__slider .blackoutRight {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background-color: rgba(233, 233, 233, 1);
}

.ui-range .ui-range__slider .blackoutLeft {
    left: 0;
}

.ui-range .ui-range__slider .blackoutRight {
    right: 0;
}

.ui-range .ui-range__slider ins {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: block;
    height: 30px;
    width: 30px;
    background-color: rgba(35, 32, 32, 1);
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 50%;
    cursor: pointer;
}

.ui-range .ui-range__slider .left {
    right: 0;
}

.ui-range .ui-range__slider .right {
    left: 0;
}

.ui-range .ui-range__inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 8px;
}

.ui-range .ui-range__inputs.ui-range__inputs--hidden {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

@media screen and (max-width: 1439px) and (min-width: 1024px) {
    .ui-range {
        grid-gap: 11px;
    }

    .ui-range .ui-range__slider {
        padding: 13px 0;
    }

    .ui-range .slider {
        padding: 0 20px;
    }

    .ui-range .slider::before,
    .ui-range .slider::after {
        width: 20px;
    }

    .ui-range .handler {
        width: calc(100% - 40px);
        height: 26px;
    }

    .ui-range .ui-range__slider ins {
        height: 20px;
        width: 20px;
    }

    .ui-range .ui-range__inputs {
        grid-gap: 5px;
    }
}