#market-selector-button-container {
    position: relative;
}

#open-market-selector {
    padding: 10px 10px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#open-market-selector svg {
    height: 20px;
}

#open-market-selector #selected-market-name {
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    gap: 5px;
}

#market-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#market-selector-content {
    position: relative;
    background-color: white;
    padding: 20px;
    max-width: 80%;
    width: 100%;
    max-height: 80%;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    gap: 20px;
    flex-direction: row;
    border-radius: 10px;
}

.market-column {
    flex: 1;
    border-right: 1px solid #ccc;
    padding-right: 20px;
}

.market-column#market-column-3 {
    border-right: none;
}

.market-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    height: auto;
    max-height: 100%;
    overflow-y: auto;
}

.market-column li {
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 20px;
}

.market-column li.selected {
    font-weight: bold;
}

.market-column li:last-of-type {
    margin-bottom: 0;
}

.market-column li:hover {
    opacity: .5;
}

#save-market-selection {
    position: absolute;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    right: 20px;
    bottom: 20px;
}

#save-market-selection:disabled {
    background-color: #cccccc;
    pointer-events: none;
}

.default-market {
    font-weight: bold;
}

#close-market-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#close-market-selector:before,
#close-market-selector:after {
    content: "";
    position: absolute;
    width: 120%;
    height: 2px;
    background-color: #0073aa;
    transform: rotate(45deg);
}

#close-market-selector:after {
    transform: rotate(-45deg);
}

#close-market-selector:hover {
    opacity: .5;
}

.adcmmm-list-header {
    font-size: 12px;
}
