.y-ep {
    --y-ep-bg:        #ffffff;
    --y-ep-secondary: #f2f2f7;
    --y-ep-text:      #000000;
    --y-ep-accent:    #007aff;

    display: flex;
    flex-direction: column;
    position: absolute;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--y-ep-secondary);
    width: 400px;
    height: 500px;
    background: var(--y-ep-bg);
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, .11);
    z-index: 10000;
    transition: opacity .15s ease, transform .15s ease;
}

.y-ep.is-hidden {
    opacity: 0;
    transform: scale(.97);
    pointer-events: none;
}

@media (max-width: 768px) {
    .y-ep {
        top: unset !important;
        right: unset !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100%;
        position: fixed;
        border-radius: 0;
        background: none;
        backdrop-filter: blur(100px);
    }
}

.y-ep *,
.y-ep ::before,
.y-ep ::after {
    box-sizing: content-box;
}

.y-ep__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    flex-shrink: 0;
}

.y-ep__title {
    font-weight: 700;
    margin: 0;
}

.y-ep__close {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--y-ep-text);
    padding: 0;
    border-radius: 100%;
    font-size: 20px;
    opacity: .3;
    transition: opacity .2s;
    margin: -5px;
    cursor: pointer;
}

.y-ep__close:hover {
    opacity: 1;
}

.y-ep__divider {
    width: 100%;
    height: 1px;
    background-color: var(--y-ep-secondary);
    flex-shrink: 0;
}

.y-ep__categories-wrap {
    padding: 8px 15px;
    flex-shrink: 0;
}

.y-ep__categories {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.y-ep__category {
    font-size: 20px;
    opacity: .3;
    transition: opacity .2s, transform .2s;
    height: 25px;
    color: var(--y-ep-text);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.y-ep__category .material-symbols-rounded {
    font-size: 20px;
}

.y-ep__category:hover {
    opacity: 1;
    transform: scale(1.1);
}

.y-ep__category.is-active {
    opacity: 1;
    color: var(--y-ep-accent);
    transform: scale(1.1);
}

.y-ep__search-wrap {
    padding: 8px 15px;
    flex-shrink: 0;
}

.y-ep__search-inner {
    display: flex;
    align-items: center;
    background: var(--y-ep-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    overflow: hidden;
    gap: 5px;
}

.y-ep__search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--y-ep-text);
    font-size: 18px;
    user-select: none;
    flex-shrink: 0;
}

.y-ep__search {
    flex: 1;
    min-width: 0;
    background: var(--y-ep-secondary);
    margin: 0;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--y-ep-text);
}

.y-ep__search::placeholder {
    color: var(--y-ep-text);
    opacity: .4;
}

.y-ep__body {
    position: relative;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.y-ep__lists {
    height: 100%;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #d5d5d5 #f1f1f1;
    padding: 0 15px;
}

.y-ep__lists::-webkit-scrollbar {
    width: 6px;
}

.y-ep__lists::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 100px;
}

.y-ep__lists::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 100px;
}

.y-ep__lists::-webkit-scrollbar-thumb:hover {
    background: #a7a7a7;
}

.y-ep__list {
    display: none;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
    flex-wrap: wrap;
    height: max-content;
    padding-bottom: 20px;
}

.y-ep__sep {
    width: 100%;
    font-weight: 700;
    font-size: 12px;
    margin: 8px 0 2px;
    color: var(--y-ep-text);
    opacity: .45;
}

.y-ep__emoji {
    display: block;
    width: 25px;
    height: 25px;
    padding: 3px;
    border-radius: 5px;
    transition: background .15s;
    cursor: pointer;
    object-fit: contain;
}

.y-ep__emoji:hover {
    background: var(--y-ep-secondary);
}

.y-ep__gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    pointer-events: none;
    background: linear-gradient(0deg, var(--y-ep-bg), transparent);
    z-index: 2;
    transition: height .3s;
}

.y-ep__gradient.is-loading {
    height: 200px;
}

.y-ep__loader {
    display: none;
    position: absolute;
    bottom: 16px;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border: 2px solid var(--y-ep-secondary);
    border-top-color: var(--y-ep-accent);
    border-radius: 50%;
    animation: y-ep-spin .6s linear infinite;
    z-index: 3;
}

@keyframes y-ep-spin {
    to {
        transform: rotate(360deg);
    }
}

.y-ep__variants {
    position: fixed;
    background: var(--y-ep-bg, #fff);
    border: 1px solid var(--y-ep-secondary, #e0e0e0);
    border-radius: 10px;
    padding: 4px;
    display: flex;
    flex-wrap: wrap;
    max-width: 320px;
    gap: 2px;
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, .15);
    z-index: 9999;
}