.seopt-menu-item {
    align-self: center;
    list-style: none;
    margin-inline: .5rem;
}

.seopt-market {
    position: relative;
    font: inherit;
    z-index: 20;
}

.seopt-market[open] {
    z-index: 1002;
}

.seopt-market > summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    min-height: 44px;
    padding: .35rem .65rem;
    color: inherit;
    font: inherit;
    line-height: 1.2;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
}

.seopt-market > summary::-webkit-details-marker {
    display: none;
}

.seopt-market img {
    display: inline-block;
    flex: none;
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgb(20 29 28 / 14%);
}

.seopt-market-chevron {
    display: inline-block;
    flex: none;
    width: 6px;
    height: 6px;
    margin: -4px 2px 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.seopt-market[open] .seopt-market-chevron {
    margin-top: 2px;
    transform: rotate(225deg);
}

.seopt-market > ul.seopt-market-panel {
    display: block;
    position: absolute;
    inset-block-start: 100%;
    inset-inline-end: 0;
    z-index: 2;
    inline-size: min(17rem, 86vw);
    max-block-size: min(65vh, 29rem);
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: .35rem;
    list-style: none;
    text-align: start;
    background: #fff;
    color: #141d1c;
    border: 1px solid #e4e9e7;
    border-radius: .65rem;
    box-shadow: 0 10px 32px rgb(20 29 28 / 16%);
}

.seopt-market:not([open]) > ul.seopt-market-panel {
    display: none;
}

.seopt-market .seopt-market-panel > li {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seopt-market .seopt-market-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    min-height: 44px;
    padding: .4rem .6rem;
    border-radius: .35rem;
    color: #141d1c;
    font: 500 .9rem/1.2 Roboto, Arial, sans-serif;
    text-align: start;
    text-decoration: none;
}

.seopt-market a.seopt-market-option:hover,
.seopt-market .seopt-market-option[aria-current="true"] {
    background: #eaf5e6;
    color: #234619;
}

.seopt-market .seopt-market-option[aria-disabled="true"] {
    color: #66706d;
}

.seopt-market .seopt-market-label small {
    display: block;
    margin-top: .13rem;
    font-size: .79rem;
    font-weight: 400;
    color: #4a5754;
}

.seopt-market > summary:focus-visible,
.seopt-market a.seopt-market-option:focus-visible {
    outline: 2px solid #348027;
    outline-offset: -2px;
}

@media (max-width: 1024px) {
    .seopt-menu-item .seopt-market > ul.seopt-market-panel {
        position: static;
        inline-size: 100%;
        max-block-size: min(45vh, 22rem);
        margin-block: 0 .45rem;
        box-shadow: none;
    }

    .seopt-menu-item {
        align-self: stretch;
    }
}
