@font-face {
    font-family: 'ViewToggleIcons';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../webfonts/view-toggle-icons.woff2') format('woff2');
}

.grid-switch-menu .grid-icon,
.grid-switch-menu .list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 28px;
    min-height: 38px;
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    background-color: transparent;
    color: #1a1a1a;
    font-family: 'ViewToggleIcons', sans-serif;
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
}

.grid-switch-menu .grid-icon::before,
.grid-switch-menu .list-icon::before {
    display: block;
    line-height: 1;
}

.grid-switch-menu .grid-icon::before {
    content: '\f00a';
}

.grid-switch-menu .list-icon::before {
    content: '\f03a';
}

.grid-switch-menu .grid-icon.active,
.grid-switch-menu .list-icon.active {
    color: #ffffff;
    background-color: #6A11CF;
    padding: 5px;
    border-radius: 5px;
    min-width: auto;
    min-height: auto;
    width: auto;
    height: auto;
}

/* Night view: match country label gray (.dark-mode .dropdown .dropdown-toggle) */
html.dark-mode .grid-switch-menu .grid-icon:not(.active),
html.dark-mode .grid-switch-menu .list-icon:not(.active),
body.dark-mode .grid-switch-menu .grid-icon:not(.active),
body.dark-mode .grid-switch-menu .list-icon:not(.active) {
    color: #d1cbc1;
}
