
nav menuitem {
    position:relative;
    display:block;
    opacity:0;
    cursor:pointer;
}

nav menuitem > menu {
    position: absolute;
    pointer-events:none;
}
nav > menu {
    display:flex;
    height: 10px
}

nav > menu > menuitem { pointer-events: all; opacity:1; }
menu menuitem a { white-space:nowrap; display:block; }

menuitem:hover > menu {
    pointer-events:initial;
}
menuitem:hover > menu > menuitem,
menu:hover > menuitem{
    opacity:1;
}
nav > menu > menuitem menuitem menu {
    transform:translateX(100%);
    top:0; right:0;
}
/* User Styles Below Not Required */
/* User Styles Below Not Required */
/* User Styles Below Not Required */

nav {
    margin: 0 auto 0 auto;
}
hr {
    z-index: -10;
}

.menu-item {
    background:#FFF;
    min-width:190px;
    transition: background 0.7s, color 0.7s, transform 0.7s;
    margin:0px 0px 0px 0px;
    padding:4px 20px;
    box-sizing:border-box;
    position:relative;
    text-decoration: none;
    color: #070707;
}

.menu-item:hover:before {
    content: '';
    top:0;left:0;
    position:absolute;
    background:transparent;
    width:100%;
    height:100%;
}

nav > menu > menuitem > a + menu:after{
    content: '';
    position:absolute;
    border:0 solid transparent;
    border-top: 0px solid transparent;
    border-radius: 16px;

    left:12px;
    top: -40px;
    z-index: 100;
}
nav menuitem > menu > menuitem > a + menu:after{
    content: '';
    position:absolute;
    border:10px solid transparent;
    border-left: 10px solid white;
    top: 20px;
    left:-180px;
    transition: opacity 0.6s, transform 0s;
    z-index: 100;
}

nav > menu > menuitem > menu > menuitem{
    transition: transform 0.6s, opacity 0.6s;
    transform:translateY(0%);
    opacity:0;
}
nav > menu > menuitem:hover > menu > menuitem,
nav > menu > menuitem.hover > menu > menuitem{
    transform:translateY(0%);
    opacity: 1;
    z-index: 100;
}

menuitem > menu > menuitem > menu > menuitem{
    transition: transform 0.6s, opacity 0.6s;
    transform:translateX(60px) translateY(0%);
    opacity: 0;
}
menuitem > menu > menuitem:hover > menu > menuitem,
menuitem > menu > menuitem.hover > menu > menuitem{
    transform:translateX(0) translateY(0%);
    opacity: 1;
    z-index: 100;
}

/* specific to reply comment UGC */
menuitem > menu > menuitem > menu > menuitem{
    transition: transform 0.6s, opacity 0.6s;
    transform:translateX(60px) translateY(0%);
    opacity: 0;
}
menuitem > menu > menuitem:hover > menu > menuitem,
menuitem > menu > menuitem.hover > menu > menuitem{
    transform:translateX(0) translateY(0%);
    opacity: 1;
    z-index: 100;
}

.ks-three-dots {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border-radius: 999px;
    line-height: 1;
}
.ks-three-dots:hover {
    background-color: #F7F7F7;
}

.ks-comment-actions .ks-comment-actions-menu {
    position: relative;
}

.ks-comment-actions .ks-comment-actions-menu > menu {
    text-align: right;
    right: 0;
    left: auto;
    transform: none;
    background: #FFFFFF;
    /*border: 1px solid #f1f1f1;*/
    border-radius: 8px;
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ks-comment-actions .ks-comment-actions-menu:hover > menu,
.ks-comment-actions .ks-comment-actions-menu:focus-within > menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ks-comment-actions .ks-comment-actions-menu > menu > menuitem > a {
    min-width: 100px;
    right: 0;
}

/* === Comment editor modal: type selector (isolated) === */
/* Everything below is scoped to #ks-comment-editor-modal so it
   cannot affect the dropdown in comments.peb or replies.peb. */

#ks-comment-editor-modal .ks-comment-type-wrap nav {
    display: block;
}

/* Keep the top-level <menu> as block so items can stack */
#ks-comment-editor-modal .ks-comment-type-wrap > nav > menu {
    display: block;
    margin: 0;
    padding: 0;
}

/* Wrapper for the trigger button: anchor for the hover menu */
#ks-comment-editor-modal #ks-modal-comment-type-selector {
    position: relative;
    display: inline-block; /* left aligned */
}

/* Trigger button: use default sizing, no centering */
#ks-comment-editor-modal #ks-modal-comment-type-selector > .nav-link.nav-btn {
    display: inline-flex;
    width: auto;
    min-width: 150px;
    margin: 0;
    justify-content: center;
}

/* Dropdown: keep existing hover behavior, just shift it below the button */
#ks-comment-editor-modal #ks-modal-comment-type-selector:hover > menu {
    position: absolute;
    top: 100%;            /* directly under the button */
    left: 0;
    margin-top: 0;
    z-index: 1000;
}