.mmc-account-context-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    margin: 0 0 20px;
    padding: 6px;
    border: 1px solid rgba(23, 50, 79, .09);
    border-radius: 19px;
    background: #eaf0f5;
    box-sizing: border-box;
}

.mmc-account-context-switch__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 68px;
    padding: 11px 38px 11px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #526274;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.mmc-account-context-switch__item:hover,
.mmc-account-context-switch__item:focus-visible {
    color: #17324f;
    background: rgba(255, 255, 255, .58);
}

.mmc-account-context-switch__item:focus-visible {
    outline: 3px solid rgba(30, 86, 240, .18);
    outline-offset: 1px;
}

.mmc-account-context-switch__item.is-active {
    border-color: rgba(23, 50, 79, .1);
    background: #ffffff;
    color: #102b49;
    box-shadow: 0 7px 18px rgba(23, 50, 79, .09);
}

.mmc-account-context-switch__icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(23, 50, 79, .08);
    color: #526274;
}

.mmc-account-context-switch__item.is-active .mmc-account-context-switch__icon {
    background: #1e56f0;
    color: #ffffff;
}

.mmc-account-context-switch__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mmc-account-context-switch__item:first-child .mmc-account-context-switch__icon svg {
    fill: currentColor;
    stroke: none;
}

.mmc-account-context-switch__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mmc-account-context-switch__copy strong {
    color: inherit;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.mmc-account-context-switch__copy small {
    overflow: hidden;
    color: #6c7987;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mmc-account-context-switch__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #c43f3f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-sizing: border-box;
}

.mmc-account-context-switch__badge[hidden] {
    display: none !important;
}

.mmc-merchant__shell > .mmc-account-context-switch {
    margin-bottom: 10px;
}

.mmc-account-area-label {
    display: inline-flex;
    justify-self: start;
    margin: 0 0 4px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mmc-account-area-label--merchant {
    background: #fff0f0;
    color: #a33b43;
}

.mmc-account-area-label--personal {
    background: #f1faf3;
    color: #25623d;
}

@media (max-width: 520px) {
    .mmc-account-context-switch {
        gap: 5px;
        margin-bottom: 15px;
        padding: 5px;
        border-radius: 16px;
    }

    .mmc-account-context-switch__item {
        justify-content: center;
        gap: 8px;
        min-height: 56px;
        padding: 9px 29px 9px 9px;
        border-radius: 12px;
    }

    .mmc-account-context-switch__icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .mmc-account-context-switch__icon svg {
        width: 18px;
        height: 18px;
    }

    .mmc-account-context-switch__copy strong {
        font-size: 13px;
    }

    .mmc-account-context-switch__copy small {
        display: none;
    }

    .mmc-account-context-switch__badge {
        top: 5px;
        right: 5px;
    }
}
