:root {
    --pop-menu-content-padding: 6px;
    --pop-menu-item-height: 33px;
    --pop-menu-item-border-radius: calc(var(--pop-menu-item-height) / 2);
}

.pop-menu-wrp {
    display: flex;
    flex-direction: column;
    position: fixed;
    max-width: 320px;
    border-radius: calc(var(--pop-menu-item-border-radius) + var(--pop-menu-content-padding));
    background-color: var(--accent-color-surface-l2);
    box-shadow: var(--color-media-shadow);
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    -webkit-transition: opacity 0.15s ease;
    -moz-transition: opacity 0.15s ease;
    -ms-transition: opacity 0.15s ease;
    -o-transition: opacity 0.15s ease;
    transition: opacity 0.15s ease;
}

.pop-menu-visible {
    opacity: 1;
    pointer-events: auto;
}

.pop-menu-scroll {
    display: block;
    overflow: auto;
    min-height: 0;
}

.pop-menu-layout {
    display: flex;
    gap: var(--main-gap);
    flex-direction: column;
    padding: var(--pop-menu-content-padding);
}

.pop-menu-item-btn {
    display: flex;
    width: 100%;
    min-height: var(--pop-menu-item-height);
    text-align: left;
    align-items: center;
    border-radius: var(--pop-menu-item-border-radius);
    background: transparent;
    padding: 7px 8px;
    border: none;
    -webkit-transition: background-color 0.15s ease;
    -moz-transition: background-color 0.15s ease;
    -ms-transition: background-color 0.15s ease;
    -o-transition: background-color 0.15s ease;
    transition: background-color 0.15s ease;
}

.pop-menu-item-btn:hover,
.pop-menu-item-btn:focus {
    background-color: var(--accent-color-soft-l1);
}

.pop-menu-item-selected {
    background-color: var(--accent-color-soft-l2);
}

.pop-menu-item-layout {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.pop-menu-item-icon-wrp,
.pop-menu-item-txt-wrp {
    opacity: var(--color-neutral-l2-alpha);
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-transition: opacity 0.15s ease;
    -moz-transition: opacity 0.15s ease;
    -ms-transition: opacity 0.15s ease;
    -o-transition: opacity 0.15s ease;
    transition: opacity 0.15s ease;
}

.pop-menu-item-btn:hover .pop-menu-item-icon-wrp,
.pop-menu-item-btn:hover .pop-menu-item-txt-wrp,
.pop-menu-item-btn:focus .pop-menu-item-icon-wrp,
.pop-menu-item-btn:focus .pop-menu-item-txt-wrp,
.pop-menu-item-selected .pop-menu-item-icon-wrp,
.pop-menu-item-selected .pop-menu-item-txt-wrp {
    opacity: 1;
}

.pop-menu-item-icon-wrp {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

.pop-menu-item-icon {
    color: var(--color-neutral-l1);
    width: 100%;
    height: 100%;
    -webkit-transition: color 0.15s ease;
    -moz-transition: color 0.15s ease;
    -ms-transition: color 0.15s ease;
    -o-transition: color 0.15s ease;
    transition: color 0.15s ease;
}

.pop-menu-item-btn:hover .pop-menu-item-icon,
.pop-menu-item-btn:focus .pop-menu-item-icon,
.pop-menu-item-selected .pop-menu-item-icon {
    color: var(--accent-color-ink);
}

.pop-menu-item-txt-wrp {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.pop-menu-item-txt-wrp:first-child {
    padding-left: 6px;
}

.pop-menu-item-txt-wrp:last-child {
    padding-right: 6px;
}

.pop-menu-item-txt {
    display: block;
    color: var(--color-neutral-l1);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.1px;
    word-wrap: break-word;
    word-break: break-word;
}

.pop-menu-item-selected .pop-menu-item-txt {
    font-weight: 600;
    letter-spacing: 0px;
}

.pop-menu-item-label-area {
    display: table;
}

.pop-menu-item-label-wrp {
    display: table;
    background-color: var(--color-control-red);
    border-radius: 999px;
    padding: 2.5px 5px;
    box-shadow: var(--color-media-shadow-sm);
}

.pop-menu-item-label-txt {
    display: block;
    min-width: 7.5px;
    color: var(--color-ink-on-control);
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0px;
    white-space: nowrap;
}