.wmx-coin-menu {
    --wmx-menu-ink: #253b4c;
    --wmx-menu-muted: #748493;
    --wmx-menu-line: #e6ebef;
    --wmx-menu-paper: #fff;
    --wmx-menu-wash: #f5f8fa;
    --wmx-menu-green: #13835e;
    --wmx-menu-red: #cf584f;
    width: 100%;
    color: var(--wmx-menu-ink);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
}

.wmx-coin-menu *,
.wmx-coin-menu *::before,
.wmx-coin-menu *::after {
    box-sizing: border-box;
}

.wmx-coin-menu [ng-cloak],
.wmx-coin-menu.ng-cloak {
    display: none !important;
}

.wmx-coin-menu__search {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--wmx-menu-line);
}

.wmx-coin-menu__search-label {
    display: block;
    margin: 0 0 5px;
    color: var(--wmx-menu-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wmx-coin-menu__search-input {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #d9e1e7;
    border-radius: 3px;
    outline: 0;
    background: var(--wmx-menu-paper);
    color: var(--wmx-menu-ink);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.wmx-coin-menu__search-input::placeholder {
    color: #9aa7b1;
}

.wmx-coin-menu__search-input:focus {
    border-color: #4a9b7d;
    box-shadow: 0 0 0 2px rgba(19, 131, 94, .13);
}

.wmx-coin-menu__section {
    border-bottom: 1px solid var(--wmx-menu-line);
}

.wmx-coin-menu__toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 11px 13px;
    border: 0;
    border-left: 3px solid transparent;
    background: var(--wmx-menu-paper);
    color: var(--wmx-menu-ink);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
}

.wmx-coin-menu__toggle:hover,
.wmx-coin-menu__toggle:focus {
    background: var(--wmx-menu-wash);
}

.wmx-coin-menu__toggle:focus-visible,
.wmx-coin-menu__item:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #297d66;
    outline-offset: -2px;
}

.wmx-coin-menu__toggle-copy {
    font-weight: 500;
}

.wmx-coin-menu__buy-word {
    margin-left: 4px;
    color: var(--wmx-menu-green);
    font-weight: 800;
    letter-spacing: .04em;
}

.wmx-coin-menu__sell-word {
    margin-left: 4px;
    color: var(--wmx-menu-red);
    font-weight: 800;
    letter-spacing: .04em;
}

.wmx-coin-menu__chevron {
    width: 7px;
    height: 7px;
    margin: -4px 2px 0 8px;
    transform: rotate(45deg);
    border-right: 1.5px solid #8897a3;
    border-bottom: 1.5px solid #8897a3;
    transition: transform .16s ease;
}

.wmx-coin-menu__toggle[aria-expanded="true"] .wmx-coin-menu__chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}

.wmx-coin-menu__content {
    padding: 0 7px 8px;
}

.wmx-coin-menu__list {
    margin: 0;
    padding: 0 !important;
    list-style: none;
}

.wmx-coin-menu__row {
    margin: 1px 0;
}

.wmx-coin-menu__item {
    display: flex;
    min-width: 0;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 7px;
    border-radius: 3px;
    color: inherit;
    text-decoration: none;
    transition: background-color .14s ease, color .14s ease;
}

.wmx-coin-menu__item:hover {
    background: #f1f6f4;
    color: #183f35;
    text-decoration: none;
}

.wmx-coin-menu__row.is-active > .wmx-coin-menu__item {
    background: #eaf3ef;
    box-shadow: inset 2px 0 #168461;
}

.wmx-coin-menu__asset {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.wmx-coin-menu__icon {
    position: relative;
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(35, 52, 66, .08);
    border-radius: 50%;
    background: rgba(84, 111, 124, .12);
    color: var(--coin-color, #506a78);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.wmx-coin-menu__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wmx-coin-menu__icon img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wmx-coin-menu__details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.22;
}

.wmx-coin-menu__name {
    overflow: hidden;
    color: #304555;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wmx-coin-menu__meta {
    margin-top: 3px;
    overflow: hidden;
    color: var(--wmx-menu-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wmx-coin-menu__price {
    flex: 0 0 auto;
    color: #18815e;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.wmx-coin-menu__price.is-empty {
    color: #9aa6ae;
    font-weight: 500;
}

.wmx-coin-menu__item--disabled {
    cursor: not-allowed;
    opacity: 1;
}

.wmx-coin-menu__item--disabled .wmx-coin-menu__name {
    color: #697783;
}

.wmx-coin-menu__reason {
    margin-top: 3px;
    color: #9a625b;
    font-size: 10px;
    line-height: 1.25;
}

.wmx-coin-menu__subheading {
    margin: 8px 7px 4px;
    color: var(--wmx-menu-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.wmx-coin-menu__wallets {
    margin: 6px 0 0;
    padding-top: 6px;
    border-top: 1px dashed var(--wmx-menu-line);
}

.wmx-coin-menu__empty {
    padding: 13px 9px;
    color: var(--wmx-menu-muted);
    font-size: 12px;
    text-align: center;
}

.wmx-coin-menu__partner {
    margin-top: 10px;
    border: 1px solid var(--wmx-menu-line);
    border-radius: 3px;
    background: #fbfcfc;
}

.wmx-coin-menu__partner h5 {
    margin: 0;
    padding: 9px 11px;
    border-bottom: 1px solid var(--wmx-menu-line);
    color: #435563;
    font-size: 12px;
    font-weight: 700;
}

.wmx-coin-menu__partner-body {
    padding: 10px 11px;
    color: #61717d;
    font-size: 11px;
    line-height: 1.55;
}

.wmx-coin-menu__partner-body a {
    color: #0a73bb;
    text-decoration: underline;
}

.wmx-coin-menu__partner-body img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .wmx-coin-menu {
        width: 100%;
    }

    .wmx-coin-menu__item {
        min-height: 48px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .wmx-coin-menu__price {
        font-size: 12px;
    }
}

/* Keep the trading menu and form readable on phones/tablets without altering desktop layout. */
@media (max-width: 991px) {
    body.xn-customer-ui #trade_coin > .row > .xn-coin-toggle {
        display: none !important;
    }

    body.xn-customer-ui #xn-trading-catalog.collapse,
    body.xn-customer-ui #xn-trading-catalog.collapse:not(.in) {
        display: block !important;
        height: auto !important;
        visibility: visible;
    }

    body.xn-customer-ui #trade_coin {
        width: 100%;
        padding: 12px 12px 28px;
    }

    body.xn-customer-ui #trade_coin > .row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-right: 0;
        margin-left: 0;
    }

    body.xn-customer-ui #trade_coin > .row > #xn-trading-catalog,
    body.xn-customer-ui #trade_coin > .row > trading-menu,
    body.xn-customer-ui #trade_coin > .row > [ui-view] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu {
        border-radius: 14px;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__search {
        padding: 9px 12px;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__search-label {
        margin-bottom: 3px;
        font-size: 9px;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__search-input {
        min-height: 36px;
        padding: 7px 9px;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__toggle {
        min-height: 44px;
        padding: 10px 13px;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__content {
        padding: 0 7px 9px;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        align-items: stretch;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__row {
        min-width: 0;
        margin: 0;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__item {
        min-width: 0;
        min-height: 68px;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 5px;
        padding: 7px 8px;
        border: 1px solid var(--xn-line);
        border-radius: 13px;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__asset {
        gap: 7px;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__details {
        flex: 1 1 auto;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__name {
        font-size: 12px;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__price {
        align-self: center;
        max-width: 100%;
        overflow: hidden;
        padding: 4px 8px;
        border-radius: 999px;
        font-size: 10px;
        line-height: 1.2;
        text-overflow: ellipsis;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__price.is-empty {
        padding: 0;
        background: transparent;
    }

    body.xn-customer-ui #xn-trading-catalog .wmx-coin-menu__partner {
        margin: 8px 0 0;
    }

    body.xn-customer-ui #trade_coin #myTabs > .nav-tabs {
        padding: 0 14px;
    }

    body.xn-customer-ui #trade_coin #muangay > .alert {
        margin: 12px 14px 0;
    }

    body.xn-customer-ui #trade_coin #muangay > .panel-body,
    body.xn-customer-ui #trade_coin #banngay > .panel-body {
        padding: 14px;
    }

    body.xn-customer-ui #trade_coin form.form-horizontal .form-group {
        margin-bottom: 14px;
    }

    body.xn-customer-ui #trade_coin input[name="quantity"] {
        scroll-margin-block: 16px;
    }
}
