
/* options dropdown */

.sh-more-trigger {
    cursor: pointer;
}

.sh-more-trigger i {
    pointer-events: none;
}

.sh-more-trigger[aria-expanded="true"] {
    color: #ffffff;
}

/* Main dropdown */
.sh-more-menu {
    position: fixed;
    z-index: 100000;
    width: min(230px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow-y: none;
    box-sizing: border-box;
    background: #202124;
    color: #e8e8ec;
    border: 1px solid #393b42;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
    padding: 5px 0;
    font-family: inherit;
}

.sh-more-menu[hidden] {
    display: none !important;
}


/* Arrow connected directly to the three dots */
.sh-more-menu::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    background: inherit;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 1;
}

/* Menu appears to the right of the dots */
.sh-more-menu[data-placement="right"]::after {
    left: -6px;
    top: var(--sh-arrow-y, 50%);
    transform: translateY(-50%) rotate(45deg);
}

/* Menu appears to the left of the dots */
.sh-more-menu[data-placement="left"]::after {
    right: -6px;
    top: var(--sh-arrow-y, 50%);
    transform: translateY(-50%) rotate(45deg);
}

/* Narrow-screen fallback */
.sh-more-menu[data-placement="below"]::after {
    top: -6px;
    left: var(--sh-arrow-x, 50%);
    transform: translateX(-50%) rotate(45deg);
}

.sh-more-menu[data-placement="above"]::after {
    bottom: -6px;
    left: var(--sh-arrow-x, 50%);
    transform: translateX(-50%) rotate(45deg);
}


/* Star rating row */
.sh-more-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 12px 10px;
    border-bottom: 1px solid #36383f;
}


/* Star rating with half-star support */
.sh-more-star {
    position: relative;
    display: inline-block;
    flex: 0 0 32px;
    width: 32px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.sh-more-star:hover {
    transform: scale(1.08);
}

.sh-star-empty,
.sh-star-filled {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sh-star-empty svg,
.sh-star-filled svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.sh-star-empty {
    color: #55565c;
}

.sh-star-filled {
    width: 100%;
    color: #500101;
    clip-path: inset(0 calc(100% - var(--sh-star-fill, 0%)) 0 0);
}

/* Menu options */
.sh-more-options {
    display: flex;
    flex-direction: column;
}

.sh-more-options button {
    display: block;
    width: 100%;
    padding: 11px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #34363c;
    text-align: center;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    color: #d0d1d7;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.sh-more-options button:last-child {
    border-bottom: none;
}

.sh-more-options button:hover,
.sh-more-options button:focus-visible {
    background: #34363e;
    color: #ffffff;
    outline: none;
}

/* Placeholder message */
.sh-more-note {
    margin: 0;
    padding: 10px 12px;
    border-top: 1px solid #34363c;
    color: #b4b5bf;
    text-align: center;
    font-size: 11px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sh-more-menu {
        width: min(220px, calc(100vw - 24px));
    }

    .sh-more-options button {
        padding: 12px 10px;
        font-size: 13px;
    }
}

