/* Dark-gold native + custom dropdowns for ladder / keys / armory */
.ladder-select,
.guild-select,
.ga-filter select,
.mythic-rating-server-form select {
    color-scheme: dark;
    accent-color: #d6a85f;
    background-color: #1a120c;
    color: #f4ead8;
    border-color: #866638;
}

.ladder-select option,
.guild-select option,
.ga-filter select option,
.mythic-rating-server-form select option {
    background-color: #1a120c;
    color: #f4ead8;
}

.ladder-select option:checked,
.guild-select option:checked,
.ga-filter select option:checked,
.mythic-rating-server-form select option:checked,
.ladder-select option:hover,
.guild-select option:hover,
.ga-filter select option:hover,
.mythic-rating-server-form select option:hover {
    background-color: #3d2a18;
    color: #fff0c8;
}

.iw-select {
    position: relative;
    display: inline-block;
    min-width: 220px;
    vertical-align: middle;
}

.iw-select select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.iw-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    background: #1a120c;
    border: 2px solid #866638;
    border-radius: 5px;
    color: #f4ead8;
    font: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

.iw-select-btn:hover,
.iw-select.is-open .iw-select-btn {
    border-color: #d6a85f;
    box-shadow: 0 0 0 1px rgba(214, 168, 95, .35);
}

.iw-select-btn::after {
    content: '';
    flex: 0 0 10px;
    width: 10px;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23d6a85f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

.iw-select-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 80;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    background: #1a120c;
    border: 1px solid #866638;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
}

.iw-select.is-open .iw-select-menu {
    display: block;
}

.iw-select-menu li {
    padding: 9px 14px;
    color: #f4ead8;
    cursor: pointer;
}

.iw-select-menu li:hover,
.iw-select-menu li.is-active {
    background: #3d2a18;
    color: #fff0c8;
}

.ladder-server-selector .iw-select,
.mythic-rating-server-form .iw-select {
    min-width: 240px;
}

@media (max-width: 700px) {
    .ladder-server-selector .iw-select,
    .mythic-rating-server-form .iw-select,
    .iw-select {
        display: block;
        width: 100%;
        min-width: 0;
    }
}
